20#include <QtGui/qsurfaceformat.h>
24#include <QtGui/qvulkaninstance.h>
27#if QT_CONFIG(metal) || defined(Q_QDOC)
28Q_FORWARD_DECLARE_OBJC_CLASS(MTLDevice);
29Q_FORWARD_DECLARE_OBJC_CLASS(MTLCommandQueue);
30Q_FORWARD_DECLARE_OBJC_CLASS(MTLCommandBuffer);
31Q_FORWARD_DECLARE_OBJC_CLASS(MTLRenderCommandEncoder);
36struct Q_GUI_EXPORT QRhiNullInitParams :
public QRhiInitParams
44#if QT_CONFIG(opengl) || defined(Q_QDOC)
47class QOffscreenSurface;
51struct Q_GUI_EXPORT QRhiGles2InitParams :
public QRhiInitParams
53 QRhiGles2InitParams();
55 QSurfaceFormat format;
56 QSurface *fallbackSurface =
nullptr;
57 QWindow *window =
nullptr;
58 QOpenGLContext *shareContext =
nullptr;
60 static QOffscreenSurface *newFallbackSurface(
const QSurfaceFormat &format = QSurfaceFormat::defaultFormat());
63struct Q_GUI_EXPORT QRhiGles2NativeHandles :
public QRhiNativeHandles
65 QOpenGLContext *context =
nullptr;
70#if (QT_CONFIG(vulkan) && __has_include(<vulkan/vulkan.h>)) || defined(Q_QDOC)
72struct Q_GUI_EXPORT QRhiVulkanInitParams :
public QRhiInitParams
74 QVulkanInstance *inst =
nullptr;
75 QWindow *window =
nullptr;
76 QByteArrayList deviceExtensions;
78 static QByteArrayList preferredInstanceExtensions();
79 static QByteArrayList preferredExtensionsForImportedDevice();
82struct Q_GUI_EXPORT QRhiVulkanNativeHandles :
public QRhiNativeHandles
85 VkPhysicalDevice physDev = VK_NULL_HANDLE;
87 VkDevice dev = VK_NULL_HANDLE;
88 quint32 gfxQueueFamilyIdx = 0;
89 quint32 gfxQueueIdx = 0;
91 void *vmemAllocator =
nullptr;
94 VkQueue gfxQueue = VK_NULL_HANDLE;
95 QVulkanInstance *inst =
nullptr;
98struct Q_GUI_EXPORT QRhiVulkanCommandBufferNativeHandles :
public QRhiNativeHandles
100 VkCommandBuffer commandBuffer = VK_NULL_HANDLE;
103struct Q_GUI_EXPORT QRhiVulkanRenderPassNativeHandles :
public QRhiNativeHandles
105 VkRenderPass renderPass = VK_NULL_HANDLE;
108struct Q_GUI_EXPORT QRhiVulkanQueueSubmitParams :
public QRhiNativeHandles
110 uint32_t waitSemaphoreCount;
111 VkSemaphore *waitSemaphores;
112 uint32_t signalSemaphoreCount;
113 VkSemaphore *signalSemaphores;
114 uint32_t presentWaitSemaphoreCount;
115 VkSemaphore *presentWaitSemaphores;
120#if defined(Q_OS_WIN) || defined(Q_QDOC)
124struct Q_GUI_EXPORT QRhiD3D11InitParams :
public QRhiInitParams
126 bool enableDebugLayer =
false;
129struct Q_GUI_EXPORT QRhiD3D11NativeHandles :
public QRhiNativeHandles
133 void *context =
nullptr;
135 int featureLevel = 0;
136 quint32 adapterLuidLow = 0;
137 qint32 adapterLuidHigh = 0;
140struct Q_GUI_EXPORT QRhiD3D12InitParams :
public QRhiInitParams
142 bool enableDebugLayer =
false;
145struct Q_GUI_EXPORT QRhiD3D12NativeHandles :
public QRhiNativeHandles
149 int minimumFeatureLevel = 0;
151 quint32 adapterLuidLow = 0;
152 qint32 adapterLuidHigh = 0;
154 void *commandQueue =
nullptr;
157struct Q_GUI_EXPORT QRhiD3D12CommandBufferNativeHandles :
public QRhiNativeHandles
159 void *commandList =
nullptr;
164#if QT_CONFIG(metal) || defined(Q_QDOC)
166struct Q_GUI_EXPORT QRhiMetalInitParams :
public QRhiInitParams
170struct Q_GUI_EXPORT QRhiMetalNativeHandles :
public QRhiNativeHandles
172 MTLDevice *dev =
nullptr;
173 MTLCommandQueue *cmdQueue =
nullptr;
176struct Q_GUI_EXPORT QRhiMetalCommandBufferNativeHandles :
public QRhiNativeHandles
178 MTLCommandBuffer *commandBuffer =
nullptr;
179 MTLRenderCommandEncoder *encoder =
nullptr;
friend bool operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) noexcept
Returns true if lhs and rhs are equal, otherwise returns false.
friend bool operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) noexcept
Returns true if lhs and rhs are different, otherwise returns false.
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Combined button and popup list for selecting options.
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
bool operator<(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
Q_DECLARE_TYPEINFO(QRhiSwapChainHdrInfo, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QShaderKey, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QShaderCode, Q_RELOCATABLE_TYPE)
Q_GUI_EXPORT bool operator==(const QShaderKey &lhs, const QShaderKey &rhs) noexcept
bool operator!=(const QShaderCode &lhs, const QShaderCode &rhs) noexcept
Q_GUI_EXPORT bool operator==(const QShaderCode &lhs, const QShaderCode &rhs) noexcept
bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs) noexcept
Q_GUI_EXPORT bool operator<(const QShaderKey &lhs, const QShaderKey &rhs) noexcept
int main(int argc, char *argv[])
[ctor_close]
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\variable QRhiReadbackResult::completed
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
LuminanceBehavior
\value SceneReferred Indicates that the color value of 1.0 is interpreted as 80 nits.
float maxPotentialColorComponentValue
LimitsType
\value LuminanceInNits Indicates that the \l limits union has its luminanceInNits struct set
LuminanceBehavior luminanceBehavior
float maxColorComponentValue
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h