From f2957e463362b307c1cc736365c4640c9befbdd0 Mon Sep 17 00:00:00 2001 From: Artem Dyomin Date: Tue, 6 Feb 2024 14:25:03 +0100 Subject: [PATCH] Improve description of QRhiTextureSubresourceUploadDescription::setImage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The format of QImage is not considered upon texture loading, it should be documented. Pick-to: 6.7 6.6 6.5 Change-Id: I795c8a82a71ecdba5407f7e4ce940f7d538ff924 Reviewed-by: Jøger Hansegård Reviewed-by: Artem Dyomin --- src/gui/rhi/qrhi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index 5f94250bc16..60f40608275 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2751,6 +2751,7 @@ QRhiTextureSubresourceUploadDescription::QRhiTextureSubresourceUploadDescription \fn void QRhiTextureSubresourceUploadDescription::setImage(const QImage &image) Sets \a image. + Upon textures loading, the image data will be read as is, with no formats conversions. \note image() and data() cannot be both set at the same time. */