================ @@ -91,6 +99,23 @@ struct RootParam { Register Reg; uint32_t Space = 0; ShaderVisibility Visibility = ShaderVisibility::All; + RootDescriptorFlags Flags; + + void setDefaultFlags() { + assert(Type != ParamType::Sampler && + "Sampler is not a valid type of ParamType"); + switch (Type) { + case ParamType::CBuffer: + case ParamType::SRV: + Flags = RootDescriptorFlags::DataStaticWhileSetAtExecute; + break; + case ParamType::UAV: + Flags = RootDescriptorFlags::DataVolatile; + break; + case ParamType::Sampler: + break; + } + } ---------------- joaosaffran wrote:
Are we planning to modify that when we add support for versioning ? Something like: ```C++ if(Version == 1) Flags = 0; ``` https://github.com/llvm/llvm-project/pull/140152 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits