5#ifndef QSSGRENDERSHADERTOKENIZER_P_H
6#define QSSGRENDERSHADERTOKENIZER_P_H
19#include "qtquick3druntimerenderexports.h"
21#include <QtCore/qbytearray.h>
53 void initialize(
const char *input);
56 const char *stream =
nullptr;
57 const char *pos =
nullptr;
58 const char *identifier =
nullptr;
QSSGAddShaderDefine(const QByteArray &name, int value=0)
void addDebug(QDebug &stream) const
void setFormat(QSSGRenderTextureFormat format)
QSSGAllocateTexture(QSSGRenderTextureFormat inFormat)
const QSSGManagedRhiTexture & texture() const
void addDebug(QDebug &stream) const
QSSGRenderTextureFormat format() const
void setTexture(const QSSGManagedRhiTexture &tex)
void addDebug(QDebug &stream) const
QSSGColorAttachment(const QByteArray &name)
QSSGAllocateTexturePtr m_textureCmd
QSSGRenderTextureFormat format() const
QSSGColorAttachment(const QByteArray &name, CommandType type)
void addDebug(QDebug &stream) const
QSSGDepthStencilAttachment()
QRhiTexture::Format m_format
void addDebug(QDebug &stream) const
QSSGDepthTextureAttachment(const QByteArray &name)
void addDebug(QDebug &stream) const
QSSGDispatch(QSSGRenderShaderValue::ivec3 groupCount)
QSSGRenderShaderValue::ivec3 m_groupCount
std::optional< bool > m_usesScissor
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend2
std::optional< QRhiGraphicsPipeline::CompareOp > m_depthFunction
std::optional< QRhiGraphicsPipeline::PolygonMode > m_polygonMode
std::optional< QRhiViewport > m_viewport
std::optional< bool > m_usesStencilReference
std::optional< quint32 > m_stencilReference
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend1
std::optional< QRhiGraphicsPipeline::StencilOpState > m_stencilOpFrontState
std::optional< bool > m_depthWriteEnabled
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend5
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend7
std::optional< QRhiGraphicsPipeline::CullMode > m_cullMode
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend4
QSSGPipelineStateOverrideCommand()
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend0
std::optional< QRhiScissor > m_scissor
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend6
std::optional< bool > m_depthTestEnabled
std::optional< QRhiGraphicsPipeline::TargetBlend > m_targetBlend3
void addDebug(QDebug &stream) const
std::optional< bool > m_blendEnabled
std::optional< quint32 > m_stencilWriteMask
QSSGRhiShaderPipelinePtr compileGeneratedRhiShader(const QByteArray &inMaterialInfoString, const QSSGShaderFeatures &inFeatureSet, QSSGShaderLibraryManager &shaderLibraryManager, QSSGShaderCache &theCache, QSSGRhiShaderPipeline::StageFlags stageFlags, const QSSGUserShaderAugmentation &shaderAugmentation, int viewCount, bool perTargetCompilation, const QByteArray &inCacheKey={})
void registerShaderMetaDataFromSource(QSSGShaderResourceMergeContext *mergeContext, const QByteArray &contents, QSSGShaderGeneratorStage stage)
static constexpr QSSGShaderGeneratorStageFlags defaultFlags()
QSSGShaderGeneratorStageFlags m_enabledStages
QSSGComputeShaderGenerator m_cs
QSSGVertexShaderGenerator m_vs
QSSGStageGeneratorBase * getStage(QSSGShaderGeneratorStage inStage)
QSSGStageGeneratorBase & internalGetStage(QSSGShaderGeneratorStage inStage)
QSSGShaderGeneratorStageFlags getEnabledStages() const
void beginProgram(QSSGShaderGeneratorStageFlags inEnabledStages=defaultFlags())
QSSGFragmentShaderGenerator m_fs
friend class QSSGLayerRenderData
friend class QSSGRenderer
void addDebug(QDebug &stream) const
RenderableTypeT renderableTypes
QSSGRenderablesFilterCommand()
static constexpr RenderableTypeT AllRenderableTypes
friend class QSSGRenderContextInterface
void addDebug(QDebug &stream) const
void setSubPass(QSSGResourceId userPassId)
QSSGResourceId m_userPassId
Combined button and popup list for selecting options.
static QSet< QByteArray > shaderIdentifiers(const QByteArray &shaderCode)
void prepareComputePass(QSSGRenderer &renderer, QSSGLayerRenderData &data, QSSGRenderComputePass *passNode, ComputeUserPassData &userData, QSSGPassKey key)
static const QByteArrayList rhiProperties
static const QByteArrayList cameraUniforms
static const QByteArrayList lightUniforms
static QT_BEGIN_NAMESPACE constexpr int s_maxDirectionalLights
static const QByteArrayList positionalShadows
static constexpr int s_maxPositionalLights
static QSSGRhiShaderPipelinePtr generateRhiShaderPipeline(const QByteArray &inKey, QSSGRenderContextInterface *cif, const QSSGRenderComputePass *pass, const QSSGComputeLightContext &lightContext, const bool multiview, int viewCount)
static const QByteArrayList screenTextures
bool finalizeComputeShader(QSSGUserComputeShader &computeShader)
static bool containsAny(const QSet< QByteArray > &identifiers, const QByteArrayList &list)
static quint32 softShadowQualityToInt(QSSGRenderLight::SoftShadowQuality quality)
void prepareComputePass(QSSGRenderer &renderer, QSSGLayerRenderData &data, QSSGRenderComputePass *passNode, ComputeUserPassData &passData, QSSGPassKey key)
QSSGShaderDefineList m_shaderDefines
QSSGRhiShaderPipelinePtr m_computePipeline
QRhiShaderResourceBindings * m_computeBindings
QSSGRenderShaderValue::ivec3 m_groupCount
QSSGAllocateBufferFlags(quint32 inValues)
void setSceneLifetime(bool inValue)
bool isSceneLifetime() const
QSSGAllocateBufferFlags()
QSSGRenderTextureFormat m_format
QSSGAllocateBuffer(const QByteArray &inName, QSSGRenderTextureFormat inFormat, QSSGRenderTextureFilterOp inFilterOp, QSSGRenderTextureCoordOp inCoordOp, float inMultiplier, QSSGAllocateBufferFlags inFlags)
void addDebug(QDebug &stream) const
QSSGRenderTextureFilterOp m_filterOp
QSSGRenderTextureCoordOp m_texCoordOp
QSSGAllocateBufferFlags m_bufferFlags
QSSGAllocateBuffer(const QSSGAllocateBuffer &command)
void addDebug(QDebug &stream) const
QSSGApplyBufferValue(const QByteArray &bufferName, const QByteArray &shaderSampler)
QSSGApplyBufferValue(const QSSGApplyBufferValue &command)
QByteArray m_propertyName
QSSGApplyInstanceValue(const QSSGApplyInstanceValue &command)
QSSGApplyInstanceValue(const QByteArray &inName, QSSGRenderShaderValue::Type inValueType, quint32 inValueOffset)
QSSGRenderShaderValue::Type m_valueType
void addDebug(QDebug &stream) const
QSSGApplyValue(const QByteArray &inName)
QByteArray m_propertyName
void addDebug(QDebug &stream) const
QSSGApplyValue(const QSSGApplyValue &command)
void addDebug(QDebug &stream) const
QSSGBindBuffer(const QSSGBindBuffer &command)
QSSGBindBuffer(const QByteArray &inBufName)
QSSGBindShader(const QSSGBindShader &command)
void addDebug(QDebug &stream) const
QByteArray m_shaderPathKey
QSSGBindShader(const QByteArray &inShaderPathKey)
QSSGBindTarget(const QSSGBindTarget &command)
QSSGRenderTextureFormat m_outputFormat
void addDebug(QDebug &stream) const
QSSGBindTarget(QSSGRenderTextureFormat inFormat=QSSGRenderTextureFormat::RGBA8)
void addDebug(QDebug &stream) const
QSSGRender(const QSSGRender &)