SPIRV-Cross/shaders-msl-no-opt/packing/member-padding.comp
2019-07-23 11:46:34 +02:00

15 lines
196 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(std140, set = 0, binding = 0) buffer SSBO
{
layout(offset = 16) float a;
layout(offset = 40) float b;
};
void main()
{
a = 10.0;
b = 20.0;
}