bgfx/3rdparty/glslang/Test/hlsl.struct.split.nested.geom

35 lines
661 B
Plaintext
Raw Normal View History

2017-01-05 07:34:04 +03:00
struct STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO
{
2017-08-04 10:25:42 +03:00
float m0_array[2] : mysemA;
int m1 : mysemB;
2017-01-05 07:34:04 +03:00
};
struct PS_IN
{
float4 pos : SV_Position;
float2 tc : TEXCOORD0;
// float c : SV_ClipDistance0;
};
struct GS_OUT
{
PS_IN psIn;
STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO contains_no_builtin_io;
};
[maxvertexcount(3)]
void main(triangle PS_IN tin[3], inout TriangleStream <GS_OUT> ts )
{
GS_OUT o;
o.psIn.pos = float4(1,2,3,4);
o.psIn.tc = float2(5,6);
2017-08-04 10:25:42 +03:00
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;
2017-01-05 07:34:04 +03:00
ts.Append(o);
}