Version: 2022.3
言語: 日本語
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.