[]
IDXGIFactory2
[Guid("50c83a1c-e072-4c48-87b0-3630fa36a6d0")]
public class Factory2 : Factory1, IDisposable, IUnknown
Initializes a new instance of the Factory2 class.
public Factory2(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates an Factory2 object.
public static Factory2 Create()
HRESULT IDXGIFactory2::CreateSwapChainForComposition([In] IUnknown* pDevice,[In] const DXGI_SWAP_CHAIN_DESC1* pDesc,[In, Optional] IDXGIOutput* pRestrictToOutput,[Out, Fast] IDXGISwapChain1** ppSwapChain)
public SwapChain1 CreateSwapChain1ForComposition(ComObject deviceRef, ref SwapChainDescription1 descRef, Output restrictToOutputRef)
deviceRef
ComObjectdescRef
SwapChainDescription1restrictToOutputRef
OutputHRESULT IDXGIFactory2::CreateSwapChainForCoreWindow([In] IUnknown* pDevice,[In] IUnknown* pWindow,[In] const DXGI_SWAP_CHAIN_DESC1* pDesc,[In, Optional] IDXGIOutput* pRestrictToOutput,[Out, Fast] IDXGISwapChain1** ppSwapChain)
public SwapChain1 CreateSwapChain1ForCoreWindow(ComObject deviceRef, ComObject windowRef, ref SwapChainDescription1 descRef, Output restrictToOutputRef)
deviceRef
ComObjectwindowRef
ComObjectdescRef
SwapChainDescription1restrictToOutputRef
OutputHRESULT IDXGIFactory2::CreateSwapChainForHwnd([In] IUnknown* pDevice,[In] HWND hWnd,[In] const DXGI_SWAP_CHAIN_DESC1* pDesc,[In, Optional] const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc,[In, Optional] IDXGIOutput* pRestrictToOutput,[Out, Fast] IDXGISwapChain1** ppSwapChain)
public SwapChain1 CreateSwapChain1ForHwnd(ComObject deviceRef, IntPtr hWnd, ref SwapChainDescription1 descRef, SwapChainFullScreenDescription? fullscreenDescRef, Output restrictToOutputRef)
deviceRef
ComObjecthWnd
System.IntPtrdescRef
SwapChainDescription1fullscreenDescRef
SwapChainFullScreenDescription?restrictToOutputRef
OutputHRESULT IDXGIFactory2::GetSharedResourceAdapterLuid([In] void* hResource,[Out] LUID* pLuid)
public long GetSharedResourceAdapterLuid(IntPtr hResource)
hResource
System.IntPtrBOOL IDXGIFactory2::IsWindowedStereoEnabled()
public bool IsWindowedStereoEnabled()
HRESULT IDXGIFactory2::RegisterOcclusionStatusEvent([In] void* hEvent,[Out] unsigned int* pdwCookie)
public int RegisterOcclusionStatusEvent(IntPtr hEvent)
hEvent
System.IntPtrHRESULT IDXGIFactory2::RegisterOcclusionStatusWindow([In] HWND WindowHandle,[In] unsigned int wMsg,[Out] unsigned int* pdwCookie)
public int RegisterOcclusionStatusWindow(IntPtr windowHandle, int wMsg)
windowHandle
System.IntPtrwMsg
intHRESULT IDXGIFactory2::RegisterStereoStatusEvent([In] void* hEvent,[Out] unsigned int* pdwCookie)
public int RegisterStereoStatusEvent(IntPtr hEvent)
hEvent
System.IntPtrHRESULT IDXGIFactory2::RegisterStereoStatusWindow([In] HWND WindowHandle,[In] unsigned int wMsg,[Out] unsigned int* pdwCookie)
public int RegisterStereoStatusWindow(IntPtr windowHandle, int wMsg)
windowHandle
System.IntPtrwMsg
intvoid IDXGIFactory2::UnregisterOcclusionStatus([In] unsigned int dwCookie)
public void UnregisterOcclusionStatus(int dwCookie)
dwCookie
intvoid IDXGIFactory2::UnregisterStereoStatus([In] unsigned int dwCookie)
public void UnregisterStereoStatus(int dwCookie)
dwCookie
intPerforms an explicit conversion from System.IntPtr to Factory2.
public static explicit operator Factory2(IntPtr nativePointer)
nativePointer
System.IntPtr