SPIRV-Cross/reference/shaders-no-opt/asm/comp/local-size-id-override.vk.asm.comp.vk
Hans-Kristian Arntzen 7c83fc22fa Add support for LocalSizeId.
WorkgroupSize builtin is deprecated in 1.6 and LocalSizeId is supported
in Vulkan starting with maintenance4.
2022-01-06 13:57:10 +01:00

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);
}