[clang] [HLSL] Collect explicit resource binding information (PR #111203)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 08:33:54 PDT 2024
================
@@ -4593,6 +4593,44 @@ def HLSLResourceBinding: InheritableAttr {
let LangOpts = [HLSL];
let Args = [StringArgument<"Slot">, StringArgument<"Space", 1>];
let Documentation = [HLSLResourceBindingDocs];
+ let AdditionalMembers = [{
+ enum class RegisterType : unsigned { SRV, UAV, CBuffer, Sampler, C, I, Invalid };
----------------
bogner wrote:
Do we need to have `Invalid` in this enum? I don't particularly like the implication that we still need to check the validity of the binding once we're dealing with the attribute we've applied for codegen.
https://github.com/llvm/llvm-project/pull/111203
More information about the cfe-commits
mailing list