mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Support DXGI_FORMAT_B4G4R4A4_UNORM.
This commit is contained in:
committed by
Alexandre Julliard
parent
8879521679
commit
742288127f
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
@@ -5427,6 +5427,13 @@ static const struct vkd3d_format *vkd3d_fixup_clear_uav_uint_colour(struct d3d12
|
||||
| ((colour->uint32[3] & 0x1) << 15);
|
||||
return vkd3d_get_format(device, DXGI_FORMAT_R16_UINT, false);
|
||||
|
||||
case DXGI_FORMAT_B4G4R4A4_UNORM:
|
||||
colour->uint32[0] = (colour->uint32[2] & 0xf)
|
||||
| ((colour->uint32[1] & 0xf) << 4)
|
||||
| ((colour->uint32[0] & 0xf) << 8)
|
||||
| ((colour->uint32[3] & 0xf) << 12);
|
||||
return vkd3d_get_format(device, DXGI_FORMAT_R16_UINT, false);
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user