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

(36d293f30fee4fa84044f64a4c9f2ad25e85ee7c)

#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   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 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 301 of file qssgrhicontext_p.h.

◆ QSSG_MAX_NUM_LIGHTS

#define QSSG_MAX_NUM_LIGHTS   16

Definition at line 300 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS

#define QSSG_REDUCED_MAX_NUM_DIRECTIONAL_LIGHTS   1

Definition at line 303 of file qssgrhicontext_p.h.

◆ QSSG_REDUCED_MAX_NUM_LIGHTS

#define QSSG_REDUCED_MAX_NUM_LIGHTS   4

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

Typedef Documentation

◆ QSSGManagedRhiTexturePtr

◆ QSSGRhiBufferPtr

using QSSGRhiBufferPtr = std::shared_ptr<QSSGRhiBuffer>

Definition at line 262 of file qssgrhicontext_p.h.

◆ QSSGRhiInputAssemblerState

◆ QSSGRhiRenderableTextureV2Ptr

Definition at line 772 of file qssgrhicontext_p.h.

◆ QSSGRhiShaderPipelinePtr

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

Function Documentation

◆ operator!=() [1/7]

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

Definition at line 848 of file qssgrhicontext_p.h.

◆ operator!=() [2/7]

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

Definition at line 910 of file qssgrhicontext_p.h.

◆ operator!=() [3/7]

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

Definition at line 1144 of file qssgrhicontext_p.h.

◆ operator!=() [4/7]

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

Definition at line 878 of file qssgrhicontext_p.h.

◆ operator!=() [5/7]

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

Definition at line 163 of file qssgrhicontext_p.h.

◆ operator!=() [6/7]

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

Definition at line 271 of file qssgrhicontext_p.h.

◆ operator!=() [7/7]

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

Definition at line 654 of file qssgrhicontext_p.h.

◆ operator==() [1/7]

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

Definition at line 843 of file qssgrhicontext_p.h.

◆ operator==() [2/7]

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

Definition at line 903 of file qssgrhicontext_p.h.

◆ operator==() [3/7]

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

Definition at line 1138 of file qssgrhicontext_p.h.

◆ operator==() [4/7]

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

Definition at line 873 of file qssgrhicontext_p.h.

◆ operator==() [5/7]

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

Definition at line 120 of file qssgrhicontext_p.h.

◆ operator==() [6/7]

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

Definition at line 264 of file qssgrhicontext_p.h.

◆ operator==() [7/7]

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

Definition at line 641 of file qssgrhicontext_p.h.

◆ qHash() [1/6]

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

Definition at line 853 of file qssgrhicontext_p.h.

◆ qHash() [2/6]

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

Definition at line 915 of file qssgrhicontext_p.h.

◆ qHash() [3/6]

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

Definition at line 1149 of file qssgrhicontext_p.h.

◆ qHash() [4/6]

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

Definition at line 866 of file qssgrhicontext_p.h.

◆ qHash() [5/6]

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

Definition at line 168 of file qssgrhicontext_p.h.

◆ qHash() [6/6]

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

Definition at line 659 of file qssgrhicontext_p.h.