Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qrhi.cpp File Reference

(73a18c3eba6fe5b4ff80f386028dd892da5944d6)

#include "qrhi_p.h"
#include <qmath.h>
#include <QLoggingCategory>
#include "private/qloggingregistry_p.h"
#include "qrhinull_p.h"
#include "qrhigles2_p.h"
#include <memory>
Include dependency graph for qrhi.cpp:

Go to the source code of this file.

Functions

QDebug operator<< (QDebug dbg, const QRhiDepthStencilClearValue &v)
QDebug operator<< (QDebug dbg, const QRhiViewport &v)
QDebug operator<< (QDebug dbg, const QRhiScissor &s)
QDebug operator<< (QDebug dbg, const QRhiVertexInputBinding &b)
QDebug operator<< (QDebug dbg, const QRhiVertexInputAttribute &a)
QDebug operator<< (QDebug dbg, const QRhiVertexInputLayout &v)
QDebug operator<< (QDebug dbg, const QRhiShaderStage &s)
size_t qHash (const QRhiShaderResourceBinding &b, size_t seed) noexcept
 \qhashold{QRhiShaderResourceBinding}
QDebug operator<< (QDebug dbg, const QRhiShaderResourceBinding &b)
QDebug operator<< (QDebug dbg, const QRhiShaderResourceBindings &srb)
QDebug operator<< (QDebug dbg, const QRhiSwapChainHdrInfo &info)
static const char * resourceTypeStr (const QRhiResource *res)
static const char * deviceTypeStr (QRhiDriverInfo::DeviceType type)
 \variable QRhiDriverInfo::deviceName
QDebug operator<< (QDebug dbg, const QRhiDriverInfo &info)
QDebug operator<< (QDebug dbg, const QRhiStats &info)
 \variable QRhiStats::totalPipelineCreationTime
static QRhiPassResourceTracker::BufferStage earlierStage (QRhiPassResourceTracker::BufferStage a, QRhiPassResourceTracker::BufferStage b)
static QRhiPassResourceTracker::TextureStage earlierStage (QRhiPassResourceTracker::TextureStage a, QRhiPassResourceTracker::TextureStage b)
static bool isImageLoadStore (QRhiPassResourceTracker::TextureAccess access)

Variables

static Q_CONSTINIT QBasicAtomicInteger< QRhiGlobalObjectIdGenerator::Typecounter = Q_BASIC_ATOMIC_INITIALIZER(0)

Function Documentation

◆ deviceTypeStr()

const char * deviceTypeStr ( QRhiDriverInfo::DeviceType type)
inlinestatic

◆ earlierStage() [1/2]

Definition at line 11751 of file qrhi.cpp.

Referenced by QRhiPassResourceTracker::registerBuffer().

Here is the caller graph for this function:

◆ earlierStage() [2/2]

Definition at line 11784 of file qrhi.cpp.

Referenced by QRhiPassResourceTracker::registerTexture().

Here is the caller graph for this function:

◆ isImageLoadStore()

bool isImageLoadStore ( QRhiPassResourceTracker::TextureAccess access)
inlinestatic

Definition at line 11790 of file qrhi.cpp.

References QRhiPassResourceTracker::TexStorageLoad, QRhiPassResourceTracker::TexStorageLoadStore, and QRhiPassResourceTracker::TexStorageStore.

Referenced by QRhiPassResourceTracker::registerTexture().

Here is the caller graph for this function:

◆ operator<<() [1/12]

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

Definition at line 1311 of file qrhi.cpp.

◆ operator<<() [2/12]

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

Definition at line 9294 of file qrhi.cpp.

◆ operator<<() [3/12]

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

Definition at line 1524 of file qrhi.cpp.

◆ operator<<() [4/12]

QDebug operator<< ( QDebug dbg,
const QRhiShaderResourceBinding & b )

Definition at line 6592 of file qrhi.cpp.

◆ operator<<() [5/12]

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

Definition at line 6678 of file qrhi.cpp.

◆ operator<<() [6/12]

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

Definition at line 2302 of file qrhi.cpp.

◆ operator<<() [7/12]

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 11131 of file qrhi.cpp.

◆ operator<<() [8/12]

◆ operator<<() [9/12]

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

Definition at line 1914 of file qrhi.cpp.

◆ operator<<() [10/12]

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

Definition at line 1676 of file qrhi.cpp.

◆ operator<<() [11/12]

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

Definition at line 2157 of file qrhi.cpp.

◆ operator<<() [12/12]

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

Definition at line 1431 of file qrhi.cpp.

◆ qHash()

size_t qHash ( const QRhiShaderResourceBinding & b,
size_t seed )
noexcept

\qhashold{QRhiShaderResourceBinding}

Definition at line 6556 of file qrhi.cpp.

◆ resourceTypeStr()

const char * resourceTypeStr ( const QRhiResource * res)
static

Definition at line 8356 of file qrhi.cpp.

Variable Documentation

◆ counter