SPIRV-Cross/reference/opt/shaders/comp/read-write-only.comp
2017-11-23 09:50:11 +01:00

28 lines
463 B
Plaintext

#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 2, std430) restrict writeonly buffer SSBO2
{
vec4 data4;
vec4 data5;
} _10;
layout(binding = 0, std430) readonly buffer SSBO0
{
vec4 data0;
vec4 data1;
} _15;
layout(binding = 1, std430) restrict buffer SSBO1
{
vec4 data2;
vec4 data3;
} _21;
void main()
{
_10.data4 = _15.data0 + _21.data2;
_10.data5 = _15.data1 + _21.data3;
}