From 33e15236c6fd8623bc516a194ca65e8810f1f855 Mon Sep 17 00:00:00 2001 From: kopaka1822 Date: Fri, 19 May 2023 18:38:49 +0200 Subject: added D32_S8 format (#2885) * added D32_S8 format * fixed isTypelessDepthFormat format for DXGI_FORMAT_R32G8X24_TYPELESS * added R32_FLOAT_X32_TYPELESS format to allow (depth component only) shader resource views for the D32_FLOAT_S8_UINT format. - unsure about the changed in the vk-util.cpp: No matching VK_Format? --------- Co-authored-by: Yong He Co-authored-by: jsmall-nvidia --- tools/gfx/d3d/d3d-util.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/gfx/d3d/d3d-util.cpp') diff --git a/tools/gfx/d3d/d3d-util.cpp b/tools/gfx/d3d/d3d-util.cpp index 0257ede1b..e1ffc0efc 100644 --- a/tools/gfx/d3d/d3d-util.cpp +++ b/tools/gfx/d3d/d3d-util.cpp @@ -208,6 +208,8 @@ D3D12_DEPTH_STENCILOP_DESC D3DUtil::translateStencilOpDesc(DepthStencilOpDesc de case Format::D32_FLOAT: return DXGI_FORMAT_D32_FLOAT; case Format::D16_UNORM: return DXGI_FORMAT_D16_UNORM; + case Format::D32_FLOAT_S8_UINT: return DXGI_FORMAT_D32_FLOAT_S8X24_UINT; + case Format::R32_FLOAT_X32_TYPELESS: return DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS; case Format::B4G4R4A4_UNORM: return DXGI_FORMAT_B4G4R4A4_UNORM; case Format::B5G6R5_UNORM: return DXGI_FORMAT_B5G6R5_UNORM; -- cgit v1.2.3