SetBatchBuffer(BatchID, GraphicsBufferHandle)
Change the GraphicsBuffer associated with the given batch. Thread-safe alias for BatchRendererGroup.SetBatchBuffer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public void SetBatchBuffer(BatchID batchID, GraphicsBufferHandle buffer)
Parameters
Unity changes the batch with this ID.
The of the to be associated with the batch.
GraphicsBufferHandleGraphicsBufferRemarks
Unity doesn't apply the change immediately. The same rules apply as for BatchRendererGroup.SetBatchBuffer: don't dispose of the previous in the same frame that you call this method.
GraphicsBuffer