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.
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 ) |
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 ) |
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 ) |
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 ) |
Holds the shader program on which this builder generates code.
访问函数:
Qt3DRender::QShaderProgram * | shaderProgram () const |
void | setShaderProgram (Qt3DRender::QShaderProgram * program ) |
通知程序信号:
void | shaderProgramChanged (Qt3DRender::QShaderProgram * shaderProgram ) |
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 ) |
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 ) |
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 ) |
Default constructs an instance of QShaderProgramBuilder.
[虚拟]
QShaderProgramBuilder::
~QShaderProgramBuilder
()
Destroys the instance of QShaderProgramBuilder. The destructor is virtual.