Specifies clear values for a depth or stencil buffer. 更多...
| 頭: |
#include <rhi/qrhi.h>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
|
| qmake: |
QT += gui-private
|
| Since: | 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 ) |
注意: This is a RHI API with limited compatibility guarantees, see QRhi 瞭解細節。
[constexpr noexcept]
QRhiDepthStencilClearValue::
QRhiDepthStencilClearValue
()
Constructs a depth/stencil clear value with depth clear value 1.0f and stencil clear value 0.
Constructs a depth/stencil clear value with depth clear value d and stencil clear value s .
Returns the depth clear value. In most cases this is 1.0f.
另請參閱 setDepthClearValue ().
Sets the depth clear value to d .
另請參閱 depthClearValue ().
Sets the stencil clear value to s .
另請參閱 stencilClearValue ().
Returns the stencil clear value. In most cases this is 0.
另請參閱 setStencilClearValue ().
[noexcept]
size_t
qHash
(const
QRhiDepthStencilClearValue
&
key
,
size_t
seed
= 0)
返迴哈希值為 key ,使用 seed 做計算種子。
[noexcept]
bool
operator!=
(const
QRhiDepthStencilClearValue
&
a
, const
QRhiDepthStencilClearValue
&
b
)
返迴
false
if the values in the two
QRhiDepthStencilClearValue
對象
a
and
b
相等;否則返迴
true
.
[noexcept]
bool
operator==
(const
QRhiDepthStencilClearValue
&
a
, const
QRhiDepthStencilClearValue
&
b
)
返迴
true
if the values in the two
QRhiDepthStencilClearValue
對象
a
and
b
相等。