Ejemplo n.º 1
0
 /// <inheritdoc />
 public override RenderUnit EmitBatch(
     int startIndex,
     int elementCount,
     DrawContext drawContext,
     MeshProcessor.RenderObjectInfoAccessor renderObjectInfoAccessor)
 {
     ArrayHelpers.EnsureCapacityPo2 <InstancingBatchSetting>(ref this.batches, this.batchCount + 1);
     ArrayHelpers.EnsureCapacityPo2 <Matrix4x4>(ref this.worldTransforms, this.worldTransformCount + elementCount);
     ref InstancingBatchSetting local = ref this.batches[this.batchCount++];