tests: Add UNORM formats B5G6R5, B5G5R5A1 and B4G4R4A4 to the UAV image clear tests.

This commit is contained in:
Conor McCarthy
2024-04-15 13:51:47 +10:00
committed by Alexandre Julliard
parent b0145ad96e
commit 6205d96c3b
Notes: Alexandre Julliard 2024-04-17 23:29:57 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/788
2 changed files with 42 additions and 2 deletions

View File

@ -357,6 +357,10 @@ static unsigned int format_size(DXGI_FORMAT format)
case DXGI_FORMAT_BC4_UNORM:
case DXGI_FORMAT_BC4_SNORM:
return 8;
case DXGI_FORMAT_B5G6R5_UNORM:
case DXGI_FORMAT_B5G5R5A1_UNORM:
case DXGI_FORMAT_B4G4R4A4_UNORM:
return 2;
default:
trace("Unhandled format %#x.\n", format);