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

(a22a94a3363ce1907fb39c4bd1990b8542da7f61)

#include <QtGui/rhi/qrhi.h>
#include <QtQuick3DRuntimeRender/qtquick3druntimerenderexports.h>
#include <QtQuick3DUtils/private/qssgrenderbasetypes_p.h>
#include <ssg/qssgrhicontext.h>
+ 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  QSSGShaderLightsUniformData
 
struct  QSSGRhiShadowMapProperties
 
class  QSSGRhiShaderPipeline
 
struct  QSSGRhiShaderPipeline::CommonUniformIndices
 
struct  QSSGRhiShaderPipeline::CommonUniformIndices::ImageIndices
 
struct  QSSGRhiShaderPipeline::InstanceLocations
 
class  QSSGRhiShaderResourceBindingList
 
struct  QSSGRhiDrawCallData
 
struct  QSSGRhiRenderableTexture
 
struct  QSSGRhiSortData
 
struct  QSSGRhiInstanceBufferData
 
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   15
 
#define QSSG_REDUCED_MAX_NUM_LIGHTS   5
 
#define QSSG_MAX_NUM_SHADOW_MAPS   8
 
#define QSSGRHICTX_STAT(ctx, f)
 

Typedefs

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

Enumerations

enum class  QSSGRhiSamplerBindingHints {
  LightProbe = 64 , ScreenTexture , DepthTexture , AoTexture ,
  LightmapTexture , DepthTextureArray , ScreenTextureArray , AoTextureArray ,
  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 &shaders, int instanceBufferBinding)
 
bool operator== (const QSSGRhiGraphicsPipelineState &a, const QSSGRhiGraphicsPipelineState &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGRhiGraphicsPipelineState &a, const QSSGRhiGraphicsPipelineState &b) Q_DECL_NOTHROW
 
size_t qHash (const QSSGRhiGraphicsPipelineState &s, size_t seed) Q_DECL_NOTHROW
 
bool operator== (const QSSGRhiSamplerDescription &a, const QSSGRhiSamplerDescription &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGRhiSamplerDescription &a, const QSSGRhiSamplerDescription &b) Q_DECL_NOTHROW
 
bool operator== (const QSSGRhiShaderResourceBindingList &a, const QSSGRhiShaderResourceBindingList &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGRhiShaderResourceBindingList &a, const QSSGRhiShaderResourceBindingList &b) Q_DECL_NOTHROW
 
size_t qHash (const QSSGRhiShaderResourceBindingList &bl, size_t seed) Q_DECL_NOTHROW
 
bool operator== (const QSSGComputePipelineStateKey &a, const QSSGComputePipelineStateKey &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGComputePipelineStateKey &a, const QSSGComputePipelineStateKey &b) 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 &a, const QSSGRhiDummyTextureKey &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGRhiDummyTextureKey &a, const QSSGRhiDummyTextureKey &b) Q_DECL_NOTHROW
 
bool operator== (const QSSGGraphicsPipelineStateKey &a, const QSSGGraphicsPipelineStateKey &b) Q_DECL_NOTHROW
 
bool operator!= (const QSSGGraphicsPipelineStateKey &a, const QSSGGraphicsPipelineStateKey &b) Q_DECL_NOTHROW
 
size_t qHash (const QSSGGraphicsPipelineStateKey &k, size_t seed) Q_DECL_NOTHROW
 
bool operator== (const QSSGRhiDrawCallDataKey &a, const QSSGRhiDrawCallDataKey &b) noexcept
 
bool operator!= (const QSSGRhiDrawCallDataKey &a, const QSSGRhiDrawCallDataKey &b) noexcept
 
size_t qHash (const QSSGRhiDrawCallDataKey &k, size_t seed=0) noexcept
 

Macro Definition Documentation

◆ QSSG_MAX_NUM_LIGHTS

◆ QSSG_MAX_NUM_SHADOW_MAPS

◆ QSSG_REDUCED_MAX_NUM_LIGHTS

#define QSSG_REDUCED_MAX_NUM_LIGHTS   5

◆ QSSGRHICTX_STAT

Typedef Documentation

◆ QSSGRhiBufferPtr

using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>

Definition at line 237 of file qssgrhicontext_p.h.

◆ QSSGRhiInputAssemblerState

◆ QSSGRhiShaderPipelinePtr

Definition at line 505 of file qssgrhicontext_p.h.

Enumeration Type Documentation

◆ QSSGRhiSamplerBindingHints

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

Definition at line 258 of file qssgrhicontext_p.h.

Function Documentation

◆ operator!=() [1/7]

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

Definition at line 659 of file qssgrhicontext_p.h.

◆ operator!=() [2/7]

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

Definition at line 721 of file qssgrhicontext_p.h.

◆ operator!=() [3/7]

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

Definition at line 949 of file qssgrhicontext_p.h.

◆ operator!=() [4/7]

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

Definition at line 689 of file qssgrhicontext_p.h.

◆ operator!=() [5/7]

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

Definition at line 145 of file qssgrhicontext_p.h.

◆ operator!=() [6/7]

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

Definition at line 246 of file qssgrhicontext_p.h.

◆ operator!=() [7/7]

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

Definition at line 556 of file qssgrhicontext_p.h.

◆ operator==() [1/7]

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

Definition at line 654 of file qssgrhicontext_p.h.

◆ operator==() [2/7]

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

Definition at line 714 of file qssgrhicontext_p.h.

◆ operator==() [3/7]

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

Definition at line 944 of file qssgrhicontext_p.h.

◆ operator==() [4/7]

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

Definition at line 684 of file qssgrhicontext_p.h.

◆ operator==() [5/7]

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

Definition at line 114 of file qssgrhicontext_p.h.

References QSSGRhiInputAssemblerStatePrivate::get(), and QSSGRhiGraphicsPipelineStatePrivate::getShaderPipeline().

+ Here is the call graph for this function:

◆ operator==() [6/7]

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

Definition at line 239 of file qssgrhicontext_p.h.

◆ operator==() [7/7]

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

Definition at line 543 of file qssgrhicontext_p.h.

References i.

◆ qHash() [1/6]

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

Definition at line 664 of file qssgrhicontext_p.h.

References QSSGComputePipelineStateKey::extra, qHash(), seed, and QSSGComputePipelineStateKey::shader.

+ Here is the call graph for this function:

◆ qHash() [2/6]

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

Definition at line 726 of file qssgrhicontext_p.h.

References qHash(), and seed.

+ Here is the call graph for this function:

◆ qHash() [3/6]

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

Definition at line 954 of file qssgrhicontext_p.h.

References QSSGRhiDrawCallDataKey::cid, QSSGRhiDrawCallDataKey::entry, QSSGRhiDrawCallDataKey::entryIdx, QSSGRhiDrawCallDataKey::model, qHash(), and seed.

+ Here is the call graph for this function:

◆ qHash() [4/6]

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

Definition at line 677 of file qssgrhicontext_p.h.

References qHash(), and seed.

+ Here is the call graph for this function:

◆ qHash() [5/6]

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

Definition at line 150 of file qssgrhicontext_p.h.

References QSSGRhiGraphicsPipelineStatePrivate::getShaderPipeline(), qHash(), qHashBits(), and seed.

Referenced by QSSGComputePipelineStateKey::create(), QSSGGraphicsPipelineStateKey::create(), qHash(), qHash(), qHash(), qHash(), and qHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qHash() [6/6]

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

Definition at line 561 of file qssgrhicontext_p.h.

References seed.