mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU/HW: Explicitly specify std140 layout for UBOs
This commit is contained in:
parent
8cfb8d7922
commit
f7f4818de4
|
@ -131,7 +131,7 @@ float4 RGBA5551ToRGBA8(uint v)
|
||||||
void GPU_HW_ShaderGen::DeclareUniformBuffer(std::stringstream& ss, const std::initializer_list<const char*>& members)
|
void GPU_HW_ShaderGen::DeclareUniformBuffer(std::stringstream& ss, const std::initializer_list<const char*>& members)
|
||||||
{
|
{
|
||||||
if (m_glsl)
|
if (m_glsl)
|
||||||
ss << "uniform UBOBlock\n";
|
ss << "layout(std140) uniform UBOBlock\n";
|
||||||
else
|
else
|
||||||
ss << "cbuffer UBOBlock : register(b0)\n";
|
ss << "cbuffer UBOBlock : register(b0)\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue