[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 10:32:38 PDT 2024
================
@@ -5334,3 +5334,18 @@ std::string FunctionEffectWithCondition::description() const {
Result += "(expr)";
return Result;
}
+
+const HLSLAttributedResourceType *
+HLSLAttributedResourceType::findHandleTypeOnResource(const Type *RT) {
+ // If the type T is an HLSL resource class, the first field must
+ // be the resource handle of type HLSLAttributedResourceType
----------------
bogner wrote:
The parameter is named "RT", not "T"
https://github.com/llvm/llvm-project/pull/111207
More information about the cfe-commits
mailing list