public ShapeDrawCall(ShapeDrawState drawState, Matrix4x4 matrix) { this.count = 1; this.drawState = drawState; this.matrix = matrix; this.instanced = false; this.mpb = ObjectPool <MaterialPropertyBlock> .Alloc(); matrices = null; }
public ShapeDrawCall(ShapeDrawState drawState, int count, Matrix4x4[] matrices) { this.count = count; this.drawState = drawState; this.matrices = matrices; this.instanced = true; this.mpb = ObjectPool <MaterialPropertyBlock> .Alloc(); matrix = default; }
internal bool CompatibleWith(ShapeDrawState other) => mesh == other.mesh && submesh == other.submesh && mat == other.mat;