SPIRV-Cross/reference/shaders/asm/comp/specialization-constant-workgroup.asm.comp
Hans-Kristian Arntzen 62db535b3f Update tests.
2018-11-01 11:23:48 +01:00

22 lines
391 B
Plaintext

#version 310 es
#ifndef SPIRV_CROSS_CONSTANT_ID_10
#define SPIRV_CROSS_CONSTANT_ID_10 9u
#endif
#ifndef SPIRV_CROSS_CONSTANT_ID_12
#define SPIRV_CROSS_CONSTANT_ID_12 4u
#endif
layout(local_size_x = SPIRV_CROSS_CONSTANT_ID_10, local_size_y = 20, local_size_z = SPIRV_CROSS_CONSTANT_ID_12) in;
layout(binding = 0, std430) buffer SSBO
{
float a;
} _4;
void main()
{
_4.a += 1.0;
}