Specifies clear values for a depth or stencil buffer. More...
| Header: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| Since: | Qt 6.6 |
| QRhiDepthStencilClearValue() | |
| QRhiDepthStencilClearValue(float d, quint32 s) | |
| float | depthClearValue() const |
| void | setDepthClearValue(float d) |
| void | setStencilClearValue(quint32 s) |
| quint32 | stencilClearValue() const |
| size_t | qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0) |
| bool | operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b) |
| bool | operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b) |
Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.
[constexpr noexcept] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()Constructs a depth/stencil clear value with depth clear value 1.0f and stencil clear value 0.
Constructs a depth/stencil clear value with depth clear value d and stencil clear value s.
Returns the depth clear value. In most cases this is 1.0f.
See also setDepthClearValue().
Sets the depth clear value to d.
See also depthClearValue().
Sets the stencil clear value to s.
See also stencilClearValue().
Returns the stencil clear value. In most cases this is 0.
See also setStencilClearValue().
[noexcept] size_t qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0)Returns the hash value for key, using seed to seed the calculation.
[noexcept] bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)Returns false if the values in the two QRhiDepthStencilClearValue objects a and b are equal; otherwise
returns true.
[noexcept] bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)Returns true if the values in the two QRhiDepthStencilClearValue objects a and b 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: