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 QRhi for details.

Added in version 6.6.

Synopsis

Methods

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 d and stencil clear value s.

depthClearValue()
Return type:

float

Returns the depth clear value. In most cases this is 1.0f.

__ne__(b)
Parameters:

bQRhiDepthStencilClearValue

Return type:

bool

__eq__(b)
Parameters:

bQRhiDepthStencilClearValue

Return type:

bool

setDepthClearValue(d)
Parameters:

d – float

Sets the depth clear value to d.

setStencilClearValue(s)
Parameters:

s – int

Sets the stencil clear value to s.

stencilClearValue()
Return type:

int

Returns the stencil clear value. In most cases this is 0.