Search Unity

Graphics.DrawProcedural doesnt work any more with latest HDRP version

Discussion in 'High Definition Render Pipeline' started by customphase, Mar 2, 2020.

  1. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    246
    On our project we worked with 5.X version of HDRP, and DrawProcedural calls worked perfectly, but after upgrading to the latest HDRP version it doesnt work any more, the calls are simply not submitted. How are we supposed to submit custom things for drawing now? Custom Passes only allow redrawing already submitted renderers.
     
  2. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    246
    Nevermind. It does work, it just needs to be called BEFORE the camera begins rendering. Used to work when called on RenderPipelineManager.beginCameraRendering event, now doesnt. Use beginFrameRendering event instead and loop through all the cameras manually.
     
    Last edited: Mar 2, 2020