Skip to content

Commit

Permalink
Improve description of QRhiTextureSubresourceUploadDescription::setImage
Browse files Browse the repository at this point in the history
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 <joger.hansegard@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
  • Loading branch information
Artemiy-d committed Feb 13, 2024
1 parent 3f31290 commit f2957e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/rhi/qrhi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit f2957e4

Please sign in to comment.