QRhiDepthStencilClearValue Class
Spécifie les valeurs d'effacement pour un tampon de profondeur ou de pochoir. Plus d'informations...
| En-tête : | #include <rhi/qrhi.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake : | QT += gui-private |
| Depuis : | Qt 6.6 |
Fonctions publiques
| QRhiDepthStencilClearValue() | |
| QRhiDepthStencilClearValue(float d, quint32 s) | |
| float | depthClearValue() const |
| void | setDepthClearValue(float d) |
| void | setStencilClearValue(quint32 s) |
| quint32 | stencilClearValue() const |
Non-membres apparentés
| 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) |
Description détaillée
Remarque : il s'agit d'une API RHI avec des garanties de compatibilité limitées, voir QRhi pour plus de détails.
Documentation des fonctions membres
[constexpr noexcept] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()
Construit une valeur d'effacement de profondeur/stencil avec une valeur d'effacement de profondeur de 1,0f et une valeur d'effacement de stencil de 0.
QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)
Construit une valeur d'effacement de profondeur/stencil avec la valeur d'effacement de profondeur d et la valeur d'effacement de stencil s.
float QRhiDepthStencilClearValue::depthClearValue() const
Renvoie la valeur claire de la profondeur. Dans la plupart des cas, cette valeur est de 1.0f.
Voir aussi setDepthClearValue().
void QRhiDepthStencilClearValue::setDepthClearValue(float d)
Fixe la valeur d'effacement de la profondeur à d.
Voir aussi depthClearValue().
void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)
Fixe la valeur d'effacement du pochoir à s.
Voir aussi stencilClearValue().
quint32 QRhiDepthStencilClearValue::stencilClearValue() const
Renvoie la valeur d'effacement du pochoir. Dans la plupart des cas, cette valeur est 0.
Voir également setStencilClearValue().
Non-membres associés
[noexcept] size_t qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0)
Renvoie la valeur de hachage pour key, en utilisant seed comme base de calcul.
[noexcept] bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)
Renvoie false si les valeurs des deux objets QRhiDepthStencilClearValue a et b sont égales ; sinon, renvoie true.
[noexcept] bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)
Renvoie true si les valeurs des deux objets QRhiDepthStencilClearValue a et b sont égales.
© 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.