7c83fc22fa
WorkgroupSize builtin is deprecated in 1.6 and LocalSizeId is supported in Vulkan starting with maintenance4.
17 lines
323 B
Plaintext
17 lines
323 B
Plaintext
#version 450
|
|
layout(local_size_x = 3, local_size_y_id = 1, local_size_z_id = 2) in;
|
|
|
|
layout(constant_id = 3) const uint _4 = 13u;
|
|
layout(constant_id = 4) const uint _5 = 14u;
|
|
|
|
layout(set = 0, binding = 0, std430) buffer SSBO
|
|
{
|
|
vec4 values[];
|
|
} _8;
|
|
|
|
void main()
|
|
{
|
|
_8.values[gl_GlobalInvocationID.x] += vec4(2.0);
|
|
}
|
|
|