Shader Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | Shader

Qt 5.6.2 Reference Documentation

# Shader Class

(Qt3DRender::Render::Shader)

Inherits: | Qt3DCore::QBackendNode

- List of all members, including inherited members

## Public Functions

| Shader()
| ~Shader()
QHash<QString, ShaderUniform> | activeUniformsForBlock(int blockIndex) const
QVector<ShaderAttribute> | attributes() const
QVector<QString> | attributesNames() const
void | cleanup()
ProgramDNA | dna() const
bool | isLoaded() const
void | sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
void | setFragOutputs(const QHash<QString, int> &fragOutputs)
QVector<QByteArray> | shaderCode() const
ShaderUniformBlock | uniformBlock(int blockIndex)
ShaderUniformBlock | uniformBlock(const QString &blockName)
QVector<QString> | uniformBlockNames() const
QVector<ShaderUniformBlock> | uniformBlocks() const
QVector<ShaderUniform> | uniforms() const
QVector<QString> | uniformsNames() const
void | updateFromPeer(Qt3DCore::QNode *peer)
void | updateUniforms(GraphicsContext *ctx, const QUniformPack &pack)

- 5 public functions inherited from Qt3DCore::QBackendNode

### Additional Inherited Members

- 3 protected functions inherited from Qt3DCore::QBackendNode

## Member Function Documentation

### Shader::Shader()

Default constructs an instance of Shader.

### Shader::~Shader()

Destroys the instance of Shader.

### QHash<QString, ShaderUniform> Shader::activeUniformsForBlock(int blockIndex) const

### QVector<ShaderAttribute> Shader::attributes() const

### QVector<QString> Shader::attributesNames() const

### void Shader::cleanup()

### ProgramDNA Shader::dna() const

### bool Shader::isLoaded() const

### void Shader::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)

### void Shader::setFragOutputs(const QHash<QString, int> &fragOutputs)

### QVector<QByteArray> Shader::shaderCode() const

### ShaderUniformBlock Shader::uniformBlock(int blockIndex)

### ShaderUniformBlock Shader::uniformBlock(const QString &blockName)

### QVector<QString> Shader::uniformBlockNames() const

### QVector<ShaderUniformBlock> Shader::uniformBlocks() const

### QVector<ShaderUniform> Shader::uniforms() const

### QVector<QString> Shader::uniformsNames() const

### void Shader::updateFromPeer(Qt3DCore::QNode *peer)

### void Shader::updateUniforms(GraphicsContext *ctx, const QUniformPack &pack)