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
QSSGCustomMaterialSystem Class Reference

#include <qssgrhicustommaterialsystem_p.h>

Collaboration diagram for QSSGCustomMaterialSystem:

Public Member Functions

 QSSGCustomMaterialSystem ()
 ~QSSGCustomMaterialSystem ()
void setRenderContextInterface (QSSGRenderContextInterface *inContext)
void releaseCachedResources ()
bool prepareForRender (const QSSGRenderModel &inModel, const QSSGRenderSubset &inSubset, QSSGRenderCustomMaterial &inMaterial)
QSSGRhiShaderPipelinePtr shadersForCustomMaterial (QSSGRhiGraphicsPipelineState *ps, const QSSGRenderCustomMaterial &material, QSSGSubsetRenderable &renderable, const QSSGShaderDefaultMaterialKeyProperties &defaultMaterialShaderKeyProperties, const QSSGShaderFeatures &featureSet)
void updateUniformsForCustomMaterial (QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiContext *rhiCtx, const QSSGLayerRenderData &inData, char *ubufData, QSSGRhiGraphicsPipelineState *ps, const QSSGRenderCustomMaterial &material, QSSGSubsetRenderable &renderable, const QSSGRenderCameraList &cameras, const QVector2D *depthAdjust, const QMatrix4x4 *alteredModelViewProjection)
void rhiPrepareRenderable (QSSGRhiGraphicsPipelineState *ps, QSSGPassKey passKey, QSSGSubsetRenderable &renderable, const QSSGShaderFeatures &featureSet, const QSSGRenderCustomMaterial &material, const QSSGLayerRenderData &layerData, QRhiRenderPassDescriptor *renderPassDescriptor, int samples, int viewCount, QSSGRenderCamera *camera=nullptr, QSSGRenderTextureCubeFace cubeFace=QSSGRenderTextureCubeFaceNone, QMatrix4x4 *modelViewProjection=nullptr, QSSGReflectionMapEntry *entry=nullptr, bool oit=false)
void applyRhiShaderPropertyValues (char *ubufData, const QSSGRenderCustomMaterial &inMaterial, QSSGRhiShaderPipeline &shaderPipeline)
void rhiRenderRenderable (QSSGRhiContext *rhiCtx, QSSGSubsetRenderable &renderable, bool *needsSetViewport, QSSGRenderTextureCubeFace cubeFace, const QSSGRhiGraphicsPipelineState &state)

Detailed Description

Definition at line 42 of file qssgrhicustommaterialsystem_p.h.

Constructor & Destructor Documentation

◆ QSSGCustomMaterialSystem()

QT_BEGIN_NAMESPACE QSSGCustomMaterialSystem::QSSGCustomMaterialSystem ( )
default

◆ ~QSSGCustomMaterialSystem()

QSSGCustomMaterialSystem::~QSSGCustomMaterialSystem ( )

Definition at line 32 of file qssgrhicustommaterialsystem.cpp.

Member Function Documentation

◆ applyRhiShaderPropertyValues()

void QSSGCustomMaterialSystem::applyRhiShaderPropertyValues ( char * ubufData,
const QSSGRenderCustomMaterial & inMaterial,
QSSGRhiShaderPipeline & shaderPipeline )

Definition at line 634 of file qssgrhicustommaterialsystem.cpp.

◆ prepareForRender()

bool QSSGCustomMaterialSystem::prepareForRender ( const QSSGRenderModel & inModel,
const QSSGRenderSubset & inSubset,
QSSGRenderCustomMaterial & inMaterial )

Definition at line 36 of file qssgrhicustommaterialsystem.cpp.

◆ releaseCachedResources()

void QSSGCustomMaterialSystem::releaseCachedResources ( )

Definition at line 48 of file qssgrhicustommaterialsystem.cpp.

◆ rhiPrepareRenderable()

void QSSGCustomMaterialSystem::rhiPrepareRenderable ( QSSGRhiGraphicsPipelineState * ps,
QSSGPassKey passKey,
QSSGSubsetRenderable & renderable,
const QSSGShaderFeatures & featureSet,
const QSSGRenderCustomMaterial & material,
const QSSGLayerRenderData & layerData,
QRhiRenderPassDescriptor * renderPassDescriptor,
int samples,
int viewCount,
QSSGRenderCamera * camera = nullptr,
QSSGRenderTextureCubeFace cubeFace = QSSGRenderTextureCubeFaceNone,
QMatrix4x4 * modelViewProjection = nullptr,
QSSGReflectionMapEntry * entry = nullptr,
bool oit = false )

Definition at line 181 of file qssgrhicustommaterialsystem.cpp.

◆ rhiRenderRenderable()

void QSSGCustomMaterialSystem::rhiRenderRenderable ( QSSGRhiContext * rhiCtx,
QSSGSubsetRenderable & renderable,
bool * needsSetViewport,
QSSGRenderTextureCubeFace cubeFace,
const QSSGRhiGraphicsPipelineState & state )

Definition at line 647 of file qssgrhicustommaterialsystem.cpp.

◆ setRenderContextInterface()

void QSSGCustomMaterialSystem::setRenderContextInterface ( QSSGRenderContextInterface * inContext)

Definition at line 43 of file qssgrhicustommaterialsystem.cpp.

◆ shadersForCustomMaterial()

QSSGRhiShaderPipelinePtr QSSGCustomMaterialSystem::shadersForCustomMaterial ( QSSGRhiGraphicsPipelineState * ps,
const QSSGRenderCustomMaterial & material,
QSSGSubsetRenderable & renderable,
const QSSGShaderDefaultMaterialKeyProperties & defaultMaterialShaderKeyProperties,
const QSSGShaderFeatures & featureSet )

Definition at line 53 of file qssgrhicustommaterialsystem.cpp.

◆ updateUniformsForCustomMaterial()

void QSSGCustomMaterialSystem::updateUniformsForCustomMaterial ( QSSGRhiShaderPipeline & shaderPipeline,
QSSGRhiContext * rhiCtx,
const QSSGLayerRenderData & inData,
char * ubufData,
QSSGRhiGraphicsPipelineState * ps,
const QSSGRenderCustomMaterial & material,
QSSGSubsetRenderable & renderable,
const QSSGRenderCameraList & cameras,
const QVector2D * depthAdjust,
const QMatrix4x4 * alteredModelViewProjection )

Definition at line 127 of file qssgrhicustommaterialsystem.cpp.


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