예제 #1
0
        public static MTLRegion Create3D(nint x, nint y, nint z, nint width, nint height, nint depth)
        {
            var region = new MTLRegion();

            region.Origin.X    = x;
            region.Origin.Y    = y;
            region.Origin.Z    = z;
            region.Size.Width  = width;
            region.Size.Height = height;
            region.Size.Depth  = depth;
            return(region);
        }
예제 #2
0
        public static MTLRegion Create1D(nint x, nint width)
        {
            var region = new MTLRegion();

            region.Origin.X    = x;
            region.Origin.Y    = 0;
            region.Origin.Z    = 0;
            region.Size.Width  = width;
            region.Size.Height = 1;
            region.Size.Depth  = 1;
            return(region);
        }