Search Unity

Question DX11: Texture index out of range

Discussion in 'Shader Graph' started by firefly9000, Sep 27, 2019.

  1. firefly9000

    firefly9000

    Joined:
    Dec 7, 2016
    Posts:
    13
    Created a terrain shadergraph. Worked well until I started getting this error. It does not seem to affect anything as the shader still renders. It just pops up in the console and keeps ballooning.

    There is no other explanation given. I tried looking online but with no success.

    Any heads up as how to go about debugging this would be greatly appreciated.

    Hdrp 6.9.0
    Unity 2019.2.6f1

    Thanks
     

    Attached Files:

  2. sqallpl

    sqallpl

    Joined:
    Oct 22, 2013
    Posts:
    384
    @firefly9000

    Looks like it's related to number of active texture samplers.
    I'm getting this error on StackLit graph when I plug more than 48 textures to the graph.
    I'm using Sampler States to stay within the 16 texture samplers limit.

    Any idea why it allows 48 textures instead of 128?
     
    Last edited: Apr 17, 2020