glslang/Test/hlsl.structin.vert
John Kessenich 34e7ee79bb HLSL: Improve setting and testing of interpolation qualifiers.
Notably, use of 'linear' on a non-input could mark it as an input.
2016-09-16 18:05:44 -06:00

14 lines
219 B
GLSL

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