可以使用NULL WindowHandle创建SawpChain吗? [英] Can Create SawpChain With NULL WindowHandle?
问题描述
在DirectX9的情况下,可以使用窗口句柄paranmeter null创建设备。
如果Window Handle为null,可以在桌面上获得全屏前缓冲区。
In Case of DirectX9, can create device using window handle paranmeter null.
And In case of Window Handle null, can get front buffer of full screen fo the desktop.
但Incase 对于DirectX10和DirectX11,交换链无法创建窗口句柄paranmeter null。
所以,它似乎无法捕获桌面的全屏。
But Incase of DirectX10 and DirectX11, swapchain can't created with window handle paranmeter null.
So, It seems can't capture fullscreen of the desktop.
是使用Direct10或Direct11捕获桌面全屏的任何方法?
Is ther any method to capture fullscreen of the desktop with Direct10 or Direct11?
推荐答案
嗨judy10,
Hi judy10,
感谢您在此处发布。
>>在DirectX9的情况下,可以使用窗口句柄参数创建设备null。
如果Window Handle为null,可以在桌面上获得全屏前缓冲区。
但是Incase  ;对于DirectX10和DirectX11,交换链不能用窗口句柄参数创建null。
因为这个
文档,从Direct3D 11.1开始,我们建议不再使用CreateSwapChain来创建交换链。相反,使用
CreateSwapChainForHwnd ,
CreateSwapChainForCoreWindow 或
CreateSwapChainForComposition 取决于您要如何创建交换链。并且窗口句柄不能为NULL。
As this document recommended, starting with Direct3D 11.1, we recommend not to use CreateSwapChain anymore to create a swap chain. Instead, use CreateSwapChainForHwnd, CreateSwapChainForCoreWindow, or CreateSwapChainForComposition depending on how you want to create the swap chain. And the window handle can't be NULL.
对此抱歉。
最好的问候,
Sera Yu
这篇关于可以使用NULL WindowHandle创建SawpChain吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!