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.
Constructs a QRhiTextureUploadEntry targeting the given layer and mip level , with the subresource contents described by desc .
Returns the currently set subresource description.
另请参阅 setDescription ().
Returns the currently set layer index (cubemap face, array layer). Defaults to 0.
另请参阅 setLayer ().
Returns the currently set mip level. Defaults to 0.
另请参阅 setLevel ().
Sets the subresource description desc .
另请参阅 description ().
设置 layer .
另请参阅 layer ().
Sets the mip level .
另请参阅 level ().