QShaderProgramBuilder

Generates a Shader Program content from loaded graphs. More

New in version 5.10.

Synopsis

Slots

Signals

Detailed Description

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

class PySide2.Qt3DRender.QShaderProgramBuilder([parent=None])
Parameters

parentPySide2.Qt3DCore.QNode

PySide2.Qt3DRender.QShaderProgramBuilder.computeShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate compute shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.computeShaderCodeChanged(computeShaderCode)
Parameters

computeShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.computeShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.computeShaderGraphChanged(computeShaderGraph)
Parameters

computeShaderGraphPySide2.QtCore.QUrl

PySide2.Qt3DRender.QShaderProgramBuilder.enabledLayers()
Return type

list of strings

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

PySide2.Qt3DRender.QShaderProgramBuilder.enabledLayersChanged(layers)
Parameters

layers – list of strings

PySide2.Qt3DRender.QShaderProgramBuilder.fragmentShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate fragment shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.fragmentShaderCodeChanged(fragmentShaderCode)
Parameters

fragmentShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.fragmentShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.fragmentShaderGraphChanged(fragmentShaderGraph)
Parameters

fragmentShaderGraphPySide2.QtCore.QUrl

PySide2.Qt3DRender.QShaderProgramBuilder.geometryShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate geometry shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.geometryShaderCodeChanged(geometryShaderCode)
Parameters

geometryShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.geometryShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.geometryShaderGraphChanged(geometryShaderGraph)
Parameters

geometryShaderGraphPySide2.QtCore.QUrl

PySide2.Qt3DRender.QShaderProgramBuilder.setComputeShaderGraph(computeShaderGraph)
Parameters

computeShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.setEnabledLayers(layers)
Parameters

layers – list of strings

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

PySide2.Qt3DRender.QShaderProgramBuilder.setFragmentShaderGraph(fragmentShaderGraph)
Parameters

fragmentShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.setGeometryShaderGraph(geometryShaderGraph)
Parameters

geometryShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.setShaderProgram(program)
Parameters

programPySide2.Qt3DRender.QShaderProgram

Holds the shader program on which this builder generates code.

PySide2.Qt3DRender.QShaderProgramBuilder.setTessellationControlShaderGraph(tessellationControlShaderGraph)
Parameters

tessellationControlShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.setTessellationEvaluationShaderGraph(tessellationEvaluationShaderGraph)
Parameters

tessellationEvaluationShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.setVertexShaderGraph(vertexShaderGraph)
Parameters

vertexShaderGraphPySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.shaderProgram()
Return type

PySide2.Qt3DRender.QShaderProgram

Holds the shader program on which this builder generates code.

PySide2.Qt3DRender.QShaderProgramBuilder.shaderProgramChanged(shaderProgram)
Parameters

shaderProgramPySide2.Qt3DRender.QShaderProgram

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate tessellation control shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderCodeChanged(tessellationControlShaderCode)
Parameters

tessellationControlShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderGraphChanged(tessellationControlShaderGraph)
Parameters

tessellationControlShaderGraphPySide2.QtCore.QUrl

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate tessellation evaluation shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderCodeChanged(tessellationEvaluationShaderCode)
Parameters

tessellationEvaluationShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderGraphChanged(tessellationEvaluationShaderGraph)
Parameters

tessellationEvaluationShaderGraphPySide2.QtCore.QUrl

PySide2.Qt3DRender.QShaderProgramBuilder.vertexShaderCode()
Return type

PySide2.QtCore.QByteArray

Holds the generate vertex shader code.

PySide2.Qt3DRender.QShaderProgramBuilder.vertexShaderCodeChanged(vertexShaderCode)
Parameters

vertexShaderCodePySide2.QtCore.QByteArray

PySide2.Qt3DRender.QShaderProgramBuilder.vertexShaderGraph()
Return type

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.QShaderProgramBuilder.vertexShaderGraphChanged(vertexShaderGraph)
Parameters

vertexShaderGraphPySide2.QtCore.QUrl