Skip to content

Commit

Permalink
HLSL2GLSLConverter: do not use std140 layout qualifier for storage bu…
Browse files Browse the repository at this point in the history
…ffers
  • Loading branch information
TheMostDiligent committed Jul 30, 2024
1 parent 9aa69de commit c4dd30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,12 @@ void HLSL2GLSLConverterImpl::ConversionStream::ProcessStructuredBuffer(TokenList
if (Token->Type == TokenType::kw_RWStructuredBuffer)
{
std::stringstream ss;
ss << "layout(std140, binding=" << ShaderStorageBlockBinding << ") buffer";
ss << "layout(binding=" << ShaderStorageBlockBinding << ") buffer";
Token->Literal = ss.str();
++ShaderStorageBlockBinding;
}
else
Token->Literal = "layout(std140) readonly buffer";
Token->Literal = "readonly buffer";
// buffer<DataType> g_Data;
// ^

Expand Down

0 comments on commit c4dd30b

Please sign in to comment.