QShaderKey Class

음영 언어, 플래그가 있는 버전 및 이형식을 지정합니다. 더 보기...

헤더: #include <QShaderKey>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
이후: Qt 6.6

공용 함수

QShaderKey()
QShaderKey(QShader::Source s, const QShaderVersion &sver, QShader::Variant svar = QShader::StandardShader)
void setSource(QShader::Source s)
void setSourceVariant(QShader::Variant svar)
void setSourceVersion(const QShaderVersion &sver)
QShader::Source source() const
QShader::Variant sourceVariant() const
QShaderVersion sourceVersion() const
size_t qHash(const QShaderKey &key, size_t seed = 0)
bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs)
bool operator<(const QShaderKey &lhs, const QShaderKey &rhs)
bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)

상세 설명

기본으로 구성된 QShaderKey는 소스가 SpirvShader로 설정되고 sourceVersion 이 100으로 설정됩니다. sourceVariant 기본값은 StandardShader입니다.

참고: 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QShader 을 참조하세요.

멤버 함수 문서

[constexpr noexcept] QShaderKey::QShaderKey()

QShaderKey::QShaderKey(QShader::Source s, const QShaderVersion &sver, QShader::Variant svar = QShader::StandardShader)

셰이더 유형 s, 버전 sver, 변형 svar 으로 새 QShaderKey를 생성합니다.

void QShaderKey::setSource(QShader::Source s)

셰이더 유형을 설정합니다 s.

source()도 참조하세요 .

void QShaderKey::setSourceVariant(QShader::Variant svar)

사용할 변형 유형을 svar 으로 설정합니다.

sourceVariant()도 참조하세요 .

void QShaderKey::setSourceVersion(const QShaderVersion &sver)

음영 언어 버전을 설정합니다 sver.

sourceVersion()도 참조하세요 .

QShader::Source QShaderKey::source() const

셰이더 유형을 반환합니다.

setSource()도 참조하세요 .

QShader::Variant QShaderKey::sourceVariant() const

사용할 변형의 유형을 반환합니다.

setSourceVariant()도 참조하세요 .

QShaderVersion QShaderKey::sourceVersion() const

음영 언어 버전을 반환합니다.

setSourceVersion()도 참조하세요 .

관련 비회원

[noexcept] size_t qHash(const QShaderKey &key, size_t seed = 0)

seed 을 사용하여 key 에 대한 해시값을 반환합니다.

[noexcept] bool operator!=(const QShaderKey &lhs, const QShaderKey &rhs)

두 개의 QShaderKey 객체 lhsrhs 의 값이 같으면 false 를 반환하고, 그렇지 않으면 true 를 반환합니다.

[noexcept] bool operator<(const QShaderKey &lhs, const QShaderKey &rhs)

lhsrhs 보다 작으면 참을 반환합니다.

lhsrhs 두 키 사이의 정렬 순서를 설정합니다.

[noexcept] bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)

두 개의 QShaderKey 객체 lhsrhs 가 같으면 true 를 반환합니다.

© 2025 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.