![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qrhi.h>
Public Member Functions | |
QRhiReadbackDescription ()=default | |
Constructs an empty texture readback description. | |
QRhiReadbackDescription (QRhiTexture *texture) | |
Constructs an texture readback description that specifies that level 0 of layer 0 of texture is to be read back. | |
QRhiTexture * | texture () const |
void | setTexture (QRhiTexture *tex) |
Sets the texture tex as the source of the readback operation. | |
int | layer () const |
void | setLayer (int layer) |
Sets the array layer to read back. | |
int | level () const |
void | setLevel (int level) |
Sets the mip level to read back. | |
\inmodule QtGui
Describes a readback (reading back texture contents from possibly GPU-only memory) operation.
The source of the readback operation is either a QRhiTexture or the current backbuffer of the currently targeted QRhiSwapChain. When texture() is not set, the swapchain is used. Otherwise the specified QRhiTexture is treated as the source.
layer() and level() are only applicable when the source is a QRhiTexture.
|
default |
Constructs an empty texture readback description.
QRhiReadbackDescription::QRhiReadbackDescription | ( | QRhiTexture * | texture | ) |
|
inline |
Applicable only when the source of the readback is a QRhiTexture.
Definition at line 773 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::resourceUpdate().
|
inline |
Applicable only when the source of the readback is a QRhiTexture.
Definition at line 776 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::resourceUpdate().
|
inline |
Sets the array layer to read back.
Definition at line 774 of file qrhi.h.
Referenced by renderToKTXFileInternal().
|
inline |
Sets the mip level to read back.
Definition at line 777 of file qrhi.h.
Referenced by renderToKTXFileInternal().
|
inline |
Sets the texture tex as the source of the readback operation.
Setting \nullptr is valid too, in which case the current swapchain's current backbuffer is used. (but then the readback cannot be issued in a non-swapchain-based frame)
|
inline |
Definition at line 770 of file qrhi.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), and QRhiNull::resourceUpdate().