Skip to content
Snippets Groups Projects
Commit c3e75516 authored by Chris Forbes's avatar Chris Forbes Committed by Chris Forbes
Browse files

layers: Consider depth+stencil formats to be both float and uint


Depending on which aspect we will consume, these can be either type.

Signed-off-by: default avatarChris Forbes <chrisforbes@google.com>
parent f0fdde76
No related branches found
No related tags found
No related merge requests found
......@@ -1666,6 +1666,10 @@ static unsigned get_format_type(VkFormat fmt) {
case VK_FORMAT_A2B10G10R10_UINT_PACK32:
case VK_FORMAT_A2R10G10B10_UINT_PACK32:
return FORMAT_TYPE_UINT;
case VK_FORMAT_D16_UNORM_S8_UINT:
case VK_FORMAT_D24_UNORM_S8_UINT:
case VK_FORMAT_D32_SFLOAT_S8_UINT:
return FORMAT_TYPE_FLOAT | FORMAT_TYPE_UINT;
default:
return FORMAT_TYPE_FLOAT;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment