[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 13:48:58 PST 2024
================
@@ -12487,6 +12487,7 @@ def err_hlsl_pointers_unsupported : Error<
"%select{pointers|references}0 are unsupported in HLSL">;
def err_hlsl_missing_resource_class : Error<"HLSL resource needs to have [[hlsl::resource_class()]] attribute">;
def err_hlsl_attribute_needs_intangible_type: Error<"attribute %0 can be used only on HLSL intangible type %1">;
+def err_hlsl_builtin_requires_resource: Error<"operand must be of __hlsl_resource_t type">;
----------------
hekota wrote:
FYI, I am adding the same error in my PR: https://github.com/llvm/llvm-project/pull/114148
https://github.com/llvm/llvm-project/pull/117017
More information about the cfe-commits
mailing list