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

Question HDRP path tracing shader high registers allocation count

Discussion in 'HDRP Ray Tracing' started by guoxx_, Dec 29, 2022.

  1. guoxx_

    guoxx_

    Joined:
    Mar 16, 2021
    Posts:
    55
    I profile the HDRP path tracing shader with NSight graphics on RTX 2080Ti, it shows that the register count for a lit shader is quite high (around 128) so warps occupancy is low.

    upload_2022-12-29_14-55-33.png

    I tried to simplify the code and found that a very simple closesthit shader will take 64 registers in Unity which is pretty weird in my understanding. Is a high register count normal for a raytracing shader?