Nesta página

QRhiDepthStencilClearValue Class

Especifica valores de limpeza para um buffer de profundidade ou de estêncil. Mais...

Cabeçalho: #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

Funções 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)

Descrição detalhada

Observação: Esta é uma API RHI com garantias de compatibilidade limitadas; consulte QRhi para obter detalhes.

Documentação das funções de membro

[constexpr noexcept default] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()

Cria um valor de limpeza de profundidade/estêncil com valor de limpeza de profundidade 1,0f e valor de limpeza de estêncil 0.

QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)

Cria um valor de limpeza de profundidade/estêncil com o valor de limpeza de profundidade d e o valor de limpeza de estêncil s.

float QRhiDepthStencilClearValue::depthClearValue() const

Retorna o valor de limpeza de profundidade. Na maioria dos casos, esse valor é 1,0f.

Veja também setDepthClearValue().

void QRhiDepthStencilClearValue::setDepthClearValue(float d)

Define o valor de limpeza de profundidade como d.

Veja também ` depthClearValue()`.

void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)

Define o valor de transparência do estêncil como s.

Veja também stencilClearValue().

quint32 QRhiDepthStencilClearValue::stencilClearValue() const

Retorna o valor de limpeza do estêncil. Na maioria dos casos, esse valor é 0.

Veja também setStencilClearValue().

Não-membros relacionados

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

Retorna o valor do hash para key, utilizando seed como semente para o cálculo.

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

Retorna ` false ` se os valores nos dois objetos ` QRhiDepthStencilClearValue ` — ` a ` e ` b ` — forem iguais; caso contrário, retorna ` true`.

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

Retorna ` true ` se os valores nos dois objetos ` QRhiDepthStencilClearValue ` — ` a ` e ` b ` — forem iguais.

© 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.