AddBatch
Thread-safe alias for BatchRendererGroup.AddBatch.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
AddBatch(NativeArray<MetadataValue>, GraphicsBufferHandle)
Thread-safe alias for BatchRendererGroup.AddBatch.
public BatchID AddBatch(NativeArray<MetadataValue> batchMetadata, GraphicsBufferHandle buffer)
Parameters
Metadata properties for this batch.
The of the associated with this batch.
GraphicsBufferHandleGraphicsBufferReturns
Type | Description |
|---|---|
| BatchID | ID of the batch that Unity creates. |
AddBatch(NativeArray<MetadataValue>, GraphicsBufferHandle, uint, uint)
Thread-safe alias for BatchRendererGroup.AddBatch.
public BatchID AddBatch(NativeArray<MetadataValue> batchMetadata, GraphicsBufferHandle buffer, uint bufferOffset, uint windowSize)
Parameters
Metadata properties for this batch.
The of the associated with this batch.
GraphicsBufferHandleGraphicsBufferOffset of the buffer to be bound. Defaults to zero (start of the buffer).
Amount of data in the buffer to be bound, starting from the bufferOffset value. Defaults to zero. If this is a constant buffer, this value must be less or equal to [SystemInfo.maxConstantBufferSize].
Returns
Type | Description |
|---|---|
| BatchID | ID of the batch that Unity creates. |