diff options
Diffstat (limited to 'src/gui/rhi/qrhi.cpp')
-rw-r--r-- | src/gui/rhi/qrhi.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index 64d1d5a017..798c5e1a8a 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2213,6 +2213,8 @@ QRhiResource::Type QRhiRenderBuffer::resourceType() const \value R8 One component, unsigned normalized 8 bit. + \value RG8 Two components, unsigned normalized 8 bit. + \value R16 One component, unsigned normalized 16 bit. \value RED_OR_ALPHA8 Either same as R8, or is a similar format with the component swizzled to alpha, @@ -4089,6 +4091,9 @@ void QRhiImplementation::textureFormatInfo(QRhiTexture::Format format, const QSi case QRhiTexture::R8: bpc = 1; break; + case QRhiTexture::RG8: + bpc = 2; + break; case QRhiTexture::R16: bpc = 2; break; |