Exemple #1
0
 public CanvasSwapChainAdapter(
     IPlatformWindow platformWindow,
     IGraphicsDeviceAdapter graphicsDeviceAdapter)
 {
     this.platformWindow        = platformWindow ?? throw new ArgumentNullException(nameof(platformWindow));
     this.graphicsDeviceAdapter = graphicsDeviceAdapter ?? throw new ArgumentNullException(nameof(graphicsDeviceAdapter));
 }
 public GraphicsDevice(
     IPlatformWindow window,
     IGraphicsDeviceAdapter graphicsDeviceAdapter,
     ISwapChain swapChainAdapter)
 {
     this.window = window ?? throw new ArgumentNullException(nameof(window));
     this.graphicsDeviceAdapter = graphicsDeviceAdapter ?? throw new ArgumentNullException(nameof(graphicsDeviceAdapter));
     this.SwapChain             = swapChainAdapter ?? throw new ArgumentNullException(nameof(swapChainAdapter));
 }
 public CanvasBitmapResourceLoader(IGraphicsDeviceAdapter graphicsDeviceAdapter)
 {
     this.graphicsDeviceAdapter = graphicsDeviceAdapter ?? throw new ArgumentNullException(nameof(graphicsDeviceAdapter));
 }