diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-11-13 01:32:21 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-11-13 01:32:21 +0000 |
| commit | 93172b23a8aecbd682576e4ac2f2528f6459e34f (patch) | |
| tree | 059e714306222846acc625c0dc7b464164ca73c8 /Graphics | |
| parent | Fixed clang warnings in release build (diff) | |
| download | DiligentCore-93172b23a8aecbd682576e4ac2f2528f6459e34f.tar.gz DiligentCore-93172b23a8aecbd682576e4ac2f2528f6459e34f.zip | |
HLSL->GLSL converter: added 'readonly' when converting HLSL structured buffers to storage buffers
Diffstat (limited to 'Graphics')
| -rw-r--r-- | Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp index db4fe2ae..468b1031 100644 --- a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp +++ b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp @@ -1436,7 +1436,7 @@ void HLSL2GLSLConverterImpl::ConversionStream::ProcessStructuredBuffer(TokenList ++ShaderStorageBlockBinding; } else - Token->Literal = "layout(std140) buffer"; + Token->Literal = "layout(std140) readonly buffer"; // buffer<DataType> g_Data; // ^ |
