QShaderKey Class

Specifies the shading language, the version with flags, and the variant. More...

Header: #include <QShaderKey>
qmake: QT += rhi

Public Functions

QShaderKey()
QShaderKey(QShader::Source s, const QShaderVersion &sver, QShader::Variant svar = QShader::StandardShader)
void setSource(QShader::Source s)
void setSourceVariant(QShader::Variant svar)
void setSourceVersion(const QShaderVersion &sver)
QShader::Source source() const
QShader::Variant sourceVariant() const
QShaderVersion sourceVersion() const
uint qHash(const QShaderKey &k, uint seed = 0)
bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs)
bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)

Detailed Description

Specifies the shading language, the version with flags, and the variant.

A default constructed QShaderKey has source set to SpirvShader and sourceVersion set to 100. sourceVariant defaults to StandardShader.

Member Type Documentation

Property Documentation

Member Function Documentation

QShaderKey::QShaderKey()

Default constructs an instance of QShaderKey.

QShaderKey::QShaderKey(QShader::Source s, const QShaderVersion &sver, QShader::Variant svar = QShader::StandardShader)

Default constructs an instance of QShaderKey.

void QShaderKey::setSource(QShader::Source s)

See also source().

void QShaderKey::setSourceVariant(QShader::Variant svar)

See also sourceVariant().

void QShaderKey::setSourceVersion(const QShaderVersion &sver)

See also sourceVersion().

QShader::Source QShaderKey::source() const

See also setSource().

QShader::Variant QShaderKey::sourceVariant() const

See also setSourceVariant().

QShaderVersion QShaderKey::sourceVersion() const

See also setSourceVersion().

Member Variable Documentation

Related Non-Members

uint qHash(const QShaderKey &k, uint seed = 0)

Returns the hash value for k, using seed to seed the calculation.

bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs)

Returns false if the values in the two QShaderKey objects a and b are equal; otherwise returns true.

bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)

Returns true if the two QShaderKey objects a and b are equal.

Macro Documentation