[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 13:39:00 PST 2024
================
@@ -4883,6 +4882,12 @@ def HLSLRadians : LangBuiltin<"HLSL_LANG"> {
let Prototype = "void(...)";
}
+def HLSLBufferUpdateCounter : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_buffer_update_counter"];
+ let Attributes = [NoThrow, Const];
----------------
pow2clk wrote:
I don't know what effect these attributes have or if I'm understanding Const correctly, but if that implies it doesn't change any memory, it does.
https://github.com/llvm/llvm-project/pull/114148
More information about the cfe-commits
mailing list