HLSL: Add tests and refine what decorations are passed through per stage/in/out.

This commit is contained in:
John Kessenich
2017-02-06 18:44:52 -07:00
parent bf47286fe7
commit 65ee230f1c
12 changed files with 386 additions and 30 deletions

18
Test/hlsl.structIoFourWay.frag Executable file
View File

@@ -0,0 +1,18 @@
struct T {
float f : packoffset(c4.y); // artificial, but validates all different treatments: uniform offset
centroid float g; // interpolant input
float d: SV_DepthGreaterEqual; // fragment output
float4 normal; // non-IO
};
T s; // loose uniform
cbuffer buff {
T t : packoffset(c5.z);
};
T main(T t : myInput) : SV_Target0
{
T local;
return local;
}