In questa pagina

QRhiDepthStencilClearValue Class

Specifica valori chiari per un buffer di profondità o stencil. Altro...

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

Funzioni pubbliche

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)

Descrizione dettagliata

Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.

Documentazione delle funzioni membro

[constexpr noexcept default] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()

Crea un valore di cancellazione per profondità/stencil con valore di cancellazione per profondità pari a 1.0f e valore di cancellazione per stencil pari a 0.

QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)

Crea un valore di cancellazione profondità/stencil con il valore di cancellazione profondità d e il valore di cancellazione stencil s.

float QRhiDepthStencilClearValue::depthClearValue() const

Restituisce il valore di cancellazione della profondità. Nella maggior parte dei casi è pari a 1.0f.

Vedi anche setDepthClearValue().

void QRhiDepthStencilClearValue::setDepthClearValue(float d)

Imposta il valore di cancellazione della profondità su d.

Vedi anche depthClearValue().

void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)

Imposta il valore di cancellazione dello stencil su s.

Vedi anche stencilClearValue().

quint32 QRhiDepthStencilClearValue::stencilClearValue() const

Restituisce il valore di cancellazione dello stencil. Nella maggior parte dei casi è pari a 0.

Vedi anche setStencilClearValue().

Elementi non membri correlati

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

Restituisce il valore hash per key, utilizzando seed come seme per il calcolo.

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

Restituisce ` false ` se i valori contenuti nei due oggetti ` QRhiDepthStencilClearValue ` ( a e b ) sono uguali; altrimenti restituisce ` true`.

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

Restituisce ` true ` se i valori contenuti nei due oggetti ` QRhiDepthStencilClearValue `, ovvero ` a ` e ` b `, sono uguali.

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