summaryrefslogtreecommitdiff
path: root/tests/compute/comma-operator.slang.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute/comma-operator.slang.glsl')
-rw-r--r--tests/compute/comma-operator.slang.glsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/compute/comma-operator.slang.glsl b/tests/compute/comma-operator.slang.glsl
new file mode 100644
index 000000000..3107f5773
--- /dev/null
+++ b/tests/compute/comma-operator.slang.glsl
@@ -0,0 +1,24 @@
+// comma-operator.slang.glsl
+#version 450
+
+//TEST_IGNORE_FILE:
+
+layout(std430, binding = 0)
+buffer _S1 {
+ int _data[];
+} outputBuffer_0;
+
+int test_0(int inVal_0)
+{
+ return inVal_0 * 2 + 1;
+}
+
+layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in;void main()
+{
+ uint tid_0 = gl_GlobalInvocationID.x;
+
+ int outVal_0 = test_0(outputBuffer_0._data[tid_0]);
+
+ outputBuffer_0._data[tid_0] = outVal_0;
+ return;
+}