SPIRV-Cross/reference/shaders-no-opt/comp/illegal-struct-name.asm.comp
Chip Davis 68f0257f26 Use --preserve-numeric-ids when assembling test shaders.
This makes it easier to debug codegen for these shaders.
2023-06-23 14:54:16 -07:00

23 lines
288 B
Plaintext

#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
struct Foo
{
float _abs;
};
layout(binding = 0, std430) buffer SSBO
{
Foo foo;
Foo foo2;
} _9;
void main()
{
Foo f;
f._abs = _9.foo._abs;
int _abs = 10;
_9.foo2._abs = f._abs;
}