vk: Add even more D32_SFLOAT missing locations

This commit is contained in:
kd-11 2020-12-09 19:52:22 +03:00 committed by kd-11
parent 5d934c8759
commit aac874a842
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ namespace vk
switch (format_code)
{
case VK_FORMAT_D16_UNORM:
case VK_FORMAT_D32_SFLOAT:
case VK_FORMAT_D24_UNORM_S8_UINT:
case VK_FORMAT_D32_SFLOAT_S8_UINT:
key |= (format_code << 8);

View File

@ -481,6 +481,7 @@ namespace vk
switch (vram_texture->info.format)
{
case VK_FORMAT_D16_UNORM:
case VK_FORMAT_D32_SFLOAT:
case VK_FORMAT_D32_SFLOAT_S8_UINT:
case VK_FORMAT_D24_UNORM_S8_UINT:
return true;
@ -1424,6 +1425,7 @@ namespace vk
switch (tex.get_format())
{
case VK_FORMAT_D16_UNORM:
case VK_FORMAT_D32_SFLOAT:
case VK_FORMAT_D32_SFLOAT_S8_UINT:
case VK_FORMAT_D24_UNORM_S8_UINT:
return true;