| proxy | The prepared renderer data to draw. |
| submeshIndex | The index of the submesh to render. The default value is 0. |
| shaderPass | The index of the shader pass to use. The default value is -1, which renders all passes. |
Adds a command to draw renderer data captured in a PreparedRendererProxy.
This method is only supported when parallel rendering is enabled. Otherwise, it throws an InvalidOperationException.
Create the proxy with ScriptableRenderContext.CreatePreparedRendererProxy. You can reuse a proxy to draw different submeshes and shader passes.
The command must execute through the ScriptableRenderContext that created the proxy, while that context is still valid. A CommandBuffer that contains this command can be recorded on the main-thread or rendering-thread SRP path, but must not be written from multiple threads concurrently.
See Also: PreparedRendererProxy, ScriptableRenderContext.CreatePreparedRendererProxy, DrawRenderer.