本文介绍了多个渲染目标视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建三重缓冲应用,所以我将DXGI_SWAP_CHAIN_DESC :: BufferCount设置为3,当我尝试为第二个交换链缓冲区创建渲染目标视图时(ID3D11Texture *缓冲区,来自IDXGISwapChain :: GetBuffer(1,__ uuidof(ID3D11Texture2D),
& buffer)),它返回E_INVALIDARG。
我做错了什么?还是我误解了什么?可能只有1个RenderTargetView只需要前面或所有的缓冲区吗?
解决方案
I'm trying to create triple buffered app, so I set DXGI_SWAP_CHAIN_DESC::BufferCount to 3 and when i trying to create render target view for second swap chain buffer (ID3D11Texture* buffer, got from IDXGISwapChain::GetBuffer(1, __uuidof(ID3D11Texture2D), &buffer)), it returns E_INVALIDARG.
Am I doing something wrong? Or did I misunderstand something? Maybe 1 RenderTargetView is needed for only front or all buffers?
解决方案
这篇关于多个渲染目标视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!