![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qrhi.h>
Public Member Functions | |
QRhiTextureCopyDescription ()=default | |
Constructs an empty texture copy description. | |
QSize | pixelSize () const |
void | setPixelSize (const QSize &sz) |
Sets the size of the region to copy to sz. | |
int | sourceLayer () const |
void | setSourceLayer (int layer) |
Sets the source array layer. | |
int | sourceLevel () const |
void | setSourceLevel (int level) |
Sets the source mip level. | |
QPoint | sourceTopLeft () const |
void | setSourceTopLeft (const QPoint &p) |
Sets the source top-left position to p. | |
int | destinationLayer () const |
void | setDestinationLayer (int layer) |
Sets the destination array layer. | |
int | destinationLevel () const |
void | setDestinationLevel (int level) |
Sets the destination mip level. | |
QPoint | destinationTopLeft () const |
void | setDestinationTopLeft (const QPoint &p) |
Sets the destination top-left position p. | |
\inmodule QtGui
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.
With cubemaps, 3D textures, and texture arrays one face or slice can be copied at a time. The face or slice is specified by the source and destination layer indices. With mipmapped textures one mip level can be copied at a time. The source and destination layer and mip level indices can differ, but the size and position must be carefully controlled to avoid out of bounds copies, in which case the behavior is undefined.
|
default |
Constructs an empty texture copy description.
|
inline |
Definition at line 743 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
Definition at line 746 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
Definition at line 749 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
Definition at line 731 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 734 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
Definition at line 737 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().
|
inline |
Definition at line 740 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::simulateTextureCopy().