示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
 internal bool CompatibleWith(ShapeDrawState other) => mesh == other.mesh && submesh == other.submesh && mat == other.mat;