![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h 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. | |
QRect | rect () const |
void | setRect (const QRect &rectangle) |
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
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.
|
inline |
Applicable only when the source of the readback is a QRhiTexture.
|
inline |
|
inline |
|
inline |
|
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 |