Skip to content

Commit

Permalink
D3D11Device: Make depth targets sampleable
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jun 29, 2024
1 parent 1cb3e6b commit 3f25db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/d3d11_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ std::unique_ptr<D3D11Texture> D3D11Texture::Create(ID3D11Device* device, u32 wid
bind_flags = D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE;
break;
case Type::DepthStencil:
bind_flags = D3D11_BIND_DEPTH_STENCIL; // | D3D11_BIND_SHADER_RESOURCE;
bind_flags = D3D11_BIND_DEPTH_STENCIL | D3D11_BIND_SHADER_RESOURCE;
break;
case Type::Texture:
bind_flags = D3D11_BIND_SHADER_RESOURCE;
Expand Down

0 comments on commit 3f25db7

Please sign in to comment.