RetroArch/deps/SPIRV-Cross/shaders/vulkan/comp/buffer-reference-base-alignment-promote.nocompat.vk.comp

26 lines
314 B
Plaintext

#version 450
#extension GL_EXT_buffer_reference : require
layout(buffer_reference) buffer Foo
{
uint v;
};
layout(buffer_reference, buffer_reference_align = 8) buffer Bar
{
uint a;
uint b;
Foo foo;
};
layout(push_constant) uniform Push
{
Bar bar;
};
void main()
{
uint v = bar.b;
atomicAdd(bar.a, v);
}