Sign in to follow this  

[D3D12] Disable shader resource view for back buffer

Recommended Posts



I have been reworking my D3D12 framework and discovered that back buffer resource is missing D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE flag even if I create swap chain without DXGI_USAGE_SHADER_INPUT flag.


Basically, I am doing the following


IDXGISwapChain3* pDXSwapChain = ...;

ID3D12Resource* pDXBuffer = nullptr;
pDXSwapChain->GetBuffer(index, IID_PPV_ARGS(&pDXBuffer));

D3D12_RESOURCE_DESC texDesc = pDXBuffer->GetDesc();
assert((texDesc.Flags & D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE) == 1); // Whoopppss

I would expect D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE to be set on the back buffer as well.

Do you know if it is possible to disable shader resource view on the backbuffer? This is not a big problem for me - just curious :-)



Edited by _void_

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this