PySide6.QtGui.QRhiTextureUploadEntry¶
- class QRhiTextureUploadEntry¶
Describes one layer (face for cubemaps, slice for 3D textures, element for texture arrays) in a texture upload operation.
Details
Note
This is a RHI API with limited compatibility guarantees, see
QRhifor details.Added in version 6.6.
Synopsis¶
Methods¶
def
__init__()def
description()def
layer()def
level()def
setDescription()def
setLayer()def
setLevel()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
Constructs an empty
QRhiTextureUploadEntrytargeting layer 0 and level 0.Note
an empty
QRhiTextureUploadEntryshould not be submitted without setting aQRhiTextureSubresourceUploadDescriptionviasetDescription()first.- __init__(layer, level, desc)
- Parameters:
layer – int
level – int
Constructs a
QRhiTextureUploadEntrytargeting the givenlayerand miplevel, with the subresource contents described bydesc.- description()¶
- Return type:
Returns the currently set subresource description.
See also
- layer()¶
- Return type:
int
Returns the currently set layer index (cubemap face, array layer). Defaults to 0.
See also
- level()¶
- Return type:
int
Returns the currently set mip level. Defaults to 0.
See also
- setDescription(desc)¶
- Parameters:
Sets the subresource description
desc.See also
- setLayer(layer)¶
- Parameters:
layer – int
Sets the
layer.See also
- setLevel(level)¶
- Parameters:
level – int
Sets the mip
level.See also