Qt3DRender.QShaderProgramBuilder

Generates a Shader Program content from loaded graphs. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder

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.Qt3DRender.QShaderProgramBuilder([parent=None])
Parameters

parentQNode

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.computeShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.computeShaderCodeChanged(computeShaderCode)
Parameters

computeShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.computeShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.computeShaderGraphChanged(computeShaderGraph)
Parameters

computeShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.enabledLayers()
Return type

list of strings

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.enabledLayersChanged(layers)
Parameters

layers – list of strings

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.fragmentShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.fragmentShaderCodeChanged(fragmentShaderCode)
Parameters

fragmentShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.fragmentShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.fragmentShaderGraphChanged(fragmentShaderGraph)
Parameters

fragmentShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.geometryShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.geometryShaderCodeChanged(geometryShaderCode)
Parameters

geometryShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.geometryShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.geometryShaderGraphChanged(geometryShaderGraph)
Parameters

geometryShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setComputeShaderGraph(computeShaderGraph)
Parameters

computeShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setEnabledLayers(layers)
Parameters

layers – list of strings

See also

enabledLayers()

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setFragmentShaderGraph(fragmentShaderGraph)
Parameters

fragmentShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setGeometryShaderGraph(geometryShaderGraph)
Parameters

geometryShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setShaderProgram(program)
Parameters

programQShaderProgram

See also

shaderProgram()

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setTessellationControlShaderGraph(tessellationControlShaderGraph)
Parameters

tessellationControlShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setTessellationEvaluationShaderGraph(tessellationEvaluationShaderGraph)
Parameters

tessellationEvaluationShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.setVertexShaderGraph(vertexShaderGraph)
Parameters

vertexShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.shaderProgram()
Return type

QShaderProgram

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.shaderProgramChanged(shaderProgram)
Parameters

shaderProgramQShaderProgram

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderCodeChanged(tessellationControlShaderCode)
Parameters

tessellationControlShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationControlShaderGraphChanged(tessellationControlShaderGraph)
Parameters

tessellationControlShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderCodeChanged(tessellationEvaluationShaderCode)
Parameters

tessellationEvaluationShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.tessellationEvaluationShaderGraphChanged(tessellationEvaluationShaderGraph)
Parameters

tessellationEvaluationShaderGraphQUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.vertexShaderCode()
Return type

QByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.vertexShaderCodeChanged(vertexShaderCode)
Parameters

vertexShaderCodeQByteArray

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.vertexShaderGraph()
Return type

QUrl

PySide2.Qt3DRender.Qt3DRender.QShaderProgramBuilder.vertexShaderGraphChanged(vertexShaderGraph)
Parameters

vertexShaderGraphQUrl