[clang] [HLSL][SPIRV] Add vk::binding attribute (PR #150957)

Nathan Gauër via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 30 08:22:17 PDT 2025


================
@@ -4894,6 +4894,14 @@ def HLSLSV_GroupIndex: HLSLAnnotationAttr {
   let Documentation = [HLSLSV_GroupIndexDocs];
 }
 
+def HLSLVkBinding : InheritableAttr {
+  let Spellings = [CXX11<"vk", "binding">];
+  let Subjects = SubjectList<[HLSLBufferObj, ExternalGlobalVar], ErrorDiag>;
+  let Args = [IntArgument<"Binding">, IntArgument<"Set", 1>];
----------------
Keenuts wrote:

The default value is 1 here no? Doc says default to 0

https://github.com/llvm/llvm-project/pull/150957


More information about the cfe-commits mailing list