QShaderProgramBuilder Class

( Qt3DRender::QShaderProgramBuilder )

Generates a Shader Program content from loaded graphs. 更多...

头: #include <QShaderProgramBuilder>
qmake: QT += 3drender
Since: Qt 5.10
实例化: ShaderProgramBuilder
继承: Qt3DCore::QNode

特性

公共函数

QShaderProgramBuilder (Qt3DCore::QNode * parent = nullptr)
virtual ~QShaderProgramBuilder ()
QUrl computeShaderGraph () const
QStringList enabledLayers () const
QUrl fragmentShaderGraph () const
QUrl geometryShaderGraph () const
Qt3DRender::QShaderProgram * shaderProgram () const
QUrl tessellationControlShaderGraph () const
QUrl tessellationEvaluationShaderGraph () const
QUrl vertexShaderGraph () const

公共槽

void setComputeShaderGraph (const QUrl & computeShaderGraph )
void setEnabledLayers (const QStringList & layers )
void setFragmentShaderGraph (const QUrl & fragmentShaderGraph )
void setGeometryShaderGraph (const QUrl & geometryShaderGraph )
void setShaderProgram (Qt3DRender::QShaderProgram * program )
void setTessellationControlShaderGraph (const QUrl & tessellationControlShaderGraph )
void setTessellationEvaluationShaderGraph (const QUrl & tessellationEvaluationShaderGraph )
void setVertexShaderGraph (const QUrl & vertexShaderGraph )

信号

void computeShaderGraphChanged (const QUrl & computeShaderGraph )
void enabledLayersChanged (const QStringList & layers )
void fragmentShaderGraphChanged (const QUrl & fragmentShaderGraph )
void geometryShaderGraphChanged (const QUrl & geometryShaderGraph )
void shaderProgramChanged (Qt3DRender::QShaderProgram * shaderProgram )
void tessellationControlShaderGraphChanged (const QUrl & tessellationControlShaderGraph )
void tessellationEvaluationShaderGraphChanged (const QUrl & tessellationEvaluationShaderGraph )
void vertexShaderGraphChanged (const QUrl & vertexShaderGraph )

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

Generates a Shader Program content from loaded graphs.

A shader program builder consists of several different shader graphs used to generate shader code.

特性文档编制

computeShaderGraph : QUrl

Holds the URL to the compute shader graph used by this shader program builder.

访问函数:

QUrl computeShaderGraph () const
void setComputeShaderGraph (const QUrl & computeShaderGraph )

通知程序信号:

void computeShaderGraphChanged (const QUrl & computeShaderGraph )

enabledLayers : QStringList

Holds the list of layers this builder will activate on the shader graphs during code generation.

访问函数:

QStringList enabledLayers () const
void setEnabledLayers (const QStringList & layers )

通知程序信号:

void enabledLayersChanged (const QStringList & layers )

fragmentShaderGraph : QUrl

Holds the URL to the fragment shader graph used by this shader program builder.

访问函数:

QUrl fragmentShaderGraph () const
void setFragmentShaderGraph (const QUrl & fragmentShaderGraph )

通知程序信号:

void fragmentShaderGraphChanged (const QUrl & fragmentShaderGraph )

geometryShaderGraph : QUrl

Holds the URL to the geometry shader graph used by this shader program builder.

访问函数:

QUrl geometryShaderGraph () const
void setGeometryShaderGraph (const QUrl & geometryShaderGraph )

通知程序信号:

void geometryShaderGraphChanged (const QUrl & geometryShaderGraph )

shaderProgram : Qt3DRender::QShaderProgram *

Holds the shader program on which this builder generates code.

访问函数:

Qt3DRender::QShaderProgram * shaderProgram () const
void setShaderProgram (Qt3DRender::QShaderProgram * program )

通知程序信号:

void shaderProgramChanged (Qt3DRender::QShaderProgram * shaderProgram )

tessellationControlShaderGraph : QUrl

Holds the URL to the tesselation control shader graph used by this shader program builder.

访问函数:

QUrl tessellationControlShaderGraph () const
void setTessellationControlShaderGraph (const QUrl & tessellationControlShaderGraph )

通知程序信号:

void tessellationControlShaderGraphChanged (const QUrl & tessellationControlShaderGraph )

tessellationEvaluationShaderGraph : QUrl

Holds the URL to the tesselation evaluation shader graph used by this shader program builder.

访问函数:

QUrl tessellationEvaluationShaderGraph () const
void setTessellationEvaluationShaderGraph (const QUrl & tessellationEvaluationShaderGraph )

通知程序信号:

void tessellationEvaluationShaderGraphChanged (const QUrl & tessellationEvaluationShaderGraph )

vertexShaderGraph : QUrl

Holds the URL to the vertex shader graph used by this shader program builder.

访问函数:

QUrl vertexShaderGraph () const
void setVertexShaderGraph (const QUrl & vertexShaderGraph )

通知程序信号:

void vertexShaderGraphChanged (const QUrl & vertexShaderGraph )

成员函数文档编制

QShaderProgramBuilder:: QShaderProgramBuilder ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QShaderProgramBuilder.

[虚拟] QShaderProgramBuilder:: ~QShaderProgramBuilder ()

Destroys the instance of QShaderProgramBuilder. The destructor is virtual.