QRhiTextureUploadEntry Class

Beschreibt eine Ebene (Fläche für Cubemaps, Slice für 3D-Texturen, Element für Textur-Arrays) in einem Textur-Upload-Vorgang. Mehr...

Kopfzeile: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Since: 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)

Detaillierte Beschreibung

Hinweis: Dies ist eine RHI API mit eingeschränkten Kompatibilitätsgarantien, siehe QRhi für Details.

Dokumentation der Memberfunktionen

[noexcept] QRhiTextureUploadEntry::QRhiTextureUploadEntry()

Konstruiert einen leeren QRhiTextureUploadEntry, der auf Layer 0 und Level 0 ausgerichtet ist.

Hinweis: Ein leerer QRhiTextureUploadEntry sollte nicht übermittelt werden, ohne vorher ein QRhiTextureSubresourceUploadDescription über setDescription() zu setzen.

QRhiTextureUploadEntry::QRhiTextureUploadEntry(int layer, int level, const QRhiTextureSubresourceUploadDescription &desc)

Konstruiert einen QRhiTextureUploadEntry, der auf die angegebene layer und mip level abzielt, wobei der Inhalt der Subresource durch desc beschrieben wird.

QRhiTextureSubresourceUploadDescription QRhiTextureUploadEntry::description() const

Gibt die aktuell eingestellte Subressourcenbeschreibung zurück.

Siehe auch setDescription().

int QRhiTextureUploadEntry::layer() const

Gibt den aktuell eingestellten Ebenenindex (Cubemap-Fläche, Array-Ebene) zurück. Der Standardwert ist 0.

Siehe auch setLayer().

int QRhiTextureUploadEntry::level() const

Gibt den aktuell eingestellten Mip-Level zurück. Der Standardwert ist 0.

Siehe auch setLevel().

void QRhiTextureUploadEntry::setDescription(const QRhiTextureSubresourceUploadDescription &desc)

Legt die Beschreibung der Subressource desc fest.

Siehe auch description().

void QRhiTextureUploadEntry::setLayer(int layer)

Setzt die layer.

Siehe auch layer().

void QRhiTextureUploadEntry::setLevel(int level)

Setzt den mip level.

Siehe auch level().

© 2025 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.