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 QRhi for details.

Added in version 6.6.

Synopsis

Methods

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 QRhiTextureUploadEntry targeting layer 0 and level 0.

Note

an empty QRhiTextureUploadEntry should not be submitted without setting a QRhiTextureSubresourceUploadDescription via setDescription() first.

__init__(layer, level, desc)
Parameters:

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

description()
Return type:

QRhiTextureSubresourceUploadDescription

Returns the currently set subresource description.

See also

setDescription()

layer()
Return type:

int

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

See also

setLayer()

level()
Return type:

int

Returns the currently set mip level. Defaults to 0.

See also

setLevel()

setDescription(desc)
Parameters:

descQRhiTextureSubresourceUploadDescription

Sets the subresource description desc.

See also

description()

setLayer(layer)
Parameters:

layer – int

Sets the layer.

See also

layer()

setLevel(level)
Parameters:

level – int

Sets the mip level.

See also

level()