mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-31 19:16:17 +00:00
Use D3D12_RESOURCE_DESC Flags to detect depth target (D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL). Use GetDepthTypedFormat() to get correct depth copy format. Use Pixel History IsDepthFormat() internal method instead of using DXGI_FORMAT helper function "IsDepthFormat". Fixes issue of pixel history on typeless target cast to UNORM and used as depth i.e. R16_TYPLESS, cast to UNORM used as a shadow map