///<summary> /// Util functions to convert a D3D LockedBox to a pixel box ///</summary> protected static void FromD3DLock(PixelBox rval, D3D.LockedBox lbox, GraphicsStream stream) { rval.RowPitch = lbox.RowPitch / PixelUtil.GetNumElemBytes(rval.Format); rval.SlicePitch = lbox.SlicePitch / PixelUtil.GetNumElemBytes(rval.Format); Debug.Assert((lbox.RowPitch % PixelUtil.GetNumElemBytes(rval.Format)) == 0); Debug.Assert((lbox.SlicePitch % PixelUtil.GetNumElemBytes(rval.Format)) == 0); rval.Data = stream.InternalData; }
public Array LockBox(Type typeLock, int level, LockFlags flags, out LockedBox lockedVolume, params int[] ranks) { throw new NotImplementedException(); }
public GraphicsStream LockBox(int level, LockFlags flags, out LockedBox lockedVolume) { throw new NotImplementedException(); }