1struct PSInput 2{ 3 float myfloat : SOME_SEMANTIC; 4 int something : ANOTHER_SEMANTIC; 5}; 6 7struct nametest { 8 int Append; // these are valid names even though they are also method names. 9 int RestartStrip; // ... 10}; 11 12[maxvertexcount(4)] 13void main(triangle in uint VertexID[3] : VertexID, 14 triangle uint test[3] : FOO, 15 inout LineStream<PSInput> OutputStream) 16{ 17 PSInput Vert; 18 19 Vert.myfloat = test[0] + test[1] + test[2]; 20 Vert.something = VertexID[0]; 21 22 OutputStream.Append(Vert); 23 OutputStream.Append(Vert); 24 OutputStream.RestartStrip(); 25} 26