PySide6.QtGui.QRhiDepthStencilClearValue¶
- class QRhiDepthStencilClearValue¶
Specifies clear values for a depth or stencil buffer.
Details
Note
This is a RHI API with limited compatibility guarantees, see
QRhifor details.Added in version 6.6.
Synopsis¶
Methods¶
def
__init__()def
__ne__()def
__eq__()
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__()¶
Constructs a depth/stencil clear value with depth clear value 1.0f and stencil clear value 0.
- __init__(d, s)
- Parameters:
d – float
s – int
Constructs a depth/stencil clear value with depth clear value
dand stencil clear values.- depthClearValue()¶
- Return type:
float
Returns the depth clear value. In most cases this is 1.0f.
See also
- __ne__(b)¶
- Parameters:
- Return type:
bool
Returns
falseif the values in the twoQRhiDepthStencilClearValueobjectsaandbare equal; otherwise returnstrue.- __eq__(b)¶
- Parameters:
- Return type:
bool
Returns
trueif the values in the twoQRhiDepthStencilClearValueobjectsaandbare equal.- setDepthClearValue(d)¶
- Parameters:
d – float
Sets the depth clear value to
d.See also
- setStencilClearValue(s)¶
- Parameters:
s – int
Sets the stencil clear value to
s.See also
- stencilClearValue()¶
- Return type:
int
Returns the stencil clear value. In most cases this is 0.
See also