ShaderProgram QML Type
Encapsulates a Shader Program. 更多...
Import Statement: | import Qt3D.Render 2.0 |
开始支持版本: | Qt 5.5 |
Instantiates: | QShaderProgram |
属性
- computeShaderCode : string
- fragmentShaderCode : string
- geometryShaderCode : string
- log : string
- status : string
- tessellationControlShaderCode : string
- tessellationEvaluationShaderCode : string
- vertexShaderCode : string
方法
- string loadSource(url sourceUrl)
详细描述
ShaderProgram class encapsulates a shader program. A shader program consists of several different shaders, such as vertex and fragment shaders.
属性
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 tesselation evaluation shader code used by this shader program.
成员
string loadSource(url sourceUrl) |
Returns the shader code loaded from sourceUrl.