Exemplo n.º 1
0
 public IDXGISwapChain1 CreateSwapChainForHwnd(IUnknown device, IntPtr hwnd, SwapChainDescription1 description)
 {
     Guard.NotNull(device, nameof(device));
     Guard.IsTrue(hwnd != IntPtr.Zero, nameof(hwnd), "Invalid hwnd handle");
     return(CreateSwapChainForHwnd(device, hwnd, ref description, null, null));
 }
Exemplo n.º 2
0
        public IDXGISwapChain1 CreateSwapChainForCoreWindow(IUnknown device, IUnknown window, SwapChainDescription1 description, IDXGIOutput restrictToOutput)
        {
            Guard.NotNull(device, nameof(device));
            Guard.NotNull(window, nameof(window));
            Guard.NotNull(restrictToOutput, nameof(restrictToOutput));

            return(CreateSwapChainForCoreWindow(device, window, ref description, restrictToOutput));
        }
Exemplo n.º 3
0
        public IDXGISwapChain1 CreateSwapChainForCoreWindow(IUnknown device, IUnknown window, SwapChainDescription1 description)
        {
            Guard.NotNull(device, nameof(device));
            Guard.NotNull(window, nameof(window));

            return(CreateSwapChainForCoreWindow(device, window, ref description, null));
        }
Exemplo n.º 4
0
 public IDXGISwapChain1 CreateSwapChainForComposition(IUnknown device, SwapChainDescription1 description, IDXGIOutput restrictToOutput)
 {
     Guard.NotNull(device, nameof(device));
     Guard.NotNull(restrictToOutput, nameof(restrictToOutput));
     return(CreateSwapChainForComposition(device, ref description, restrictToOutput));
 }
Exemplo n.º 5
0
 public IDXGISwapChain1 CreateSwapChainForComposition(IUnknown device, SwapChainDescription1 description)
 {
     Guard.NotNull(device, nameof(device));
     return(CreateSwapChainForComposition(device, ref description, null));
 }
Exemplo n.º 6
0
        public IDXGISwapChain1 CreateSwapChainForCompositionSurfaceHandle(IUnknown device, IntPtr surface, SwapChainDescription1 description, IDXGIOutput restrictToOutput)
        {
            Guard.NotNull(device, nameof(device));
            Guard.IsTrue(surface != IntPtr.Zero, nameof(surface), "Invalid surface handle");
            Guard.NotNull(restrictToOutput, nameof(restrictToOutput));

            return(CreateSwapChainForCompositionSurfaceHandle(device, surface, ref description, restrictToOutput));
        }