From f604f25aba8c3d24ffb544c202ee34a21a605d51 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 14 Jun 2017 23:24:16 +0200 Subject: [PATCH] libs/vkd3d: Add DXGI_FORMAT_R11G11B10_FLOAT. --- include/dxgibase.h | 1 + libs/vkd3d/utils.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/dxgibase.h b/include/dxgibase.h index 9b78ec41..a22bf792 100644 --- a/include/dxgibase.h +++ b/include/dxgibase.h @@ -46,6 +46,7 @@ typedef enum DXGI_FORMAT DXGI_FORMAT_R10G10B10A2_UNORM = 0x18, + DXGI_FORMAT_R11G11B10_FLOAT = 0x1a, DXGI_FORMAT_R8G8B8A8_TYPELESS = 0x1b, DXGI_FORMAT_R8G8B8A8_UNORM = 0x1c, diff --git a/libs/vkd3d/utils.c b/libs/vkd3d/utils.c index 6aa42658..9148a1b5 100644 --- a/libs/vkd3d/utils.c +++ b/libs/vkd3d/utils.c @@ -30,6 +30,7 @@ static const struct vkd3d_format vkd3d_formats[] = {DXGI_FORMAT_R32G32B32_FLOAT, VK_FORMAT_R32G32B32_SFLOAT, 12, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_R32G32_FLOAT, VK_FORMAT_R32G32_SFLOAT, 8, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_R10G10B10A2_UNORM, VK_FORMAT_A2B10G10R10_UNORM_PACK32, 4, VK_IMAGE_ASPECT_COLOR_BIT}, + {DXGI_FORMAT_R11G11B10_FLOAT, VK_FORMAT_B10G11R11_UFLOAT_PACK32, 4, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, 4, VK_IMAGE_ASPECT_COLOR_BIT}, {DXGI_FORMAT_D32_FLOAT, VK_FORMAT_D32_SFLOAT, 4, VK_IMAGE_ASPECT_DEPTH_BIT}, {DXGI_FORMAT_R32_FLOAT, VK_FORMAT_R32_SFLOAT, 4, VK_IMAGE_ASPECT_COLOR_BIT},