Skip to content

Commit

Permalink
Support another depth format for SRV access
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 21, 2024
1 parent d154eaa commit 6402af7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ void kope_d3d12_descriptor_set_set_texture_view_srv(kope_g5_device *device, kope
case DXGI_FORMAT_D16_UNORM:
desc.Format = DXGI_FORMAT_R16_UNORM;
break;
case DXGI_FORMAT_D32_FLOAT:
desc.Format = DXGI_FORMAT_R32_FLOAT;
break;
default:
desc.Format = format;
break;
Expand Down

0 comments on commit 6402af7

Please sign in to comment.