[llvm-branch-commits] [clang] [llvm] [HLSL] GetDimensions methods for buffer resources (PR #161929)
Helena Kotas via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 7 14:01:55 PDT 2025
================
@@ -4951,6 +4951,18 @@ def HLSLResourceNonUniformIndex : LangBuiltin<"HLSL_LANG"> {
let Prototype = "uint32_t(uint32_t)";
}
+def HLSLResourceGetDimensions : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_buffer_getdimensions"];
+ let Attributes = [NoThrow];
+ let Prototype = "void(...)";
+}
+
+def HLSLResourceGetStride : LangBuiltin<"HLSL_LANG"> {
----------------
hekota wrote:
The `GetDimensions` for structured buffers calls both `__builtin_hlsl_buffer_getstride` and `__builtin_hlsl_buffer_getdimensions`, so unless the support for structured buffers' GetDimensions is split into a separate PR, the built-in needs to be here.
https://github.com/llvm/llvm-project/pull/161929
More information about the llvm-branch-commits
mailing list