ThreadedBatchContext.AddBatch

Declaration

public Rendering.BatchID AddBatch(NativeArray<MetadataValue> batchMetadata, GraphicsBufferHandle buffer);

Declaration

public Rendering.BatchID AddBatch(NativeArray<MetadataValue> batchMetadata, GraphicsBufferHandle buffer, uint bufferOffset, uint windowSize);

Parameters

batchMetadata Metadata properties for this batch.
buffer The GraphicsBufferHandle of the GraphicsBuffer associated with this batch.
bufferOffset Offset of the buffer to be bound. Defaults to zero (start of the buffer).
windowSize 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

BatchID ID of the batch that Unity creates.

Description

Thread-safe alias for BatchRendererGroup.AddBatch.


Did you find this page useful? Please give it a rating: