From 34defa095a4dcb89afef51dabcbfec5a7b69e913 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 13 May 2022 13:23:32 +0200 Subject: [PATCH] rhi: Fix texture format doc typo and rephrase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica4cc0fcea642eccfff7b53a65e7d1a428fd4dad Reviewed-by: Christian Strømme --- src/gui/rhi/qrhi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index d550125135..1bdebdb4c7 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2572,9 +2572,9 @@ bool QRhiRenderBuffer::createFrom(NativeRenderBuffer src) \value RGBA10A2 Four components, unsigned normalized 10 bit R, G, and B, 2-bit alpha. This is a packed format so native endianness applies. Note - that there is no BGR30A2: this format maps to DXGI_FORMAT_R10G10B10A2_UNORM - with D3D, MTLPixelFormatRGB10A2Unorm with Metal, - VK_FORMAT_A2B10G10R10_UNORM_PACK32 with Vulkan, and + that there is no BGR10A2. This is because RGB10A2 maps to + DXGI_FORMAT_R10G10B10A2_UNORM with D3D, MTLPixelFormatRGB10A2Unorm with + Metal, VK_FORMAT_A2B10G10R10_UNORM_PACK32 with Vulkan, and GL_RGB10_A2/GL_RGB/GL_UNSIGNED_INT_2_10_10_10_REV on OpenGL (ES). This is the only universally supported RGB30 option. The corresponding QImage formats are QImage::Format_BGR30 and QImage::Format_A2BGR30_Premultiplied.