![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qshader.h>
Public Member Functions | |
QShaderKey ()=default | |
QShaderKey (QShader::Source s, const QShaderVersion &sver, QShader::Variant svar=QShader::StandardShader) | |
Constructs a new QShaderKey with shader type s, version sver, and variant svar. | |
QShader::Source | source () const |
void | setSource (QShader::Source s) |
Sets the shader type s. | |
QShaderVersion | sourceVersion () const |
void | setSourceVersion (const QShaderVersion &sver) |
Sets the shading language version sver. | |
QShader::Variant | sourceVariant () const |
void | setSourceVariant (QShader::Variant svar) |
Sets the type of variant to use to svar. | |
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator== (const QShaderKey &lhs, const QShaderKey &rhs) noexcept |
Returns true if the two QShaderKey objects lhs and rhs are equal. | |
bool | operator< (const QShaderKey &lhs, const QShaderKey &rhs) 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 . | |
size_t | qHash (const QShaderKey &k, size_t seed) noexcept |
Returns the hash value for k, using seed to seed the calculation. | |
\inmodule QtGui
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.
|
default |
QShaderKey::QShaderKey | ( | QShader::Source | s, |
const QShaderVersion & | sver, | ||
QShader::Variant | svar = QShader::StandardShader |
||
) |
Constructs a new QShaderKey with shader type s, version sver, and variant svar.
Definition at line 703 of file qshader.cpp.
|
inline |
Sets the shader type s.
Definition at line 182 of file qshader.h.
Referenced by readShaderKey().
|
inline |
Sets the type of variant to use to svar.
Definition at line 188 of file qshader.h.
Referenced by readShaderKey().
|
inline |
Sets the shading language version sver.
Definition at line 185 of file qshader.h.
Referenced by readShaderKey().
|
inline |
Definition at line 181 of file qshader.h.
Referenced by operator<<(), and writeShaderKey().
|
inline |
Definition at line 187 of file qshader.h.
Referenced by operator<<(), and writeShaderKey().
|
inline |
Definition at line 184 of file qshader.h.
Referenced by operator<<(), and writeShaderKey().
|
related |
Returns false
if the values in the two QShaderKey objects lhs and rhs are equal; otherwise returns true
.
|
related |
Establishes a sorting order between the two keys lhs and rhs.
Definition at line 849 of file qshader.cpp.
|
related |
Returns true
if the two QShaderKey objects lhs and rhs are equal.
Definition at line 836 of file qshader.cpp.
|
related |
Returns the hash value for k, using seed to seed the calculation.
Definition at line 880 of file qshader.cpp.
References qHashMulti(), and seed.