libs/vkd3d: Add DXGI_FORMAT_B8G8R8A8_UNORM_SRGB.

This commit is contained in:
Henri Verbeet 2016-10-22 20:49:25 +02:00
parent 6babf11214
commit 6cbe8626c2
2 changed files with 10 additions and 7 deletions

View File

@ -50,6 +50,8 @@ typedef enum DXGI_FORMAT
DXGI_FORMAT_B8G8R8A8_UNORM = 0x57, DXGI_FORMAT_B8G8R8A8_UNORM = 0x57,
DXGI_FORMAT_B8G8R8X8_UNORM = 0x58, DXGI_FORMAT_B8G8R8X8_UNORM = 0x58,
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 0x5b,
DXGI_FORMAT_FORCE_DWORD = 0xffffffff, DXGI_FORMAT_FORCE_DWORD = 0xffffffff,
} DXGI_FORMAT; } DXGI_FORMAT;

View File

@ -31,6 +31,7 @@ static const struct vkd3d_format vkd3d_formats[] =
{DXGI_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, 4, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, 4, VK_IMAGE_ASPECT_COLOR_BIT},
{DXGI_FORMAT_R32_FLOAT, VK_FORMAT_R32_SFLOAT, 4, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_R32_FLOAT, VK_FORMAT_R32_SFLOAT, 4, VK_IMAGE_ASPECT_COLOR_BIT},
{DXGI_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_B8G8R8A8_UNORM, 4, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_B8G8R8A8_UNORM, 4, VK_IMAGE_ASPECT_COLOR_BIT},
{DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, VK_FORMAT_B8G8R8A8_SRGB, 4, VK_IMAGE_ASPECT_COLOR_BIT},
}; };
const struct vkd3d_format *vkd3d_get_format(DXGI_FORMAT dxgi_format) const struct vkd3d_format *vkd3d_get_format(DXGI_FORMAT dxgi_format)