QRhiDepthStencilClearValue Class
深度バッファまたはステンシルバッファのクリア値を指定します。詳細...
| ヘッダー: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| 以下のように: | Qt 6.6 |
パブリック関数
| 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) |
詳細な説明
注:これは 互換性の保証が限定的な RHI API です。詳細については、QRhi を参照してください。
メンバー関数のドキュメント
[constexpr noexcept default] QRhiDepthStencilClearValue::QRhiDepthStencilClearValue()
深度クリア値 1.0f およびステンシルクリア値 0 を用いて、深度/ステンシルクリア値を生成します。
QRhiDepthStencilClearValue::QRhiDepthStencilClearValue(float d, quint32 s)
深度クリア値d およびステンシルクリア値s を用いて、深度/ステンシルクリア値を生成します。
float QRhiDepthStencilClearValue::depthClearValue() const
深度クリア値を返します。ほとんどの場合、この値は 1.0f です。
setDepthClearValue()も参照してください 。
void QRhiDepthStencilClearValue::setDepthClearValue(float d)
深度クリア値を `d` に設定します。
depthClearValue()も参照してください 。
void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)
ステンシルのクリア値をs に設定します。
stencilClearValue()も参照してください 。
quint32 QRhiDepthStencilClearValue::stencilClearValue() const
ステンシルのクリア値を返します。ほとんどの場合、これは 0 です。
setStencilClearValue()も参照してください 。
関連する非メンバー関数
[noexcept] size_t qHash(const QRhiDepthStencilClearValue &key, size_t seed = 0)
`key` のハッシュ値を、計算のシードとして `seed ` を使用して返します。
[noexcept] bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)
2つのQRhiDepthStencilClearValue オブジェクトa とb の値が等しい場合はfalse を返し、そうでない場合はtrue を返します。
[noexcept] bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)
2つのQRhiDepthStencilClearValue オブジェクトa とb の値が等しい場合、true を返します。
© 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.