Search Unity

Unique texture names for graphics profiling e.g. in RenderDoc

Discussion in 'General Graphics' started by asawicki, Aug 18, 2017.

  1. asawicki

    asawicki

    Joined:
    Aug 18, 2017
    Posts:
    2
    I would like to suggest an idea for improvement in graphics system. When I use Unity on Windows with DirectX 11 API and capture a frame using RenderDoc (https://renderdoc.org/), I can see that resources like textures and shaders are given some meaningful names, which is great. But these names are not unique. For example, there can be multiple textures named "ImageEffects Temp", so that a single draw call can sample a texture with that name and render to a render target with same name - obviously a different texture. It makes graphics debugging more difficult. I would suggest to always give resources unique names, e.g. by appending an ordinal number at the end.
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
  3. asawicki

    asawicki

    Joined:
    Aug 18, 2017
    Posts:
    2