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 a8001b7 commit 8d4c31aCopy full SHA for 8d4c31a
clang/test/AST/HLSL/vk.pushconstant.hlsl
@@ -0,0 +1,12 @@
1
+// RUN: %clang_cc1 -triple spirv-unknown-vulkan1.3-compute -x hlsl -ast-dump -o - %s | FileCheck %s
2
+
3
+struct S {
4
+ int value;
5
+};
6
7
+[[vk::push_constant]] S PC;
8
+// CHECK: VarDecl 0x[[A:[0-9a-f]+]] <line:7:23, col:25> col:25 PC 'hlsl_push_constant S'
9
+// CHECK-NEXT: HLSLVkPushConstantAttr 0x[[A:[0-9a-f]+]] <col:3, col:7>
10
11
+[numthreads(1, 1, 1)]
12
+void main() { }
0 commit comments