================ @@ -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>]; ---------------- s-perron wrote:
I doubled checked. The `1` is not the default value. It is a boolean value that says the argument is optional. The default value is provided when we parse the attribute. https://github.com/llvm/llvm-project/pull/150957 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits