rhi: Fix texture format doc typo and rephrase
Change-Id: Ica4cc0fcea642eccfff7b53a65e7d1a428fd4dad Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
parent
cc42d90eb4
commit
34defa095a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user