Avoid unnecessary QueryInterface for DX12 swapchain
このコミットが含まれているのは:
1 親
667310ab3f
コミット
01d7e46fca
1ファイル変更
+1
-5
@@ -219,13 +219,9 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : ReferenceTracked
|
||||
// IDXGISwapChain reference just created and set that as the swap chain panel to use.
|
||||
fixed (ISwapChainPanelNative** swapChainPanelNative = this.swapChainPanelNative)
|
||||
{
|
||||
using ComPtr<IUnknown> swapChainPanel = default;
|
||||
|
||||
swapChainPanel.Attach((IUnknown*)((IWinRTObject)owner).NativeObject.GetRef());
|
||||
|
||||
Guid guid = new(0x63AAD0B8, 0x7C24, 0x40FF, 0x85, 0xA8, 0x64, 0x0D, 0x94, 0x4C, 0xC3, 0x25);
|
||||
|
||||
swapChainPanel.CopyTo(&guid, (void**)swapChainPanelNative).Assert();
|
||||
((IWinRTObject)owner).NativeObject.TryAs(guid, out *(nint*)swapChainPanelNative).Assert();
|
||||
}
|
||||
|
||||
// Get the underlying ID3D12Device in use
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする