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;
90 VkDeviceQueueCreateFlags gfxQueueFlags = 0;
92 void *vmemAllocator =
nullptr;
95 VkQueue gfxQueue = VK_NULL_HANDLE;
96 QVulkanInstance *inst =
nullptr;
99struct Q_GUI_EXPORT QRhiVulkanCommandBufferNativeHandles :
public QRhiNativeHandles
101 VkCommandBuffer commandBuffer = VK_NULL_HANDLE;
104struct Q_GUI_EXPORT QRhiVulkanRenderPassNativeHandles :
public QRhiNativeHandles
106 VkRenderPass renderPass = VK_NULL_HANDLE;
109struct Q_GUI_EXPORT QRhiVulkanQueueSubmitParams :
public QRhiNativeHandles
111 uint32_t waitSemaphoreCount;
112 VkSemaphore *waitSemaphores;
113 uint32_t signalSemaphoreCount;
114 VkSemaphore *signalSemaphores;
115 uint32_t presentWaitSemaphoreCount;
116 VkSemaphore *presentWaitSemaphores;
121#if defined(Q_OS_WIN) || defined(Q_QDOC)
125struct Q_GUI_EXPORT QRhiD3D11InitParams :
public QRhiInitParams
127 bool enableDebugLayer =
false;
130struct Q_GUI_EXPORT QRhiD3D11NativeHandles :
public QRhiNativeHandles
134 void *context =
nullptr;
136 int featureLevel = 0;
137 quint32 adapterLuidLow = 0;
138 qint32 adapterLuidHigh = 0;
141struct Q_GUI_EXPORT QRhiD3D12InitParams :
public QRhiInitParams
143 bool enableDebugLayer =
false;
144 bool enableGpuBasedValidation =
false;
147struct Q_GUI_EXPORT QRhiD3D12NativeHandles :
public QRhiNativeHandles
151 int minimumFeatureLevel = 0;
153 quint32 adapterLuidLow = 0;
154 qint32 adapterLuidHigh = 0;
156 void *commandQueue =
nullptr;
159struct Q_GUI_EXPORT QRhiD3D12CommandBufferNativeHandles :
public QRhiNativeHandles
161 void *commandList =
nullptr;
166#if QT_CONFIG(metal) || defined(Q_QDOC)
168struct Q_GUI_EXPORT QRhiMetalInitParams :
public QRhiInitParams
172struct Q_GUI_EXPORT QRhiMetalNativeHandles :
public QRhiNativeHandles
174 MTLDevice *dev =
nullptr;
175 MTLCommandQueue *cmdQueue =
nullptr;
178struct Q_GUI_EXPORT QRhiMetalCommandBufferNativeHandles :
public QRhiNativeHandles
180 MTLCommandBuffer *commandBuffer =
nullptr;
181 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
\variable QRhiDispatchIndirectCommand::x
\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]
\variable QRhiIndexedIndirectDrawCommand::indexCount
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\variable QRhiIndirectDrawCommand::vertexCount
\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
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
LuminanceBehavior
\value SceneReferred Indicates that the color value of 1.0 is interpreted as 80 nits.
LimitsType
\value LuminanceInNits Indicates that the \l limits union has its luminanceInNits struct set
LuminanceBehavior luminanceBehavior
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h