Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddBatch

Thread-safe alias for BatchRendererGroup.AddBatch.
Read time 1 minuteLast updated 5 days ago

Definition

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
GraphicsBufferHandle
of the
GraphicsBuffer
associated with this batch.

Returns

Type

Description

BatchIDID 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
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

Type

Description

BatchIDID of the batch that Unity creates.