summaryrefslogtreecommitdiffstats
path: root/tests/hlsl-intrinsic
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-05-14 15:08:39 -0700
committerGitHub <noreply@github.com>2025-05-14 22:08:39 +0000
commit8c98714df2198db1aff4ce6c6f7922850e400f80 (patch)
tree1349bc96b36eb61ab363f1ac24170e5d1f6955ae /tests/hlsl-intrinsic
parentd179f0eec263d6ba2d7c1594564d4161750b2369 (diff)
Remove readonly keyword from buffer pointer definitions (#7068)
For https://github.com/shader-slang/slang/issues/6880 This change removes the readonly keyword from buffer pointer definitions from the GLSL source emitter, to allow for mutable buffer pointers. Support for readonly will be readded when we add const pointer support later.
Diffstat (limited to 'tests/hlsl-intrinsic')
-rw-r--r--tests/hlsl-intrinsic/const-buffer-pointer.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hlsl-intrinsic/const-buffer-pointer.slang b/tests/hlsl-intrinsic/const-buffer-pointer.slang
index 9fd8a23d8..93f8bb0f6 100644
--- a/tests/hlsl-intrinsic/const-buffer-pointer.slang
+++ b/tests/hlsl-intrinsic/const-buffer-pointer.slang
@@ -12,7 +12,7 @@ struct MyStruct
float4x4 transform;
}
-// CHECK: layout(buffer_reference, std430, buffer_reference_align = 4) readonly buffer BufferPointer_MyStruct
+// CHECK: layout(buffer_reference, std430, buffer_reference_align = 4) buffer BufferPointer_MyStruct
// CHECK-NEXT: {
// CHECK-NEXT: MyStruct{{.*}} _data;
// CHECK-NEXT: }