[clang] [llvm] [DirectX] Start documenting DXIL Resource handling (PR #90553)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 13:30:42 PDT 2024
================
@@ -29,6 +29,7 @@ pointer of the template parameter type. The pointer is populated from a call to
data through until lowering in the backend.
Resource types are annotated with the ``HLSLResource`` attribute, which drives
-code generation for resource binding metadata. The ``hlsl`` metadata nodes are
-transformed in the backend to the binding information expected by the target
-runtime.
+code generation into target extension types in IR. These types are target
+specific and differ between DXIL and SPIR-V generation, providing the necessary
+information for the targets to generate binding metadata for their respective
+target runtimes.
----------------
bogner wrote:
Good point. I've updated this doc to talk about `__hlsl_resource_t` and to talk about the set of resource attributes more generically.
https://github.com/llvm/llvm-project/pull/90553
More information about the llvm-commits
mailing list