Describes one layer (face for cubemaps, slice for 3D textures, element for texture arrays) in a texture upload operation. 更多...
| 頭: |
#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 |
| 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 ().