QRhiDepthStencilClearValue Class
Especifica valores de borrado para un búfer de profundidad o de plantilla. Más...
| Encabezado: | #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 |
Elementos no miembros relacionados
| 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: Se trata de una API de RHI con garantías de compatibilidad limitadas; consulta QRhi para obtener más detalles.
Documentación de las funciones de miembro
[constexpr noexcept default] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()
Crea un valor de borrado de profundidad/plantilla con un valor de borrado de profundidad de 1,0f y un valor de borrado de plantilla de 0.
QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)
Crea un valor de borrado de profundidad/plantilla con el valor de borrado de profundidad d y el valor de borrado de plantilla s.
float QRhiDepthStencilClearValue::depthClearValue() const
Devuelve el valor de borrado 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 borrado de profundidad en « d ».
Véase también ` depthClearValue()`.
void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)
Establece el valor de borrado de la plantilla en « s ».
Véase también stencilClearValue().
quint32 QRhiDepthStencilClearValue::stencilClearValue() const
Devuelve el valor de borrado de la plantilla. En la mayoría de los casos, este valor es 0.
Véase también setStencilClearValue().
Elementos no miembros relacionados
[noexcept] size_t qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0)
Devuelve el valor hash de key, utilizando seed como semilla para 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.