mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-15 00:41:57 +00:00
- align by 256 instead of 128
This commit is contained in:
parent
327b9a91f1
commit
b0b4028e0b
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
class VulkanDevice;
|
||||
class VulkanShader;
|
||||
|
||||
template<typename T> int UniformBufferAlignment() { return (sizeof(T) + 127) / 128 * 128; }
|
||||
// To do: we need to read this from the card - or maybe merge ColorsUBO with GlowingWallsUBO since we have to use 256 bytes anyway
|
||||
template<typename T> int UniformBufferAlignment() { return (sizeof(T) + 255) / 256 * 256; }
|
||||
|
||||
struct MatricesUBO
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue