public LockedRectangle LockRectangle(int level, D3DRect rect, LockFlags flags) { LockedRectangle lockedRect = new LockedRectangle(); int res = Interop.Calli(comPointer, level, (IntPtr)(void *)&lockedRect, (IntPtr)(void *)&rect, (int)flags, (*(IntPtr **)comPointer)[19]); if (res < 0) { throw new SharpDXException(res); } return(lockedRect); }
public static LockedRectangle LockRectangle(IntPtr ptr, int level, D3DRect region, LockFlags flags) { LockedRectangle rect = new LockedRectangle(); int res = Interop.Calli(ptr, level, (IntPtr)(void *)&rect, (IntPtr)(void *)®ion, (int)flags, (*(IntPtr **)ptr)[19]); if (res < 0) { throw new SharpDXException(res); } return(rect); }