diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-05-13 13:23:32 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-05-24 20:20:02 +0200 |
commit | 34defa095a4dcb89afef51dabcbfec5a7b69e913 (patch) | |
tree | 40f032ee2e1b82abea8e4e4e62bbf25622611494 /src/gui/rhi/qrhi.cpp | |
parent | cc42d90eb4fd148656941e9a6395169b5aa4cf73 (diff) |
rhi: Fix texture format doc typo and rephrase
Change-Id: Ica4cc0fcea642eccfff7b53a65e7d1a428fd4dad
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi.cpp')
-rw-r--r-- | src/gui/rhi/qrhi.cpp | 6 |
1 files 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. |