ShaderProgram QML Type
Encapsulates a Shader Program. More...
Import Statement: | import Qt3D.Render 2.0 |
Since: | Qt 5.5 |
Instantiates: | QShaderProgram |
Properties
- computeShaderCode : string
- computeShaderGraph : string
- fragmentShaderCode : string
- fragmentShaderGraph : string
- geometryShaderCode : string
- geometryShaderGraph : string
- log : string
- status : string
- tessellationControlShaderCode : string
- tessellationControlShaderGraph : string
- tessellationEvaluationShaderCode : string
- tessellationEvaluationShaderGraph : string
- vertexShaderCode : string
- vertexShaderGraph : string
Methods
- string loadSource(url sourceUrl)
Detailed Description
ShaderProgram class encapsulates a shader program. A shader program consists of several different shaders, such as vertex and fragment shaders.
Property Documentation
Holds the URL to the compute shader graph used by this shader program builder.
Holds the URL to the fragment shader graph used by this shader program builder.
Holds the URL to the geometry shader graph used by this shader program builder.
Holds the log of the current shader program. This is useful to diagnose a compilation failure of the shader program.
Holds the tesselation control shader code used by this shader program.
Holds the URL to the tesselation control shader graph used by this shader program builder.
Holds the tesselation evaluation shader code used by this shader program.
Holds the URL to the tesselation evaluation shader graph used by this shader program builder.
Holds the URL to the vertex shader graph used by this shader program builder.
Method Documentation
string loadSource(url sourceUrl) |
Returns the shader code loaded from sourceUrl.