blob: d7ff9b89cc7afa6c92e34893503e3c98789edae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -allow-glsl
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -allow-glsl -emit-spirv-directly
#version 430
precision highp float;
precision highp int;
layout(binding = 0) buffer MyBlockName
{
vec4 data[];
} output_data;
// CHECK: OpExecutionMode %main LocalSize 44 45 46
layout(local_size_x = 44, local_size_y = 45, local_size_z = 46) in;
void main()
{
output_data.data[gl_GlobalInvocationID.x] = vec4(gl_GlobalInvocationID, 1);
}
|