rhi: Note in the docs that texture copies expect a matching format

Pick-to: 6.2
Change-Id: I0a1fb042ec2a3983ffbd146ff9bdc9af20134fa5
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
Laszlo Agocs 2021-09-13 15:43:16 +02:00
parent d470497d9a
commit c5a3cabce0

View File

@ -5312,6 +5312,11 @@ void QRhiResourceUpdateBatch::uploadTexture(QRhiTexture *tex, const QImage &imag
\note The source texture \a src must be created with
QRhiTexture::UsedAsTransferSource.
\note The format of the textures must match. With most graphics
APIs the data is copied as-is without any format conversions. If
\a dst and \a src are created with different formats, unspecified
issues may arise.
*/
void QRhiResourceUpdateBatch::copyTexture(QRhiTexture *dst, QRhiTexture *src, const QRhiTextureCopyDescription &desc)
{