Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

SV_RenderTargetArrayIndex in Vertex shader doesn't work on Windows 7 but works on Windows 10?

Discussion in 'Graphics Experimental Previews' started by XRA, Jun 13, 2018.

  1. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    Is this a bug or something Unity has no control over? Same GPU on 7 & 10

    I noticed that SV_RenderTargetArrayIndex used in the Vertex shader for picking a Texture2DArray / Texture3D depth slice works on Windows 10 but the same shader code fails on Windows 7.

    On Windows 7 it errors with 'RenderingCommandBuffer: invalid pass index 1 in DrawMesh' when attempting to execute that part of the command buffer.

    If I use the Geometry shader method for setting SV_RenderTargetArrayIndex it works on Windows 7, but ideally would not have to do that.
     
  2. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    guess this might be DirectX 12 (Windows 10) VS DirectX 11 ? I can probably check and set a shader keyword, also this might be more relevant in the regular Unity graphics forum.