Specifies the shading language, the version with flags, and the variant. More...
| Header: | #include <QShaderKey> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Since: | Qt 6.6 |
| 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 |
| size_t | qHash(const QShaderKey &key, size_t seed = 0) |
| bool | operator!=(const QShaderKey &lhs, const QShaderKey &rhs) |
| bool | operator<(const QShaderKey &lhs, const QShaderKey &rhs) |
| bool | operator==(const QShaderKey &lhs, const QShaderKey &rhs) |
A default constructed QShaderKey has source set to SpirvShader and sourceVersion set to 100. sourceVariant defaults to StandardShader.
Note: This is a RHI API with limited compatibility guarantees, see QShader for details.
[constexpr noexcept] QShaderKey::QShaderKey()Constructs a new QShaderKey with shader type s, version sver, and variant svar.
Sets the shader type s.
See also source().
Sets the type of variant to use to svar.
See also sourceVariant().
Sets the shading language version sver.
See also sourceVersion().
Returns the shader type.
See also setSource().
Returns the type of the variant to use.
See also setSourceVariant().
Returns the shading language version.
See also setSourceVersion().
[noexcept] size_t qHash(const QShaderKey &key, size_t seed = 0)Returns the hash value for key, using seed to seed the calculation.
[noexcept] bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs)Returns false if the values in the two QShaderKey objects lhs and rhs are equal; otherwise returns true.
[noexcept] bool operator<(const QShaderKey &lhs, const QShaderKey &rhs)Returns true if lhs is smaller than rhs.
Establishes a sorting order between the two keys lhs and rhs.
[noexcept] bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)Returns true if the two QShaderKey objects lhs and rhs are equal.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: