QRhiTextureUploadEntry Class
Beschreibt eine Ebene („Face“ bei Cubemaps, „Slice“ bei 3D-Texturen, „Element“ bei Textur-Arrays) bei einem Textur-Upload. Mehr...
| Header: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| Seit: | Qt 6.6 |
Öffentliche Funktionen
| QRhiTextureUploadEntry() | |
| QRhiTextureUploadEntry(int layer, int level, const QRhiTextureSubresourceUploadDescription &desc) | |
| QRhiTextureSubresourceUploadDescription | description() const |
| int | layer() const |
| int | level() const |
| void | setDescription(const QRhiTextureSubresourceUploadDescription &desc) |
| void | setLayer(int layer) |
| void | setLevel(int level) |
Ausführliche Beschreibung
Hinweis: Dies ist eine RHI-API mit eingeschränkten Kompatibilitätsgarantien; weitere Informationen finden Sie unter QRhi.
Dokumentation zu den Mitgliedsfunktionen
[noexcept default] QRhiTextureUploadEntry::QRhiTextureUploadEntry()
Erstellt einen leeren QRhiTextureUploadEntry, der auf Ebene 0 und Level 0 abzielt.
Hinweis: Ein leerer „QRhiTextureUploadEntry“ sollte nicht übermittelt werden, ohne zuvor über „ setDescription()“ einen „ QRhiTextureSubresourceUploadDescription “ festgelegt zu haben.
QRhiTextureUploadEntry::QRhiTextureUploadEntry(int layer, int level, const QRhiTextureSubresourceUploadDescription &desc)
Erstellt einen `QRhiTextureUploadEntry` für die angegebenen Werte ` layer ` und `mip` level, wobei der Inhalt der Unterressource durch ` desc` beschrieben wird.
QRhiTextureSubresourceUploadDescription QRhiTextureUploadEntry::description() const
Gibt die aktuell festgelegte Beschreibung der Unterressource zurück.
Siehe auch „ setDescription()“.
int QRhiTextureUploadEntry::layer() const
Gibt den aktuell eingestellten Layer-Index zurück (Cubemap-Fläche, Array-Layer). Der Standardwert ist 0.
Siehe auch „ setLayer()“.
int QRhiTextureUploadEntry::level() const
Gibt die aktuell eingestellte Mip-Stufe zurück. Der Standardwert ist 0.
Siehe auch setLevel().
void QRhiTextureUploadEntry::setDescription(const QRhiTextureSubresourceUploadDescription &desc)
Legt die Beschreibung der Unterressource „ desc “ fest.
Siehe auch description().
void QRhiTextureUploadEntry::setLayer(int layer)
Legt die „ layer “ fest.
Siehe auch layer().
void QRhiTextureUploadEntry::setLevel(int level)
Legt die Mip- level fest.
Siehe auch level().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.