Search Unity

Upload list of textures to Compute Shader ?

Discussion in 'Shaders' started by Vagabond_, Jul 4, 2017.

  1. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Hi,
    how can one upload a list of textures ( lets say all the textures used in a scene ) to the GPU memory to be used with a compute shader ?

    Textures are different compression and resolution and "Texture2DArray" could not work in this case !
    I guess i need something like ComputeShader.SetTexture(...) for a list of textures !

    Is there any way of doing this ?
     
  2. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Does anybody have an idea how to do this ?