Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGSubsetRenderable Struct Reference

#include <qssgrenderableobjects_p.h>

+ Inheritance diagram for QSSGSubsetRenderable:
+ Collaboration diagram for QSSGSubsetRenderable:

Public Member Functions

 QSSGSubsetRenderable (Type type, QSSGRenderableObjectFlags inFlags, const QVector3D &inWorldCenterPt, QSSGRenderer *rendr, const QSSGRenderSubset &inSubset, const QSSGModelContext &inModelContext, float inOpacity, quint32 inSubsetLevelOfDetail, const QSSGRenderGraphObject &mat, QSSGRenderableImage *inFirstImage, QSSGShaderDefaultMaterialKey inShaderKey, const QSSGShaderLightListView &inLights)
 
const QSSGRenderDefaultMaterialdefaultMaterial () const
 
const QSSGRenderCustomMaterialcustomMaterial () const
 
bool prepareInstancing (QSSGRhiContext *rhiCtx, const QVector3D &cameraDirection, const QVector3D &cameraPosition, float minThreshold, float maxThreshold)
 
- Public Member Functions inherited from QSSGRenderableObject
 QSSGRenderableObject (Type ty, QSSGRenderableObjectFlags inFlags, const QVector3D &inWorldCenterPt, const QMatrix4x4 &inGlobalTransform, const QSSGBounds3 &inBounds, float inDepthBias, float inMinThreshold=-1, float inMaxThreshold=-1)
 

Public Attributes

int reflectionProbeIndex = -1
 
float distanceFromReflectionProbe
 
quint32 subsetLevelOfDetail = 0
 
QSSGShaderReflectionProbe reflectionProbe
 
QSSGRendererrenderer = nullptr
 
const QSSGModelContextmodelContext
 
const QSSGRenderSubsetsubset
 
QRhiBufferinstanceBuffer = nullptr
 
float opacity
 
const QSSGRenderGraphObjectmaterial
 
QSSGRenderableImagefirstImage
 
QSSGShaderDefaultMaterialKey shaderDescription
 
const QSSGShaderLightListViewlights
 
struct { 
 
   struct { 
 
      QRhiGraphicsPipeline *   pipeline = nullptr 
 
      QRhiShaderResourceBindings *   srb = nullptr 
 
   }   mainPass 
 
   struct { 
 
      QRhiGraphicsPipeline *   pipeline = nullptr 
 
      QRhiShaderResourceBindings *   srb = nullptr 
 
   }   depthPrePass 
 
   struct { 
 
      QRhiGraphicsPipeline *   pipeline = nullptr 
 
      QRhiShaderResourceBindings *   srb [6] = {} 
 
   }   shadowPass 
 
   struct { 
 
      QRhiGraphicsPipeline *   pipeline = nullptr 
 
      QRhiShaderResourceBindings *   srb [6] = {} 
 
   }   reflectionPass 
 
rhiRenderData 
 
- Public Attributes inherited from QSSGRenderableObject
const QMatrix4x4globalTransform
 
const QSSGBounds3bounds
 
QSSGBounds3 globalBounds
 
QSSGRenderableObjectFlags renderableFlags
 
QVector3D worldCenterPoint
 
float depthBiasSq
 
float camdistSq = 0.0f
 
QSSGDepthDrawMode depthWriteMode = QSSGDepthDrawMode::OpaqueOnly
 
const Type type
 
float instancingLodMin = -1
 
float instancingLodMax = -1
 

Additional Inherited Members

- Public Types inherited from QSSGRenderableObject
enum class  Type : quint8 { DefaultMaterialMeshSubset , CustomMaterialMeshSubset , Particles }
 

Detailed Description

Definition at line 297 of file qssgrenderableobjects_p.h.

Constructor & Destructor Documentation

◆ QSSGSubsetRenderable()

QSSGSubsetRenderable::QSSGSubsetRenderable ( Type  type,
QSSGRenderableObjectFlags  inFlags,
const QVector3D inWorldCenterPt,
QSSGRenderer rendr,
const QSSGRenderSubset inSubset,
const QSSGModelContext inModelContext,
float  inOpacity,
quint32  inSubsetLevelOfDetail,
const QSSGRenderGraphObject mat,
QSSGRenderableImage inFirstImage,
QSSGShaderDefaultMaterialKey  inShaderKey,
const QSSGShaderLightListView inLights 
)

Definition at line 16 of file qssgrenderableobjects.cpp.

References QSSGParticleBuffer::bounds(), QSSGRenderableObject::depthWriteMode, QSSGRenderableObject::globalBounds, QSSGRenderableObject::globalTransform, QSSGModelContext::model, QSSGRenderModel::particleBuffer, QSSGParticleBuffer::particleCount(), QSSGBounds3::transform(), and QSSGRenderGraphObject::type.

+ Here is the call graph for this function:

Member Function Documentation

◆ customMaterial()

const QSSGRenderCustomMaterial & QSSGSubsetRenderable::customMaterial ( ) const
inline

Definition at line 353 of file qssgrenderableobjects_p.h.

References Q_ASSERT, and QSSGRenderGraphObject::type.

Referenced by RenderHelpers::rhiPrepareDepthPass(), RenderHelpers::rhiPrepareRenderable(), and rhiPrepareResourcesForShadowMap().

+ Here is the caller graph for this function:

◆ defaultMaterial()

const QSSGRenderDefaultMaterial & QSSGSubsetRenderable::defaultMaterial ( ) const
inline

Definition at line 348 of file qssgrenderableobjects_p.h.

References QSSGRenderGraphObject::isMaterial(), Q_ASSERT, and QSSGRenderGraphObject::type.

Referenced by QSSGRenderer::generateRhiShaderPipelineImpl(), RenderHelpers::rhiPrepareDepthPass(), RenderHelpers::rhiPrepareRenderable(), and rhiPrepareResourcesForShadowMap().

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

◆ prepareInstancing()

bool QSSGSubsetRenderable::prepareInstancing ( QSSGRhiContext rhiCtx,
const QVector3D cameraDirection,
const QVector3D cameraPosition,
float  minThreshold,
float  maxThreshold 
)

Member Data Documentation

◆ [struct]

struct { ... } QSSGSubsetRenderable::depthPrePass

◆ distanceFromReflectionProbe

float QSSGSubsetRenderable::distanceFromReflectionProbe

◆ firstImage

◆ instanceBuffer

◆ lights

◆ [struct]

◆ material

◆ modelContext

◆ opacity

float QSSGSubsetRenderable::opacity

◆ pipeline

◆ [struct]

◆ reflectionProbe

◆ reflectionProbeIndex

◆ renderer

◆ [struct]

◆ shaderDescription

◆ [struct]

struct { ... } QSSGSubsetRenderable::shadowPass

◆ srb

◆ subset

◆ subsetLevelOfDetail

quint32 QSSGSubsetRenderable::subsetLevelOfDetail = 0

Definition at line 301 of file qssgrenderableobjects_p.h.

Referenced by RenderHelpers::rhiRenderRenderable().


The documentation for this struct was generated from the following files: