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
qssgrhicontext_p.h File Reference

(411f84ca14da77f1d3c46dad44c3784d5a1ed1eb)

#include <QtGui/rhi/qrhi.h>
#include <QtQuick3DRuntimeRender/qtquick3druntimerenderexports.h>
#include <QtQuick3DUtils/private/qssgrenderbasetypes_p.h>
#include <QtQuick3DUtils/private/qssgutils_p.h>
#include <ssg/qssgrhicontext.h>
#include <QtQuick3DRuntimeRender/private/qssgrhiresourcehandle_p.h>
#include <QtCore/qhash.h>
#include <QtCore/qvarlengtharray.h>
#include <array>
Include dependency graph for qssgrhicontext_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QSSGRhiInputAssemblerStatePrivate
struct  QSSGRhiGraphicsPipelineStatePrivate
struct  QSSGRhiDrawCallDataKey
class  QSSGRhiBuffer
struct  QSSGRhiShaderUniform
struct  QSSGRhiShaderUniformArray
struct  QSSGRhiTexture
struct  QSSGShaderLightData
struct  QSSGShaderDirectionalLightData
struct  QSSGShaderLightsUniformData
struct  QSSGShaderDirectionalLightsUniformData
class  QSSGRhiShaderPipeline
struct  QSSGRhiShaderPipeline::CommonUniformIndices
struct  QSSGRhiShaderPipeline::CommonUniformIndices::ImageIndices
struct  QSSGRhiShaderPipeline::InstanceLocations
struct  QSSGRhiShaderPipeline::StorageResourceBinding
class  QSSGRhiShaderResourceBindingList
struct  QSSGRhiDrawCallData
class  QSSGManagedRhiTexture
class  QSSGRhiRenderableTextureV2
struct  QSSGRhiRenderableTexture
struct  QSSGRhiSortData
struct  QSSGRhiInstancePlacement
struct  QSSGRhiInstanceBufferData
struct  QSSGRhiInstanceBufferData::SubsetLodData
struct  QSSGRhiParticleData
class  QSSGComputePipelineStateKey
struct  QSSGRhiDummyTextureKey
class  QSSGGraphicsPipelineStateKey
class  QSSGRhiContextStats
struct  QSSGRhiContextStats::DrawInfo
struct  QSSGRhiContextStats::InstancedDrawInfo
struct  QSSGRhiContextStats::RenderPassInfo
struct  QSSGRhiContextStats::PerLayerInfo
struct  QSSGRhiContextStats::GlobalInfo
class  QSSGRhiContextPrivate

Namespaces

namespace  QSSGRhiHelpers

Macros

#define QSSG_MAX_NUM_LIGHTS   16
#define QSSG_MAX_NUM_DIRECTIONAL_LIGHTS   4
#define QSSG_REDUCED_MAX_NUM_LIGHTS   4
#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   1
#define QSSGRHICTX_STAT(ctx, f)

Typedefs

using QSSGRhiInputAssemblerState = QSSGRhiInputAssemblerStatePrivate::InputAssemblerState
using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>
using QSSGRhiShaderPipelinePtr = std::shared_ptr<QSSGRhiShaderPipeline>
using QSSGRhiRenderableTextureV2Ptr = std::shared_ptr<QSSGRhiRenderableTextureV2>

Enumerations

enum class  QSSGRhiSamplerBindingHints {
  LightProbe = 64 , ScreenTexture , DepthTexture , AoTexture ,
  LightmapTexture , DepthTextureArray , ScreenTextureArray , AoTextureArray ,
  NormalTexture , MotionVectorTexture , BindingMapSize
}

Functions

QRhiSampler::Filter QSSGRhiHelpers::toRhi (QSSGRenderTextureFilterOp op)
QRhiSampler::AddressMode QSSGRhiHelpers::toRhi (QSSGRenderTextureCoordOp tiling)
QRhiGraphicsPipeline::CullMode QSSGRhiHelpers::toCullMode (QSSGCullFaceMode cullFaceMode)
QRhiVertexInputAttribute::Format QSSGRhiHelpers::toVertexInputFormat (QSSGRenderComponentType compType, quint32 numComps)
QRhiGraphicsPipeline::Topology QSSGRhiHelpers::toTopology (QSSGRenderDrawMode drawMode)
void QSSGRhiHelpers::bakeVertexInputLocations (QSSGRhiInputAssemblerState *ia, const QSSGRhiShaderPipeline &shadersshaders, int instanceBufferBinding)
QShaderDescription::VariableType QSSGRhiHelpers::samplerType (const QSSGRhiShaderPipeline &shadersshaders, const QByteArray &namename)
QRhiTexture * QSSGRhiHelpers::dummyTextureForSampler (QSSGRhiContext *rhiCtx, QShaderDescription::VariableType samplerType, QRhiResourceUpdateBatch *rub, int arraySize, const QSize &sizesize, const QColor &fillColor)
bool operator== (const QSSGRhiGraphicsPipelineState &aa, const QSSGRhiGraphicsPipelineState &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGRhiGraphicsPipelineState &aa, const QSSGRhiGraphicsPipelineState &bb) Q_DECL_NOTHROW
size_t qHash (const QSSGRhiGraphicsPipelineState &ss, size_t seed) Q_DECL_NOTHROW
bool operator== (const QSSGRhiSamplerDescription &aa, const QSSGRhiSamplerDescription &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGRhiSamplerDescription &aa, const QSSGRhiSamplerDescription &bb) Q_DECL_NOTHROW
bool operator== (const QSSGRhiShaderResourceBindingList &aa, const QSSGRhiShaderResourceBindingList &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGRhiShaderResourceBindingList &aa, const QSSGRhiShaderResourceBindingList &bb) Q_DECL_NOTHROW
size_t qHash (const QSSGRhiShaderResourceBindingList &bl, size_t seed) Q_DECL_NOTHROW
bool operator== (const QSSGComputePipelineStateKey &aa, const QSSGComputePipelineStateKey &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGComputePipelineStateKey &aa, const QSSGComputePipelineStateKey &bb) Q_DECL_NOTHROW
size_t qHash (const QSSGComputePipelineStateKey &k, size_t seed=0) Q_DECL_NOTHROW
size_t qHash (const QSSGRhiDummyTextureKey &k, size_t seed) Q_DECL_NOTHROW
bool operator== (const QSSGRhiDummyTextureKey &aa, const QSSGRhiDummyTextureKey &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGRhiDummyTextureKey &aa, const QSSGRhiDummyTextureKey &bb) Q_DECL_NOTHROW
bool operator== (const QSSGGraphicsPipelineStateKey &aa, const QSSGGraphicsPipelineStateKey &bb) Q_DECL_NOTHROW
bool operator!= (const QSSGGraphicsPipelineStateKey &aa, const QSSGGraphicsPipelineStateKey &bb) Q_DECL_NOTHROW
size_t qHash (const QSSGGraphicsPipelineStateKey &k, size_t seed) Q_DECL_NOTHROW
bool operator== (const QSSGRhiDrawCallDataKey &aa, const QSSGRhiDrawCallDataKey &bb) noexcept
bool operator!= (const QSSGRhiDrawCallDataKey &aa, const QSSGRhiDrawCallDataKey &bb) noexcept
size_t qHash (const QSSGRhiDrawCallDataKey &k, size_t seed=0) noexcept

Macro Definition Documentation

◆ QSSG_MAX_NUM_DIRECTIONAL_LIGHTS

#define QSSG_MAX_NUM_DIRECTIONAL_LIGHTS   4

Definition at line 314 of file qssgrhicontext_p.h.

◆ QSSG_MAX_NUM_LIGHTS

#define QSSG_MAX_NUM_LIGHTS   16

Definition at line 313 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS

#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   1

Definition at line 316 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_LIGHTS

#define QSSG_REDUCED_MAX_NUM_LIGHTS   4

Definition at line 315 of file qssgrhicontext_p.h.

◆ QSSGRHICTX_STAT

#define QSSGRHICTX_STAT ( ctx,
f )
Value:
for (bool qssgrhictxlog_enabled = QSSGRhiContextStats::get(*ctx).isEnabled(); qssgrhictxlog_enabled; qssgrhictxlog_enabled = false) \
QSSGRhiContextStats::get(*ctx).f
static QSSGRhiContextStats & get(QSSGRhiContext &rhiCtx)

Definition at line 1057 of file qssgrhicontext_p.h.

Typedef Documentation

◆ QSSGRhiBufferPtr

using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>

Definition at line 275 of file qssgrhicontext_p.h.

◆ QSSGRhiInputAssemblerState

◆ QSSGRhiRenderableTextureV2Ptr

Definition at line 829 of file qssgrhicontext_p.h.

◆ QSSGRhiShaderPipelinePtr

Definition at line 653 of file qssgrhicontext_p.h.

Enumeration Type Documentation

◆ QSSGRhiSamplerBindingHints

enum class QSSGRhiSamplerBindingHints
strong
Enumerator
LightProbe 
ScreenTexture 
DepthTexture 
AoTexture 
LightmapTexture 
DepthTextureArray 
ScreenTextureArray 
AoTextureArray 
NormalTexture 
MotionVectorTexture 
BindingMapSize 

Definition at line 296 of file qssgrhicontext_p.h.

Function Documentation

◆ operator!=() [1/7]

bool operator!= ( const QSSGComputePipelineStateKey & a,
const QSSGComputePipelineStateKey & b )
inline

Definition at line 983 of file qssgrhicontext_p.h.

◆ operator!=() [2/7]

bool operator!= ( const QSSGGraphicsPipelineStateKey & a,
const QSSGGraphicsPipelineStateKey & b )
inline

Definition at line 1045 of file qssgrhicontext_p.h.

◆ operator!=() [3/7]

bool operator!= ( const QSSGRhiDrawCallDataKey & a,
const QSSGRhiDrawCallDataKey & b )
inlinenoexcept

Definition at line 1320 of file qssgrhicontext_p.h.

◆ operator!=() [4/7]

bool operator!= ( const QSSGRhiDummyTextureKey & a,
const QSSGRhiDummyTextureKey & b )
inline

Definition at line 1013 of file qssgrhicontext_p.h.

◆ operator!=() [5/7]

bool operator!= ( const QSSGRhiGraphicsPipelineState & a,
const QSSGRhiGraphicsPipelineState & b )
inline

Definition at line 176 of file qssgrhicontext_p.h.

◆ operator!=() [6/7]

bool operator!= ( const QSSGRhiSamplerDescription & a,
const QSSGRhiSamplerDescription & b )
inline

Definition at line 284 of file qssgrhicontext_p.h.

◆ operator!=() [7/7]

bool operator!= ( const QSSGRhiShaderResourceBindingList & a,
const QSSGRhiShaderResourceBindingList & b )
inline

Definition at line 716 of file qssgrhicontext_p.h.

◆ operator==() [1/7]

bool operator== ( const QSSGComputePipelineStateKey & a,
const QSSGComputePipelineStateKey & b )
inline

Definition at line 978 of file qssgrhicontext_p.h.

◆ operator==() [2/7]

bool operator== ( const QSSGGraphicsPipelineStateKey & a,
const QSSGGraphicsPipelineStateKey & b )
inline

Definition at line 1038 of file qssgrhicontext_p.h.

◆ operator==() [3/7]

bool operator== ( const QSSGRhiDrawCallDataKey & a,
const QSSGRhiDrawCallDataKey & b )
inlinenoexcept

Definition at line 1314 of file qssgrhicontext_p.h.

◆ operator==() [4/7]

bool operator== ( const QSSGRhiDummyTextureKey & a,
const QSSGRhiDummyTextureKey & b )
inline

Definition at line 1008 of file qssgrhicontext_p.h.

◆ operator==() [5/7]

bool operator== ( const QSSGRhiGraphicsPipelineState & a,
const QSSGRhiGraphicsPipelineState & b )
inline

Definition at line 133 of file qssgrhicontext_p.h.

◆ operator==() [6/7]

bool operator== ( const QSSGRhiSamplerDescription & a,
const QSSGRhiSamplerDescription & b )
inline

Definition at line 277 of file qssgrhicontext_p.h.

◆ operator==() [7/7]

bool operator== ( const QSSGRhiShaderResourceBindingList & a,
const QSSGRhiShaderResourceBindingList & b )
inline

Definition at line 703 of file qssgrhicontext_p.h.

◆ qHash() [1/6]

size_t qHash ( const QSSGComputePipelineStateKey & k,
size_t seed = 0 )
inline

Definition at line 988 of file qssgrhicontext_p.h.

◆ qHash() [2/6]

size_t qHash ( const QSSGGraphicsPipelineStateKey & k,
size_t seed )
inline

Definition at line 1050 of file qssgrhicontext_p.h.

◆ qHash() [3/6]

size_t qHash ( const QSSGRhiDrawCallDataKey & k,
size_t seed = 0 )
inlinenoexcept

Definition at line 1325 of file qssgrhicontext_p.h.

◆ qHash() [4/6]

size_t qHash ( const QSSGRhiDummyTextureKey & k,
size_t seed )
inline

Definition at line 1001 of file qssgrhicontext_p.h.

◆ qHash() [5/6]

size_t qHash ( const QSSGRhiGraphicsPipelineState & s,
size_t seed )
inline

Definition at line 181 of file qssgrhicontext_p.h.

◆ qHash() [6/6]

size_t qHash ( const QSSGRhiShaderResourceBindingList & bl,
size_t seed )
inline

Definition at line 721 of file qssgrhicontext_p.h.