================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits