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

(9036bfe98f5d9c1f915347feaf7d9d1a10f04fd8)

#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  QSSGShaderDirectionalLightData
struct  QSSGShaderLightsUniformData
struct  QSSGShaderDirectionalLightsUniformData
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   16
#define QSSG_MAX_NUM_DIRECTIONAL_LIGHTS   4
#define QSSG_REDUCED_MAX_NUM_LIGHTS   8
#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   2
#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 ,
  NormalTexture , 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_DIRECTIONAL_LIGHTS

#define QSSG_MAX_NUM_DIRECTIONAL_LIGHTS   4

Definition at line 285 of file qssgrhicontext_p.h.

◆ QSSG_MAX_NUM_LIGHTS

#define QSSG_MAX_NUM_LIGHTS   16

Definition at line 284 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS

#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   2

Definition at line 287 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_LIGHTS

#define QSSG_REDUCED_MAX_NUM_LIGHTS   8

Definition at line 286 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 783 of file qssgrhicontext_p.h.

Typedef Documentation

◆ QSSGRhiBufferPtr

using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>

Definition at line 247 of file qssgrhicontext_p.h.

◆ QSSGRhiInputAssemblerState

◆ QSSGRhiShaderPipelinePtr

Definition at line 555 of file qssgrhicontext_p.h.

Enumeration Type Documentation

◆ QSSGRhiSamplerBindingHints

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

Definition at line 268 of file qssgrhicontext_p.h.

Function Documentation

◆ operator!=() [1/7]

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

Definition at line 709 of file qssgrhicontext_p.h.

◆ operator!=() [2/7]

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

Definition at line 771 of file qssgrhicontext_p.h.

◆ operator!=() [3/7]

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

Definition at line 1001 of file qssgrhicontext_p.h.

◆ operator!=() [4/7]

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

Definition at line 739 of file qssgrhicontext_p.h.

◆ operator!=() [5/7]

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

Definition at line 155 of file qssgrhicontext_p.h.

◆ operator!=() [6/7]

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

Definition at line 256 of file qssgrhicontext_p.h.

◆ operator!=() [7/7]

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

Definition at line 606 of file qssgrhicontext_p.h.

◆ operator==() [1/7]

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

Definition at line 704 of file qssgrhicontext_p.h.

◆ operator==() [2/7]

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

Definition at line 764 of file qssgrhicontext_p.h.

◆ operator==() [3/7]

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

Definition at line 996 of file qssgrhicontext_p.h.

◆ operator==() [4/7]

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

Definition at line 734 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.

◆ operator==() [6/7]

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

Definition at line 249 of file qssgrhicontext_p.h.

◆ operator==() [7/7]

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

Definition at line 593 of file qssgrhicontext_p.h.

◆ qHash() [1/6]

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

Definition at line 714 of file qssgrhicontext_p.h.

◆ qHash() [2/6]

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

Definition at line 776 of file qssgrhicontext_p.h.

◆ qHash() [3/6]

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

Definition at line 1006 of file qssgrhicontext_p.h.

◆ qHash() [4/6]

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

Definition at line 727 of file qssgrhicontext_p.h.

◆ qHash() [5/6]

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

Definition at line 160 of file qssgrhicontext_p.h.

◆ qHash() [6/6]

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

Definition at line 611 of file qssgrhicontext_p.h.