summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/gh-4704.slang18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs/gh-4704.slang b/tests/bugs/gh-4704.slang
new file mode 100644
index 000000000..8e8f6fc36
--- /dev/null
+++ b/tests/bugs/gh-4704.slang
@@ -0,0 +1,18 @@
+//TEST:SIMPLE(filecheck=SPIRV): -entry computeMain -stage compute -target spirv
+//TEST:SIMPLE(filecheck=HLSL): -entry computeMain -stage compute -target spirv
+//TEST:SIMPLE(filecheck=GLSL): -entry computeMain -stage compute -target spirv
+
+// SPIRV: OpEntryPoint
+// GLSL: main
+// HLSL: computeMain
+
+
+[[vk::binding(0, 0)]] uniform ConstantBuffer<uint64_t[1000]> addresses;
+RWStructuredBuffer<uint> buffer;
+
+[shader("compute")]
+[numthreads(1, 1, 1)]
+void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID, uint groupIndex: SV_GroupIndex)
+{
+ printf("\nfrom gpu: %llu", addresses[0]);
+} \ No newline at end of file