diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-emit-glsl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp index a8ce6564c..9d4f72b07 100644 --- a/source/slang/slang-emit-glsl.cpp +++ b/source/slang/slang-emit-glsl.cpp @@ -943,7 +943,7 @@ bool GLSLSourceEmitter::_emitGLSLLayoutQualifierWithBindingKinds( case LayoutResourceKind::SpecializationConstant: m_writer->emit("layout(constant_id = "); m_writer->emit(index); - m_writer->emit(")\n"); + m_writer->emit(")\nconst "); break; case LayoutResourceKind::ConstantBuffer: |
