IDXGIFactory2: used for creating a flip model swap chain on a window.
IDXGIFactory2
00 Remarks
the slots 3 ~ 14 are the methods of IDXGIObject, IDXGIFactory and IDXGIFactory1, they are declared here on purpose so that the slot of IDXGIFactory2.CreateSwapChainForHwnd() lands on 15, but none of them is ever called.
01 Syntax
Microsoft.VisualBasic.Drawing.DirectX.IDXGIFactory2
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CreateSwapChainForHwnd | 1 | create a swap chain that is bound to a window handle |
03 Members
create a swap chain that is bound to a window handle
Parameters
| Name | Type | Description |
|---|---|---|
pDevice | IntPtr | the d3d11 device that renders the swap chain back buffer |
hwnd | IntPtr | the target window handle |
desc | DXGI_SWAP_CHAIN_DESC1 | the swap chain description |
fullscreenDesc | IntPtr | the fullscreen description, a null pointer is passed here because the canvas is always windowed |
restrictToOutput | IntPtr | a null pointer, no output restriction |