如何在DXGI DirecX上使用“视频内存”?

人气:898 发布:2022-09-22 标签: vcgeneral

问题描述

在Dos模式下,用户可以通过VIDEO_BUFFER使用VideoMemory。 ('#define VIDEO_BUFFER 0xB8000')

At Dos Mode, user can use the VideoMemory by VIDEO_BUFFER. ('#define VIDEO_BUFFER 0xB8000')

但是'DXGI的DirectX11 ',我不能确定我是否使用VideoMemory。 $ 似乎D3D11CreateDevice函数可以做到这一点。

But DirectX11 at 'DXGI', I can't sure that I use VideoMemory. It seems that D3D11CreateDevice function do about it.

我可以通过设置第一个参数null来使用VideoMemory D3D11CreateDevice函数的第二个参数D3D_DRIVER_TYPE_HARDWARE? $ 我必须设置所有吗? 我可以使用像上面创建的DirectX设备在VideoMemory上使用Texture吗?

Can I use VideoMemory by set first parameter null and second parameter D3D_DRIVER_TYPE_HARDWARE of the D3D11CreateDevice function? Is that all I Must to Set? And can I use the Texture at VideoMemory by use DirectX device created like above?

请告诉我。

推荐答案

你好,

感谢您在此发布。

>>我可以通过设置D3D11CreateDevice函数的第一个参数null和第二个参数D3D_DRIVER_TYPE_HARDWARE来使用VideoMemory吗? 这是我必须设置的吗? 我可以使用上面创建的DirectX设备在VideoMemory上使用Texture吗?

硬件驱动程序,在硬件中实现Direct3D功能。这是您应该在Direct3D应用程序中使用的主要驱动程序,因为它提供了最佳性能。我认为硬件是显卡。

A hardware driver, which implements Direct3D features in hardware. This is the primary driver that you should use in your Direct3D applications because it provides the best performance. I think the hardware is video card.

我认为答案是肯定的。有关创建设备的详细信息,请参阅以下内容: https://docs.microsoft.com/en-us/windows/desktop/direct3d11/overviews-direct3d-11-devices-initialize MS提供有关如何使用Microsoft Direct3D 11 API为我们完成几项常见任务的部分。有关详细信息,请参阅此。 https://docs.microsoft.com/en-us/windows/desktop/direct3d11/how-to-use-direct3d-11

I think the answer is yes. For detail about the create a device, you could refer to this: https://docs.microsoft.com/en-us/windows/desktop/direct3d11/overviews-direct3d-11-devices-initialize MS provide the section about how to use the Microsoft Direct3D 11 API to accomplish several common tasks for us. For more details, you could refer to this. https://docs.microsoft.com/en-us/windows/desktop/direct3d11/how-to-use-direct3d-11

祝福,

杰克

917