Search Unity

SV_RenderTargetArrayIndex SV_Target[n]

Discussion in 'Shaders' started by vx4, May 26, 2013.

  1. vx4

    vx4

    Joined:
    Dec 11, 2012
    Posts:
    181
    What the differences betwwen SV_RenderTargetArrayIndex and SV_Target[n]?????
     
  2. RC-1290

    RC-1290

    Joined:
    Jul 2, 2012
    Posts:
    639
    I have never used them, so I have no clue.

    However, MSDN can tell you.
    One is used on geometry shader output (can be read in the pixel shader), the other is used in a pixel shader.
    One is an index, the other is a value.

    Now I'm curious, what are you using them for?