IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

ShaderProgramBuilder QML Type

Generates a Shader Program content from loaded graphs.

This type was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ShaderProgramBuilder QML Type

Detailed Description

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

A cache of generated shader code is maintained. Generated shaders are by defaults saved in QStandardPaths::writableLocation(QStandardPaths::TempLocation)). This path can be overridden by setting environment variable QT3D_WRITABLE_CACHE_PATH to a valid writable path.

The use of the cache can be disabled by setting environment variable QT3D_DISABLE_SHADER_CACHE.

In most cases, changes made to a graph are detected by Qt 3D and a new cache entry will be generated. One case were this will not happen is when code snippets included by a graphs are changed. To work around that, clearing the cache directory or setting environment variable QT3D_REBUILD_SHADER_CACHE can be used to force shader code to be generated again.

Property Documentation

 

[read-only] computeShaderCode : string

Holds the generated compute shader code

enabledLayers : stringlist

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

[read-only] fragmentShaderCode : string

Holds the generated fragment shader code

[read-only] geometryShaderCode : string

Holds the generated geometry shader code

shaderProgram : string

Holds the shader program on which this builder generates code.

[read-only] tessellationControlShaderCode : string

Holds the generated tessellation control shader code

[read-only] tessellationEvaluationShaderCode : string

Holds the generated tessellation evaluation shader code

[read-only] vertexShaderCode : string

Holds the generated vertex shader code

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+