[clang] [HLSL] Add Append/ConsumeStructuredBuffer definitions to HLSLExternalSemaSource (PR #113643)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 6 09:43:50 PST 2024
================
@@ -5,17 +5,27 @@
StructuredBuffer<float> Buf : register(t10);
RWStructuredBuffer<float> Buf2 : register(u5, space1);
+AppendStructuredBuffer<float> Buf3 : register(u3);
+ConsumeStructuredBuffer<float> Buf4 : register(u4);
-// CHECK: %"class.hlsl::StructuredBuffer" = type { target("dx.RawBuffer", float, 0, 0), float }
-// CHECK: %"class.hlsl::RWStructuredBuffer" = type { target("dx.RawBuffer", float, 1, 0), float }
+// CHECK: %"class.hlsl::StructuredBuffer" = type { target("dx.RawBuffer", float, 0, 0)
----------------
bob80905 wrote:
It doesn't seem like you changed anything about StructuredBuffer / RWStructuredBuffer, do you know why the trailing "float }" was removed from the test? Is it because it's redundant and not useful for the test?
https://github.com/llvm/llvm-project/pull/113643
More information about the cfe-commits
mailing list