[clang] [HLSL] Apply resource attributes to the resource type rather than the handle member (PR #107160)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 4 12:42:37 PDT 2024
================
@@ -12364,6 +12364,7 @@ def err_hlsl_packoffset_cross_reg_boundary : Error<"packoffset cannot cross regi
def err_hlsl_packoffset_alignment_mismatch : Error<"packoffset at 'y' not match alignment %0 required by %1">;
def err_hlsl_pointers_unsupported : Error<
"%select{pointers|references}0 are unsupported in HLSL">;
+def err_missing_resource_class : Error<"HLSL resource needs to have [[hlsl::resource_class()]] attribute">;
----------------
bogner wrote:
This is hlsl specific, so it should be `err_hlsl_missing_resource_class`.
https://github.com/llvm/llvm-project/pull/107160
More information about the cfe-commits
mailing list