summaryrefslogtreecommitdiffstats
path: root/Graphics
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-11-13 01:32:21 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-11-13 01:32:21 +0000
commit93172b23a8aecbd682576e4ac2f2528f6459e34f (patch)
tree059e714306222846acc625c0dc7b464164ca73c8 /Graphics
parentFixed clang warnings in release build (diff)
downloadDiligentCore-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.cpp2
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;
// ^