QShaderKey Class
셰이딩 언어, 플래그가 포함된 버전 및 변형을 지정합니다. 더 보기...
| 헤더: | #include <qshader.h> |
| 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의 source는 SpirvShader로, sourceVersion 는 100으로 설정됩니다. sourceVariant 의 기본값은 StandardShader입니다.
참고: 이것은 호환성이 제한적으로 보장되는 RHI API입니다. 자세한 내용은 QShader 을 참조하십시오.
멤버 함수 문서
[constexpr noexcept default] 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 ` 객체 lhs 와 rhs 의 값이 같으면 ` false `를 반환하고, 그렇지 않으면 ` true`를 반환합니다.
[noexcept] bool operator<(const QShaderKey &lhs, const QShaderKey &rhs)
lhs 이 rhs 보다 작으면 true를 반환합니다.
lhs 와 rhs 라는 두 키 간의 정렬 순서를 설정합니다.
[noexcept] bool operator==(const QShaderKey &lhs, const QShaderKey &rhs)
두 개의 ` QShaderKey ` 객체인 ` lhs `와 ` rhs `가 같을 경우 ` 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.