[PATCH] D128569: Start support for HLSL `RWBuffer`

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 14:54:22 PDT 2022


beanz added inline comments.


================
Comment at: clang/include/clang/Basic/Builtins.def:1703
 LANGBUILTIN(WaveActiveCountBits, "Uib", "nc", HLSL_LANG)
+LANGBUILTIN(__builtin_hlsl_get_resource_pointer, "v*", "i", HLSL_LANG)
+LANGBUILTIN(__builtin_hlsl_get_resource_status, "Ui", "i", HLSL_LANG)
----------------
python3kgae wrote:
> Is it possible to return a ptr with special address space so we know it is from a resource?
Yes, although I'm going to actually hold back the builtins from this patch. I don't think these are quite what we want to generate.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128569/new/

https://reviews.llvm.org/D128569



More information about the cfe-commits mailing list