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

(b027d2e8e3e8c21121d731c69ee6f399405cb0b6)

#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 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
class  QSSGManagedRhiTexture
class  QSSGRhiRenderableTextureV2
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>
using QSSGManagedRhiTexturePtr = QSSGManagedRhiTexture::Ptr
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 &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 291 of file qssgrhicontext_p.h.

◆ QSSG_MAX_NUM_LIGHTS

#define QSSG_MAX_NUM_LIGHTS   16

Definition at line 290 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS

#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   2

Definition at line 293 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_LIGHTS

#define QSSG_REDUCED_MAX_NUM_LIGHTS   8

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

Typedef Documentation

◆ QSSGManagedRhiTexturePtr

◆ QSSGRhiBufferPtr

using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>

Definition at line 252 of file qssgrhicontext_p.h.

◆ QSSGRhiInputAssemblerState

◆ QSSGRhiRenderableTextureV2Ptr

Definition at line 762 of file qssgrhicontext_p.h.

◆ QSSGRhiShaderPipelinePtr

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

Function Documentation

◆ operator!=() [1/7]

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

Definition at line 838 of file qssgrhicontext_p.h.

◆ operator!=() [2/7]

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

Definition at line 900 of file qssgrhicontext_p.h.

◆ operator!=() [3/7]

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

Definition at line 1130 of file qssgrhicontext_p.h.

◆ operator!=() [4/7]

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

Definition at line 868 of file qssgrhicontext_p.h.

◆ operator!=() [5/7]

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

Definition at line 160 of file qssgrhicontext_p.h.

◆ operator!=() [6/7]

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

Definition at line 261 of file qssgrhicontext_p.h.

◆ operator!=() [7/7]

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

Definition at line 644 of file qssgrhicontext_p.h.

◆ operator==() [1/7]

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

Definition at line 833 of file qssgrhicontext_p.h.

◆ operator==() [2/7]

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

Definition at line 893 of file qssgrhicontext_p.h.

◆ operator==() [3/7]

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

Definition at line 1125 of file qssgrhicontext_p.h.

◆ operator==() [4/7]

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

Definition at line 863 of file qssgrhicontext_p.h.

◆ operator==() [5/7]

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

Definition at line 119 of file qssgrhicontext_p.h.

◆ operator==() [6/7]

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

Definition at line 254 of file qssgrhicontext_p.h.

◆ operator==() [7/7]

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

Definition at line 631 of file qssgrhicontext_p.h.

◆ qHash() [1/6]

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

Definition at line 843 of file qssgrhicontext_p.h.

◆ qHash() [2/6]

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

Definition at line 905 of file qssgrhicontext_p.h.

◆ qHash() [3/6]

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

Definition at line 1135 of file qssgrhicontext_p.h.

◆ qHash() [4/6]

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

Definition at line 856 of file qssgrhicontext_p.h.

◆ qHash() [5/6]

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

Definition at line 165 of file qssgrhicontext_p.h.

◆ qHash() [6/6]

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

Definition at line 649 of file qssgrhicontext_p.h.