Version: 2023.1
언어: 한국어
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.