hlsl.struct.split.array.geom 431 B

12345678910111213141516171819202122
  1. struct PSInput
  2. {
  3. float4 Pos : SV_POSITION;
  4. float2 TexCoord : TEXCOORD;
  5. float3 TerrainPos : TERRAINPOS;
  6. uint VertexID : VertexID;
  7. };
  8. typedef PSInput foo_t[2][3];
  9. [maxvertexcount(4)]
  10. void main(point uint v[1] : VertexID, inout TriangleStream<PSInput> OutputStream)
  11. {
  12. foo_t Verts;
  13. PSInput Out = (PSInput) 0;
  14. for (int x=0; x<2; ++x)
  15. for (int y=0; y<2; ++y)
  16. Verts[x][y] = Out;
  17. }