diff --git a/src/rendering/vulkan/shaders/vk_shader.h b/src/rendering/vulkan/shaders/vk_shader.h index 8614fd3ae..1a0c3438d 100644 --- a/src/rendering/vulkan/shaders/vk_shader.h +++ b/src/rendering/vulkan/shaders/vk_shader.h @@ -9,7 +9,8 @@ class VulkanDevice; class VulkanShader; -template 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 int UniformBufferAlignment() { return (sizeof(T) + 255) / 256 * 256; } struct MatricesUBO {