SPIRV-Cross/shaders-msl/comp/argument-buffers-discrete.msl2.argument.discrete.comp
Hans-Kristian Arntzen e2aadf8995 Rename "push descriptor set" to "discrete descriptor set".
Check for case where iOS doesn't support writable argument buffer
textures.
2019-03-15 21:53:21 +01:00

28 lines
398 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(set = 0, binding = 0) readonly buffer SSBO0
{
vec4 v;
} ssbo0;
layout(set = 1, binding = 0) readonly buffer SSBO1
{
vec4 v;
} ssbo1;
layout(set = 2, binding = 5) readonly buffer SSBO2
{
vec4 v;
} ssbo2;
layout(set = 3, binding = 6) writeonly buffer SSBO3
{
vec4 v;
} ssbo3;
void main()
{
ssbo3.v = ssbo0.v + ssbo1.v + ssbo2.v;
}