QRhiDepthStencilClearValue Class

Specifies clear values for a depth or stencil buffer. 更多...

头: #include <QRhiDepthStencilClearValue>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
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 & v , 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.

QRhiDepthStencilClearValue:: QRhiDepthStencilClearValue ( float d , quint32 s )

Constructs a depth/stencil clear value with depth clear value d and stencil clear value s .

float QRhiDepthStencilClearValue:: depthClearValue () const

Returns the depth clear value. In most cases this is 1.0f.

另请参阅 setDepthClearValue ().

void QRhiDepthStencilClearValue:: setDepthClearValue ( float d )

Sets the depth clear value to d .

另请参阅 depthClearValue ().

void QRhiDepthStencilClearValue:: setStencilClearValue ( quint32 s )

Sets the stencil clear value to s .

另请参阅 stencilClearValue ().

quint32 QRhiDepthStencilClearValue:: stencilClearValue () const

Returns the stencil clear value. In most cases this is 0.

另请参阅 setStencilClearValue ().

相关非成员

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

返回哈希值为 v ,使用 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 相等。