Search Unity

Question Differences between CommandBuffer.DrawMeshInstancedIndirect and Graphics.DrawMeshInstancedIndirect

Discussion in 'General Graphics' started by Baggers_, Nov 25, 2020.

  1. Baggers_

    Baggers_

    Joined:
    Sep 10, 2017
    Posts:
    98
    Hi folks,

    I'm currently experimenting with CommandBuffer.DrawMeshInstancedIndirect and saw that some arguments that are present are on Graphics.DrawMeshInstancedIndirect are not on the CommandBuffer variant.

    Could anyone suggest equivalents for the following args (if they exist ofc), or explain why they are not needed?
    • castShadows
    • receiveShadows: Is this controlled by targeting a specific CameraEvent?
    • layer
    • camera: I'm assuming this isn't needed as we just use SetRenderTarget. Is that correct?
    • bounds
    Cheers :)
     
  2. Baggers_

    Baggers_

    Joined:
    Sep 10, 2017
    Posts:
    98
    Sorry to bump this but I haven't found the answer anywhere else.