QRhiTextureCopyDescription Class
Describes a texture-to-texture copy operation. More...
Header: | #include <QRhiTextureCopyDescription> |
qmake: | QT += rhi |
Public Functions
QRhiTextureCopyDescription() | |
int | destinationLayer() const |
int | destinationLevel() const |
QPoint | destinationTopLeft() const |
QSize | pixelSize() const |
void | setDestinationLayer(int layer) |
void | setDestinationLevel(int level) |
void | setDestinationTopLeft(const QPoint &p) |
void | setPixelSize(const QSize &sz) |
void | setSourceLayer(int layer) |
void | setSourceLevel(int level) |
void | setSourceTopLeft(const QPoint &p) |
int | sourceLayer() const |
int | sourceLevel() const |
QPoint | sourceTopLeft() const |
Detailed Description
Describes a texture-to-texture copy operation.
An empty pixelSize() indicates that the entire subresource is to be copied. A default constructed copy description therefore leads to copying the entire subresource at level 0 of layer 0.
Note: The source texture must be created with QRhiTexture::UsedAsTransferSource.
Note: The source and destination rectangles defined by pixelSize(), sourceTopLeft(), and destinationTopLeft() must fit the source and destination textures, respectively. The behavior is undefined otherwise.
Member Type Documentation
Property Documentation
Member Function Documentation
QRhiTextureCopyDescription::QRhiTextureCopyDescription()
Constructs an empty texture copy description.
int QRhiTextureCopyDescription::destinationLayer() const
See also setDestinationLayer().
int QRhiTextureCopyDescription::destinationLevel() const
See also setDestinationLevel().
QPoint QRhiTextureCopyDescription::destinationTopLeft() const
See also setDestinationTopLeft().
QSize QRhiTextureCopyDescription::pixelSize() const
See also setPixelSize().
void QRhiTextureCopyDescription::setDestinationLayer(int layer)
See also destinationLayer().
void QRhiTextureCopyDescription::setDestinationLevel(int level)
See also destinationLevel().
void QRhiTextureCopyDescription::setDestinationTopLeft(const QPoint &p)
See also destinationTopLeft().
void QRhiTextureCopyDescription::setPixelSize(const QSize &sz)
See also pixelSize().
void QRhiTextureCopyDescription::setSourceLayer(int layer)
See also sourceLayer().
void QRhiTextureCopyDescription::setSourceLevel(int level)
See also sourceLevel().
void QRhiTextureCopyDescription::setSourceTopLeft(const QPoint &p)
See also sourceTopLeft().
int QRhiTextureCopyDescription::sourceLayer() const
See also setSourceLayer().
int QRhiTextureCopyDescription::sourceLevel() const
See also setSourceLevel().
QPoint QRhiTextureCopyDescription::sourceTopLeft() const
See also setSourceTopLeft().