ShaderProgram QML Type

Encapsulates a Shader Program. More...

Import Statement: import Qt3D.Render 2.0
Since: Qt 5.5
Instantiates: QShaderProgram

Properties

Methods

Detailed Description

ShaderProgram class encapsulates a shader program. A shader program consists of several different shaders, such as vertex and fragment shaders.

Property Documentation

computeShaderCode : string

Holds the compute shader code used by this shader program.


fragmentShaderCode : string

Holds the fragment shader code used by this shader program.


geometryShaderCode : string

Holds the geometry shader code used by this shader program.


tessellationControlShaderCode : string

Holds the tesselation control shader code used by this shader program.


tessellationEvaluationShaderCode : string

Holds the tesselation evaluation shader code used by this shader program.


vertexShaderCode : string

Holds the vertex shader code used by this shader program.


Method Documentation

string loadSource(url sourceUrl)

Returns the shader code loaded from sourceUrl.


© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.