| renderer | The Renderer whose render data to capture. |
| material | The Material to use when drawing the prepared renderer. |
| viewMatrix | The view matrix to use for matrix-dependent renderer preparation. |
| projectionMatrix | The projection matrix to use for matrix-dependent renderer preparation. |
PreparedRendererProxy A proxy for the prepared renderer data.
Captures renderer and material data and returns a proxy that a CommandBuffer can draw without accessing the Renderer.
This method is only supported when parallel rendering is enabled. Otherwise, it throws an InvalidOperationException.
Call this method on the main thread. It immediately captures the renderer, material, transform, and matrix-dependent preparation results. Changes to those values after this call are not reflected in the proxy.
This method does not perform Camera culling. Create a separate proxy for every distinct view and projection matrix pair. The returned proxy is owned by this ScriptableRenderContext and cannot be cached across contexts or frames. You can reuse it with different submesh indices and shader passes while its creating context remains valid.
See Also: PreparedRendererProxy, CommandBuffer.DrawPreparedRenderer.