summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-03-07 12:21:11 -0800
committerGitHub <noreply@github.com>2025-03-07 12:21:11 -0800
commita3a9ffefdd54fdddeb2efde240d2599645280663 (patch)
tree3914cdbe1610db19468d1fb62cd5c464a1b66bf8
parent5012c313479798394e89e9f58997a5968c1c8f79 (diff)
Fix SPIRV generator ID. (#6536)
-rw-r--r--source/slang/slang-emit-spirv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 7a6d4aa38..3b8e5e1d1 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -91,7 +91,7 @@ enum class SpvLogicalSectionID
};
// The registered id for the Slang compiler.
-static const uint32_t kSPIRVSlangCompilerId = 40;
+static const uint32_t kSPIRVSlangCompilerId = 40 << 16;
// While the SPIR-V module is nominally (according to the spec) just
// a flat sequence of instructions, in practice some of the instructions