glslang/Test/hlsl.structin.vert
John Kessenich cd0a78a0d9 HLSL: Flatten vertex input and fragment output structures.
Vulkan can't handle structures into the vertex stage or out
of the fragment stage.
2016-09-10 11:09:24 -06:00

9 lines
165 B
GLSL

struct VI {
float4 m[2];
uint2 coord;
};
float4 main(float4 d, VI vi, float4 e) : SV_POSITION
{
return vi.m[1] + vi.m[0] + float4(vi.coord.x) + d + e;
}