From fa7a512ba54e49adde84af331b31665969510472 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Fri, 1 May 2020 13:52:02 +0200 Subject: [PATCH] Fixed support of RG16F textures with Vulkan --- neo/renderer/Vulkan/Image_VK.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neo/renderer/Vulkan/Image_VK.cpp b/neo/renderer/Vulkan/Image_VK.cpp index 62031afd..1250ca53 100644 --- a/neo/renderer/Vulkan/Image_VK.cpp +++ b/neo/renderer/Vulkan/Image_VK.cpp @@ -89,6 +89,9 @@ static VkFormat VK_GetFormatFromTextureFormat( const textureFormat_t format ) //case FMT_SHADOW_ARRAY: // 32 bpp * 6 // return VK_FORMAT_ + case FMT_RG16F: + return VK_FORMAT_R16G16_SFLOAT; + // we might want to use UNORM instead of SFLOAT // however this is intended to be used for the HDR lights buffer which should be allowed to go beyond 1.0 case FMT_RGBA16F: