Commit fda6edcb by John Kessenich

HLSL Tests: Fix two tests to be valid under FXC.

parent 318a379b
struct STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO
{
float m0_array[2];
int m1;
float m0_array[2] : mysemA;
int m1 : mysemB;
};
struct PS_IN
......@@ -26,6 +26,9 @@ void main(triangle PS_IN tin[3], inout TriangleStream <GS_OUT> ts )
o.psIn.pos = float4(1,2,3,4);
o.psIn.tc = float2(5,6);
o.contains_no_builtin_io.m0_array[0] = 2.3;
o.contains_no_builtin_io.m0_array[1] = 2.3;
o.contains_no_builtin_io.m1 = 2;
ts.Append(o);
}
struct VI {
float4 m[2];
uint2 coord;
linear float4 b;
float4 m[2] : mysemA;
float4 coord : SV_POSITION;
linear float4 b : mysemB;
};
VI main(float4 d, VI vi, float4 e) : SV_POSITION
VI main(float4 d : mysem, VI vi, float4 e : mysem)
{
VI local;
local.b = vi.m[1] + vi.m[0] + float4(vi.coord.x) + d + e;
local.b = vi.m[1] + vi.m[0] + (float4)vi.coord.x + d + e;
local.coord = (float4)1;
local.m[0] = (float4)2;
local.m[1] = (float4)3;
return local;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment