SPIRV-Cross/reference/shaders/asm/frag/composite-construct-struct-no-swizzle.asm.frag
2018-01-22 09:52:57 +01:00

20 lines
282 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
struct SwizzleTest
{
float a;
float b;
};
layout(location = 0) in vec2 foo;
layout(location = 0) out float FooOut;
void main()
{
SwizzleTest _22 = SwizzleTest(foo.x, foo.y);
FooOut = _22.a + _22.b;
}