Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved What does"Draw Calls 2" mean on Frame Debugger?

Discussion in 'General Graphics' started by INeatFreak, Jun 15, 2021.

  1. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    Hello world, I am trying to replicate unity's CollectShadows pass. I have given exact same shader parameters, textures etc to my implementation except this one. As you can see from the image unity's have "Draw Calls 2" info that I have never seen in other passes. What does it stands for? and how can I replicate?
    upload_2021-6-15_16-31-3.png

    I know that unity uses Fullscreen quad instead of Blit here. And I have too used fullscreen quads drawn with cmd.DrawMesh command but mine doesn't say Draw Calls 2 and I always get fully white texture as a result. Do I need to draw twice or something? Or draw each triangle separately maybe? I am confused . Help please.
     
  2. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    And here's my implementation. Everything is the same except "Draw Calls 2".
    upload_2021-6-15_16-42-1.png

    NOTE: Just to be clear, I already know I can change which shader unity uses for CollectShadows pas from Graphics settings. That is not what I am trying to achieve. I need to draw screen shadows manually one more time with updated _CameraDepthTexture.
     
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,238
    It stands for "Unity's Frame Debugger has a bug".

    There's only one draw call happening.
     
    BrandyStarbrite and INeatFreak like this.
  4. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    Ohh, thanks. I was starting to worry that it's another "only unity can" thing.