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

参数

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].

返回

BatchID ID of the batch that Unity creates.

描述

Thread-safe alias for BatchRendererGroup.AddBatch.