PySide6.QtGui.QShaderKey¶
- class QShaderKey¶
Specifies the shading language, the version with flags, and the variant.
Details
A default constructed
QShaderKeyhas source set to SpirvShader andsourceVersionset to 100.sourceVariantdefaults to StandardShader.Note
This is a RHI API with limited compatibility guarantees, see
QShaderfor details.Added in version 6.6.
Synopsis¶
Methods¶
def
__init__()def
__ne__()def
__lt__()def
__eq__()def
setSource()def
source()def
sourceVariant()def
sourceVersion()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
- __init__(s, sver[, svar=QShader.StandardShader])
- Parameters:
s –
Sourcesver –
QShaderVersionsvar –
Variant
Constructs a new
QShaderKeywith shader types, versionsver, and variantsvar.- __ne__(rhs)¶
- Parameters:
rhs –
QShaderKey- Return type:
bool
Returns
falseif the values in the twoQShaderKeyobjectslhsandrhsare equal; otherwise returnstrue.- __lt__(rhs)¶
- Parameters:
rhs –
QShaderKey- Return type:
bool
Returns true if
lhsis smaller thanrhs.Establishes a sorting order between the two keys
lhsandrhs.- __eq__(rhs)¶
- Parameters:
rhs –
QShaderKey- Return type:
bool
Returns
trueif the twoQShaderKeyobjectslhsandrhsare equal.Sets the shader type
s.See also
Sets the type of variant to use to
svar.See also
- setSourceVersion(sver)¶
- Parameters:
sver –
QShaderVersion
Sets the shading language version
sver.See also
Returns the shader type.
See also
Returns the type of the variant to use.
See also
- sourceVersion()¶
- Return type:
Returns the shading language version.
See also