UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:windows.ui.xaml.media.dxinterop.ISwapChainPanelNative.SetSwapChain |
ISwapChainPanelNative::xaml (windows.ui.xaml.media.dxinterop.h) |
Sets the DirectX swap chain for SwapChainPanel. |
|
winrt\iswapchainpanelnative_setswapchain.htm |
WinRT |
8269A6DC-1732-40CF-96C7-FA13BC6763D2 |
12/05/2018 |
ISwapChainPanelNative interface [Windows Runtime],SetSwapChain method, ISwapChainPanelNative.SetSwapChain, ISwapChainPanelNative.xaml, ISwapChainPanelNative::SetSwapChain, ISwapChainPanelNative::xaml, SetSwapChain, SetSwapChain method [Windows Runtime], SetSwapChain method [Windows Runtime],ISwapChainPanelNative interface, windows/ISwapChainPanelNative::SetSwapChain, winrt.iswapchainpanelnative_setswapchain |
windows.ui.xaml.media.dxinterop.h |
Windows |
Windows 8.1 [desktop apps \| UWP apps] |
Windows Server 2012 R2 [desktop apps \| UWP apps] |
Windows.ui.xaml.media.dxinterop.idl |
Windows.UI.Xaml.dll |
Windows |
19H1 |
|
|
|
|
|
|
Sets the DirectX swap chain for SwapChainPanel.
A configured IDXGISwapChain.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This method has to be called on the UI thread the parent SwapChainPanel belongs to. If called on another thread, it will return 0x8001010E
(RPC_E_WRONG_THREAD
, "The application called an interface that was marshaled for a different thread").
When called, this method will increment the reference count for the input IDXGISwapChain that is passed as input. This will in turn cause the reference count to the target graphics device in use (eg. an ID3D12Device) to be incremented as well. In order to ensure these references are released immediately when the panel is no longer needed, you can call SetSwapChain
again passing a null
pointer. This will ensure that all additional references to the object graph starting from the input IDXGISwapChain that had been added by the SwapChainPanel instance will be removed. This is especially important to ensure the device in use can properly be released, for instance to recover from device lost scenarios.