Nesta página

QRhiTextureUploadEntry Class

Descreve uma camada (face para cubemaps, fatia para texturas 3D, elemento para matrizes de textura) em uma operação de envio de textura. Mais...

Cabeçalho: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Desde: Qt 6.6

Funções públicas

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)

Descrição detalhada

Observação: Esta é uma API RHI com garantias de compatibilidade limitadas; consulte QRhi para obter detalhes.

Documentação das funções-membro

[noexcept default] QRhiTextureUploadEntry::QRhiTextureUploadEntry()

Cria um objeto QRhiTextureUploadEntry vazio, direcionado à camada 0 e ao nível 0.

Observação: um QRhiTextureUploadEntry vazio não deve ser enviado sem que, primeiro, seja definido um ` QRhiTextureSubresourceUploadDescription ` por meio de ` setDescription()`.

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

Cria um QRhiTextureUploadEntry com os parâmetros layer e mip level, cujo conteúdo do subrecurso é descrito em desc.

QRhiTextureSubresourceUploadDescription QRhiTextureUploadEntry::description() const

Retorna a descrição do subrecurso definida no momento.

Veja também ` setDescription()`.

int QRhiTextureUploadEntry::layer() const

Retorna o índice da camada definida no momento (face do cubemap, camada de matriz). O valor padrão é 0.

Veja também ` setLayer()`.

int QRhiTextureUploadEntry::level() const

Retorna o nível de mip atualmente definido. O valor padrão é 0.

Veja também setLevel().

void QRhiTextureUploadEntry::setDescription(const QRhiTextureSubresourceUploadDescription &desc)

Define a descrição do subrecurso desc.

Veja também description().

void QRhiTextureUploadEntry::setLayer(int layer)

Define o parâmetro “ layer ”.

Veja também layer().

void QRhiTextureUploadEntry::setLevel(int level)

Define o mip level.

Veja também 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.