QRhiTextureUploadEntry Class

Describes one layer (face for cubemaps, slice for 3D textures, element for texture arrays) in a texture upload operation. 更多...

头: #include <QRhiTextureUploadEntry>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.6

公共函数

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 )

详细描述

注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。

成员函数文档编制

[noexcept] QRhiTextureUploadEntry:: QRhiTextureUploadEntry ()

Constructs an empty QRhiTextureUploadEntry targeting layer 0 and level 0.

注意: an empty QRhiTextureUploadEntry should not be submitted without setting a QRhiTextureSubresourceUploadDescription 凭借 setDescription () first.

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

Constructs a QRhiTextureUploadEntry targeting the given layer and mip level , with the subresource contents described by desc .

QRhiTextureSubresourceUploadDescription QRhiTextureUploadEntry:: description () const

Returns the currently set subresource description.

另请参阅 setDescription ().

int QRhiTextureUploadEntry:: layer () const

Returns the currently set layer index (cubemap face, array layer). Defaults to 0.

另请参阅 setLayer ().

int QRhiTextureUploadEntry:: level () const

Returns the currently set mip level. Defaults to 0.

另请参阅 setLevel ().

void QRhiTextureUploadEntry:: setDescription (const QRhiTextureSubresourceUploadDescription & desc )

Sets the subresource description desc .

另请参阅 description ().

void QRhiTextureUploadEntry:: setLayer ( int layer )

设置 layer .

另请参阅 layer ().

void QRhiTextureUploadEntry:: setLevel ( int level )

Sets the mip level .

另请参阅 level ().