이 페이지에서

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)

상세 설명

참고: 이 API는 호환성 보장이 제한적인 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)

seed 를 계산의 시드로 사용하여 key 에 대한 해시 값을 반환합니다.

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

두 개의 QRhiDepthStencilClearValue 객체인 a 와 b 의 값이 같으면 false 를 반환하고, 그렇지 않으면 true 를 반환합니다.

[noexcept] bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b)

두 개의 ` 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.