We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973e9ce commit c7164d0Copy full SHA for c7164d0
clang/test/CodeGenHLSL/vk-features/vk.spec-constant.hlsl
@@ -6,7 +6,7 @@
6
[[vk::constant_id(1)]]
7
const bool bool_const = true;
8
9
-[[vk::constant_id(2)]]
+[[vk::constant_id(1)]]
10
const short short_const = 4;
11
12
[[vk::constant_id(3)]]
@@ -124,7 +124,7 @@ void main() {
124
// CHECK-SAME: ) #[[ATTR3]] {
125
// CHECK-NEXT: [[ENTRY:.*:]]
126
// CHECK-NEXT: [[TMP0:%.*]] = call token @llvm.experimental.convergence.entry()
127
-// CHECK-NEXT: [[TMP1:%.*]] = call i16 @_Z20__spirv_SpecConstantis(i32 2, i16 4)
+// CHECK-NEXT: [[TMP1:%.*]] = call i16 @_Z20__spirv_SpecConstantis(i32 1, i16 4)
128
// CHECK-NEXT: store i16 [[TMP1]], ptr addrspace(10) @_ZL11short_const, align 2
129
// CHECK-NEXT: ret void
130
//
0 commit comments