mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Add more formats.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
cb2a9b2611
commit
3629787aad
@@ -1648,6 +1648,22 @@ static void vkd3d_set_view_swizzle_for_format(VkComponentMapping *components,
|
||||
FIXME("Alpha swizzle is not supported.\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (format->dxgi_format == DXGI_FORMAT_B8G8R8X8_UNORM
|
||||
|| format->dxgi_format == DXGI_FORMAT_B8G8R8X8_UNORM_SRGB)
|
||||
{
|
||||
if (allowed_swizzle)
|
||||
{
|
||||
components->r = VK_COMPONENT_SWIZZLE_R;
|
||||
components->g = VK_COMPONENT_SWIZZLE_G;
|
||||
components->b = VK_COMPONENT_SWIZZLE_B;
|
||||
components->a = VK_COMPONENT_SWIZZLE_ONE;
|
||||
}
|
||||
else
|
||||
{
|
||||
FIXME("B8G8R8X8 swizzle is not supported.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct vkd3d_texture_view_desc
|
||||
|
||||
Reference in New Issue
Block a user