blob: 3107f577354b1bb44ca5b014bf05a9a9e891c9af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
|