QRhiDepthStencilClearValue Class

Specifies clear values for a depth or stencil buffer. More...

Header: #include <QRhiDepthStencilClearValue>
qmake: QT += rhi

Public Functions

QRhiDepthStencilClearValue()
QRhiDepthStencilClearValue(float d, quint32 s)
float depthClearValue() const
void setDepthClearValue(float d)
void setStencilClearValue(quint32 s)
quint32 stencilClearValue() const
uint qHash(const QRhiDepthStencilClearValue &v, uint seed = 0)
bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)
bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)

Detailed Description

Specifies clear values for a depth or stencil buffer.

Member Type Documentation

Property Documentation

Member Function Documentation

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

See also setDepthClearValue().

void QRhiDepthStencilClearValue::setDepthClearValue(float d)

See also depthClearValue().

void QRhiDepthStencilClearValue::setStencilClearValue(quint32 s)

See also stencilClearValue().

quint32 QRhiDepthStencilClearValue::stencilClearValue() const

See also setStencilClearValue().

Member Variable Documentation

Related Non-Members

uint qHash(const QRhiDepthStencilClearValue &v, uint seed = 0)

Returns the hash value for v, using seed to seed the calculation.

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

Returns false if the values in the two QRhiDepthStencilClearValue objects a and b are equal; otherwise returns true.

bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)

Returns true if the values in the two QRhiDepthStencilClearValue objects a and b are equal.

Macro Documentation