예제 #1
0
 ///<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;
 }
예제 #2
0
 public Array LockBox(Type typeLock, int level, LockFlags flags, out LockedBox lockedVolume, params int[] ranks)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public GraphicsStream LockBox(int level, LockFlags flags, out LockedBox lockedVolume)
 {
     throw new NotImplementedException();
 }