Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qrhi.h File Reference

(e36c1a8d840ee47be0d4fbf8069fda536042a53c)

#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...
 
struct  QRhiTexture::ViewFormat
 \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 QtGuiPrivate \inheaderfile rhi/qrhi.h More...
 

Typedefs

using QRhiGraphicsShaderStage = QRhiShaderStage
 
using QRhiShaderResourceBindingSet = QRhiShaderResourceBindings
 

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 436 of file qrhi.h.

◆ QRhiShaderResourceBindingSet

Definition at line 1267 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 1229 of file qrhi.cpp.

◆ operator<<() [2/12]

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

Definition at line 8768 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 1442 of file qrhi.cpp.

◆ operator<<() [4/12]

◆ operator<<() [5/12]

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

Definition at line 1254 of file qrhi.cpp.

◆ operator<<() [6/12]

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

Definition at line 2220 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 10397 of file qrhi.cpp.

References info.

◆ operator<<() [8/12]

◆ operator<<() [9/12]

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

Definition at line 1832 of file qrhi.cpp.

◆ operator<<() [10/12]

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

Definition at line 1594 of file qrhi.cpp.

◆ operator<<() [11/12]

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

Definition at line 371 of file qrhi.cpp.

◆ operator<<() [12/12]

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

Definition at line 1349 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() [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