Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qrhi.h File Reference
#include <QtGui/qtguiglobal.h>
#include <QtCore/qsize.h>
#include <QtCore/qlist.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qthread.h>
#include <QtGui/qmatrix4x4.h>
#include <QtGui/qcolor.h>
#include <QtGui/qimage.h>
#include <functional>
#include <array>
#include <rhi/qshader.h>
#include <rhi/qrhi_platform.h>
+ Include dependency graph for qrhi.h:

Go to the source code of this file.

Classes

class  QRhiDepthStencilClearValue
 \inmodule QtGui More...
 
class  QRhiViewport
 \inmodule QtGui More...
 
class  QRhiScissor
 \inmodule QtGui More...
 
class  QRhiVertexInputBinding
 \inmodule QtGui More...
 
class  QRhiVertexInputAttribute
 \inmodule QtGui More...
 
class  QRhiVertexInputLayout
 \inmodule QtGui More...
 
class  QRhiShaderStage
 \inmodule QtGui More...
 
class  QRhiShaderResourceBinding
 \inmodule QtGui More...
 
struct  QRhiShaderResourceBinding::TextureAndSampler
 
struct  QRhiShaderResourceBinding::Data
 
struct  QRhiShaderResourceBinding::Data::UniformBufferData
 
struct  QRhiShaderResourceBinding::Data::TextureAndOrSamplerData
 
struct  QRhiShaderResourceBinding::Data::StorageImageData
 
struct  QRhiShaderResourceBinding::Data::StorageBufferData
 
class  QRhiColorAttachment
 \inmodule QtGui More...
 
class  QRhiTextureRenderTargetDescription
 \inmodule QtGui More...
 
class  QRhiTextureSubresourceUploadDescription
 \inmodule QtGui More...
 
class  QRhiTextureUploadEntry
 \inmodule QtGui More...
 
class  QRhiTextureUploadDescription
 \inmodule QtGui More...
 
class  QRhiTextureCopyDescription
 \inmodule QtGui More...
 
class  QRhiReadbackDescription
 \inmodule QtGui More...
 
class  QRhiNativeHandles
 \variable QRhiReadbackResult::completed More...
 
class  QRhiResource
 \inmodule QtGui More...
 
class  QRhiBuffer
 \inmodule QtGui More...
 
class  QRhiBuffer::NativeBuffer
 \inmodule QtGui More...
 
class  QRhiTexture
 \inmodule QtGui More...
 
struct  QRhiTexture::NativeTexture
 \inmodule QtGui More...
 
class  QRhiSampler
 \inmodule QtGui More...
 
class  QRhiRenderBuffer
 \inmodule QtGui More...
 
struct  QRhiRenderBuffer::NativeRenderBuffer
 \inmodule QtGui More...
 
class  QRhiRenderPassDescriptor
 \inmodule QtGui More...
 
class  QRhiRenderTarget
 \inmodule QtGui More...
 
class  QRhiSwapChainRenderTarget
 \inmodule QtGui More...
 
class  QRhiTextureRenderTarget
 \inmodule QtGui More...
 
class  QRhiShaderResourceBindings
 \inmodule QtGui More...
 
class  QRhiGraphicsPipeline
 \inmodule QtGui More...
 
struct  QRhiGraphicsPipeline::TargetBlend
 \inmodule QtGui More...
 
struct  QRhiGraphicsPipeline::StencilOpState
 \variable QRhiGraphicsPipeline::TargetBlend::colorWrite More...
 
struct  QRhiSwapChainHdrInfo
 \inmodule QtGui More...
 
struct  QRhiSwapChainProxyData
 \inmodule QtGui More...
 
class  QRhiSwapChain
 \inmodule QtGui More...
 
class  QRhiComputePipeline
 \inmodule QtGui More...
 
class  QRhiCommandBuffer
 \inmodule QtGui More...
 
class  QRhiReadbackResult
 \inmodule QtGui More...
 
class  QRhiResourceUpdateBatch
 \inmodule QtGui More...
 
struct  QRhiDriverInfo
 \inmodule QtGui More...
 
struct  QRhiStats
 \inmodule QtGui More...
 
class  QRhiInitParams
 \inmodule QtGui More...
 
class  QRhi
 \inmodule QtGui More...
 

Typedefs

using QRhiGraphicsShaderStage = QRhiShaderStage
 

Functions

 Q_DECLARE_TYPEINFO (QRhiDepthStencilClearValue, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiDepthStencilClearValue &)
 
 Q_DECLARE_TYPEINFO (QRhiViewport, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiViewport &)
 
 Q_DECLARE_TYPEINFO (QRhiScissor, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiScissor &)
 
 Q_DECLARE_TYPEINFO (QRhiVertexInputBinding, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiVertexInputBinding &)
 
 Q_DECLARE_TYPEINFO (QRhiVertexInputAttribute, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiVertexInputAttribute &)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiVertexInputLayout &)
 
 Q_DECLARE_TYPEINFO (QRhiShaderStage, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiShaderStage &)
 
 Q_DECLARE_TYPEINFO (QRhiShaderResourceBinding, Q_PRIMITIVE_TYPE)
 
Q_GUI_EXPORT bool operator== (const QRhiShaderResourceBinding &a, const QRhiShaderResourceBinding &b) noexcept
 
Q_GUI_EXPORT bool operator!= (const QRhiShaderResourceBinding &a, const QRhiShaderResourceBinding &b) noexcept
 
Q_GUI_EXPORT size_t qHash (const QRhiShaderResourceBinding &b, size_t seed=0) noexcept
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiShaderResourceBinding &)
 
 Q_DECLARE_TYPEINFO (QRhiColorAttachment, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiTextureSubresourceUploadDescription, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiTextureUploadEntry, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiTextureCopyDescription, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiReadbackDescription, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiShaderResourceBindings &)
 
 Q_DECLARE_TYPEINFO (QRhiGraphicsPipeline::TargetBlend, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiSwapChainHdrInfo, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiSwapChainHdrInfo &)
 
 Q_DECLARE_TYPEINFO (QRhiDriverInfo, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiDriverInfo &)
 
 Q_DECLARE_TYPEINFO (QRhiStats, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRhiStats &)
 \variable QRhiStats::totalPipelineCreationTime
 

Typedef Documentation

◆ QRhiGraphicsShaderStage

Definition at line 428 of file qrhi.h.

Function Documentation

◆ operator!=()

Q_GUI_EXPORT bool operator!= ( const QRhiShaderResourceBinding a,
const QRhiShaderResourceBinding b 
)
related

◆ operator<<() [1/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiDepthStencilClearValue v 
)

Definition at line 1182 of file qrhi.cpp.

◆ operator<<() [2/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiDriverInfo info 
)

Definition at line 8404 of file qrhi.cpp.

References deviceTypeStr(), Qt::hex(), and info.

+ Here is the call graph for this function:

◆ operator<<() [3/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiScissor s 
)

Definition at line 1395 of file qrhi.cpp.

◆ operator<<() [4/12]

◆ operator<<() [5/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiShaderResourceBindings srb 
)

Definition at line 1230 of file qrhi.cpp.

◆ operator<<() [6/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiShaderStage s 
)

Definition at line 2147 of file qrhi.cpp.

◆ operator<<() [7/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiStats info 
)

\variable QRhiStats::totalPipelineCreationTime

The total time in milliseconds spent in graphics and compute pipeline creation, which usually involves shader compilation or cache lookups, and potentially expensive processing.

Note
The value should not be compared between different backends since the concept of "pipelines" and what exactly happens under the hood during, for instance, a call to QRhiGraphicsPipeline::create(), differ greatly between graphics APIs and their implementations.
See also
QRhi::statistics()

\variable QRhiStats::blockCount

Statistic reported from the Vulkan or D3D12 memory allocator.

See also
QRhi::statistics()

\variable QRhiStats::allocCount

Statistic reported from the Vulkan or D3D12 memory allocator.

See also
QRhi::statistics()

\variable QRhiStats::usedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

See also
QRhi::statistics()

\variable QRhiStats::unusedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

See also
QRhi::statistics()

\variable QRhiStats::totalUsageBytes

Valid only with D3D12 currently. Matches IDXGIAdapter3::QueryVideoMemoryInfo().

See also
QRhi::statistics()

Definition at line 9968 of file qrhi.cpp.

References info.

◆ operator<<() [8/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiSwapChainHdrInfo info 
)

◆ operator<<() [9/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiVertexInputAttribute a 
)

Definition at line 1775 of file qrhi.cpp.

◆ operator<<() [10/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiVertexInputBinding b 
)

Definition at line 1547 of file qrhi.cpp.

◆ operator<<() [11/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiVertexInputLayout v 
)

Definition at line 363 of file qrhi.cpp.

◆ operator<<() [12/12]

Q_GUI_EXPORT QDebug operator<< ( QDebug  dbg,
const QRhiViewport v 
)

Definition at line 1302 of file qrhi.cpp.

◆ operator==()

Q_GUI_EXPORT bool operator== ( const QRhiShaderResourceBinding a,
const QRhiShaderResourceBinding b 
)
related

◆ Q_DECLARE_TYPEINFO() [1/16]

Q_DECLARE_TYPEINFO ( QRhiColorAttachment  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/16]

Q_DECLARE_TYPEINFO ( QRhiDepthStencilClearValue  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [3/16]

Q_DECLARE_TYPEINFO ( QRhiDriverInfo  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [4/16]

Q_DECLARE_TYPEINFO ( QRhiGraphicsPipeline::TargetBlend  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [5/16]

Q_DECLARE_TYPEINFO ( QRhiReadbackDescription  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [6/16]

Q_DECLARE_TYPEINFO ( QRhiScissor  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [7/16]

Q_DECLARE_TYPEINFO ( QRhiShaderResourceBinding  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [8/16]

Q_DECLARE_TYPEINFO ( QRhiShaderStage  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [9/16]

Q_DECLARE_TYPEINFO ( QRhiStats  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [10/16]

Q_DECLARE_TYPEINFO ( QRhiSwapChainHdrInfo  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [11/16]

Q_DECLARE_TYPEINFO ( QRhiTextureCopyDescription  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [12/16]

◆ Q_DECLARE_TYPEINFO() [13/16]

Q_DECLARE_TYPEINFO ( QRhiTextureUploadEntry  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [14/16]

Q_DECLARE_TYPEINFO ( QRhiVertexInputAttribute  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [15/16]

Q_DECLARE_TYPEINFO ( QRhiVertexInputBinding  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [16/16]

Q_DECLARE_TYPEINFO ( QRhiViewport  ,
Q_RELOCATABLE_TYPE   
)

◆ qHash()

Q_GUI_EXPORT size_t qHash ( const QRhiShaderResourceBinding b,
size_t  seed = 0 
)
related