summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-spirv.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index a2211578d..6b3b42e92 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -349,7 +349,14 @@ struct SPIRVEmitContext
// > Version nuumber
//
- m_words.add(SpvVersion);
+
+ // TODO(JS):
+ // Was previously set to SpvVersion, but that doesn't work since we
+ // upgraded to SPIR-V headers 1.6. (It would lead to validation errors during vk tests)
+ // For now mark as version 1.5.0
+
+ static const uint32_t spvVersion1_5_0 = 0x00010500;
+ m_words.add(spvVersion1_5_0);
// > Generator's magic number.
// > Its value does not affect any semantics, and is allowed to be 0.