public Surface GetBackBuffer(int iSwapChain, int iBackBuffer, BackBufferType type) { IntPtr backBufferOut = IntPtr.Zero; int res = Interop.Calli(comPointer, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void *)&backBufferOut, (*(IntPtr **)comPointer)[18]); if (res < 0) { throw new SharpDXException(res); } return((backBufferOut == IntPtr.Zero) ? null : new Surface(backBufferOut)); }
public Surface GetBackBuffer(int iSwapChain, int iBackBuffer, BackBufferType type) { IntPtr backBufferOut = IntPtr.Zero; int res = Interop.Calli(comPointer, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void*)&backBufferOut,(*(IntPtr**)comPointer)[18]); if( res < 0 ) { throw new SharpDXException( res ); } return ( backBufferOut == IntPtr.Zero ) ? null : new Surface( backBufferOut ); }
public Surface GetBackBuffer(int backBuffer, BackBufferType typeBuffer) { throw new NotImplementedException(); }
public static void GetBackBuffer(IntPtr ptr, int iSwapChain, int iBackBuffer, BackBufferType type, IntPtr *backBuffer) { int res = Interop.Calli(ptr, iSwapChain, iBackBuffer, (int)type, (IntPtr)backBuffer, (*(IntPtr **)ptr)[18]); if (res < 0) { throw new SharpDXException(res); } }
private Result GetBackBuffer(IntPtr devicePointer, int swapChainIndex, int backBufferIndex, BackBufferType backBufferType, out Surface backBuffer) { try { this.Log.LogMethodSignatureTypesAndValues(devicePointer, swapChainIndex, backBufferIndex, backBufferType, "out"); this.GetOrCreateDevice(devicePointer); backBuffer = this.Device.GetBackBuffer(swapChainIndex, backBufferIndex); return(Result.Ok); } catch (SharpDXException ex) { Log.Warn(ex); backBuffer = null; return(ex.ResultCode); } catch (Exception ex) { this.Log.Fatal(ex); backBuffer = null; return(Result.UnexpectedFailure); } }
private Result GetBackBuffer(IntPtr devicePointer, int swapChainIndex, int backBufferIndex, BackBufferType backBufferType, out Surface backBuffer) { try { this.Log.LogMethodSignatureTypesAndValues(devicePointer, swapChainIndex, backBufferIndex, backBufferType, "out"); this.GetOrCreateDevice(devicePointer); backBuffer = this.Device.GetBackBuffer(swapChainIndex, backBufferIndex); return Result.Ok; } catch (SharpDXException ex) { Log.Warn(ex); backBuffer = null; return ex.ResultCode; } catch (Exception ex) { this.Log.Fatal(ex); backBuffer = null; return Result.UnexpectedFailure; } }
public static IntPtr GetBackBuffer(IntPtr ptr, int iSwapChain, int iBackBuffer, BackBufferType type) { IntPtr backBuffer = IntPtr.Zero; int res = Interop.Calli(ptr, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void *)&backBuffer, (*(IntPtr **)ptr)[18]); if (res < 0) { throw new SharpDXException(res); } return(backBuffer); }
public Surface GetBackBuffer(int swapChain, int backBuffer, BackBufferType backBufferType) { throw new NotImplementedException(); }