SPIRV-Cross/reference/shaders/asm/comp/hlsl-functionality.asm.comp
Hans-Kristian Arntzen 4e7777c443 Update to latest glslang/SPIRV-Tools.
Fix various bugs along the way.
2019-01-30 13:41:57 +01:00

25 lines
357 B
Plaintext

#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 0, std430) buffer Buf
{
vec4 _data[];
} Buf_1;
layout(binding = 1, std430) buffer Buf_count
{
int _count;
} Buf_count_1;
void _main()
{
int _29 = atomicAdd(Buf_count_1._count, 1);
Buf_1._data[_29] = vec4(1.0);
}
void main()
{
_main();
}