Skip to content

Commit

Permalink
Support VK_FORMAT_D24_UNORM_S8_UINT (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
locke-lunarg authored Jan 14, 2025
1 parent 76a9434 commit 79e0919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/decode/vulkan_replay_dump_resources_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@ static util::imagewriter::DataFormats VkFormatToImageWriterDataFormat(VkFormat f
case VK_FORMAT_D32_SFLOAT_S8_UINT:
return util::imagewriter::DataFormats::kFormat_D32_FLOAT;

case VK_FORMAT_D24_UNORM_S8_UINT:
case VK_FORMAT_X8_D24_UNORM_PACK32:
return util::imagewriter::DataFormats::kFormat_D24_UNORM;

case VK_FORMAT_D16_UNORM:
return util::imagewriter::DataFormats::kFormat_D16_UNORM;

default:
GFXRECON_LOG_ERROR("%s isn't supported in VkFormatToImageWriterDataFormat",
util::ToString<VkFormat>(format).c_str());
return util::imagewriter::DataFormats::kFormat_UNSPECIFIED;
}
}
Expand Down

0 comments on commit 79e0919

Please sign in to comment.