- align by 256 instead of 128

This commit is contained in:
Magnus Norddahl 2019-03-02 17:51:57 +01:00
parent 327b9a91f1
commit b0b4028e0b

View file

@ -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
{