GPU/HW: Explicitly specify std140 layout for UBOs

This commit is contained in:
Connor McLaughlin 2019-11-13 22:48:14 +10:00
parent 8cfb8d7922
commit f7f4818de4

View file

@ -131,7 +131,7 @@ float4 RGBA5551ToRGBA8(uint v)
void GPU_HW_ShaderGen::DeclareUniformBuffer(std::stringstream& ss, const std::initializer_list<const char*>& members)
{
if (m_glsl)
ss << "uniform UBOBlock\n";
ss << "layout(std140) uniform UBOBlock\n";
else
ss << "cbuffer UBOBlock : register(b0)\n";