diff options
| author | Sirox <71220271+Sirox0@users.noreply.github.com> | 2025-07-17 11:46:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 08:46:58 +0000 |
| commit | 4dccdff89494116cc69802c7f3d1957d1b972775 (patch) | |
| tree | 619f8d431dd3f201ac6d442b6f6ffe9e9f8e5e0c | |
| parent | b138e3f4b64e8f096c30d200dbafc701f0da6356 (diff) | |
fix const qualifier for specialization constants (#7640)
Co-authored-by: Yong He <yonghe@outlook.com>
| -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: |
