[PATCH] D128569: Start support for HLSL `RWBuffer`
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 25 05:38:04 PDT 2022
python3kgae 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)
----------------
Is it possible to return a ptr with special address space so we know it is from a resource?
================
Comment at: clang/test/AST/HLSL/ResourceStruct.hlsl:1
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -fsyntax-only -ast-dump %s | FileCheck %s
+
----------------
lib profile starts from shader model 6.3.
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