En esta página

QRhiDepthStencilClearValue Class

Especifica valores claros para un búfer de profundidad o de plantilla. Más...

Cabecera: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Desde: Qt 6.6

Funciones Públicas

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)

Descripción detallada

Nota: Esta es una API RHI con garantías de compatibilidad limitadas, consulte QRhi para más detalles.

Documentación de las funciones de los miembros

[constexpr noexcept] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()

Construye un valor depth/stencil clear con valor depth clear 1.0f y stencil clear valor 0.

QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)

Construye un valor de limpieza de profundidad/esténcil con el valor de limpieza de profundidad d y el valor de limpieza de esténcil s.

float QRhiDepthStencilClearValue::depthClearValue() const

Devuelve el valor claro de profundidad. En la mayoría de los casos es 1.0f.

Véase también setDepthClearValue().

void QRhiDepthStencilClearValue::setDepthClearValue(float d)

Establece el valor de limpieza de profundidad en d.

Véase también depthClearValue().

void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)

Establece el valor de limpieza del esténcil en s.

Véase también stencilClearValue().

quint32 QRhiDepthStencilClearValue::stencilClearValue() const

Devuelve el valor de limpieza del esténcil. En la mayoría de los casos es 0.

Véase también setStencilClearValue().

No miembros relacionados

[noexcept] size_t qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0)

Devuelve el valor hash para key, utilizando seed para sembrar el cálculo.

[noexcept] bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)

Devuelve false si los valores de los dos objetos QRhiDepthStencilClearValue a y b son iguales; en caso contrario devuelve true.

[noexcept] bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)

Devuelve true si los valores de los dos objetos QRhiDepthStencilClearValue a y b son iguales.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.