diff options
author | Jean-Michaƫl Celerier <jean-michael.celerier@kdab.com> | 2020-06-26 11:47:46 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2020-07-02 08:05:42 +0200 |
commit | b9588a800bda713d993736ab3c359a9d58e9aaf1 (patch) | |
tree | 2df4634864c0e2f3d5495e51ebbdf5ced34dbbb6 /src/gui/rhi/qrhi.cpp | |
parent | 05b60631a2cb5c5536490509ed5d41c08a967dc5 (diff) |
rhi: add support for D24 / D24S8 formats
Change-Id: I7ba14d30fa57bcb92cd764aed6c85cde853935b4
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi.cpp')
-rw-r--r-- | src/gui/rhi/qrhi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index 6e7c975753..1ad275e768 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2245,6 +2245,10 @@ QRhiResource::Type QRhiRenderBuffer::resourceType() const \value D16 16-bit depth (normalized unsigned integer) + \value D24 24-bit depth (normalized unsigned integer) + + \value D24S8 24-bit depth (normalized unsigned integer), 8 bit stencil + \value D32F 32-bit depth (32-bit float) \value BC1 @@ -4137,6 +4141,8 @@ void QRhiImplementation::textureFormatInfo(QRhiTexture::Format format, const QSi case QRhiTexture::D16: bpc = 2; break; + case QRhiTexture::D24: + case QRhiTexture::D24S8: case QRhiTexture::D32F: bpc = 4; break; |