QShaderCode Class
셰이더의 소스 또는 바이너리 코드와 추가 메타데이터가 포함되어 있습니다. 더 보기...
헤더: | #include <QShaderCode> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
이후: | Qt 6.6 |
공용 함수
QShaderCode() | |
QShaderCode(const QByteArray &code, const QByteArray &entry = QByteArray()) | |
QByteArray | entryPoint() const |
void | setEntryPoint(const QByteArray &entry) |
void | setShader(const QByteArray &code) |
QByteArray | shader() const |
관련 비회원
size_t | qHash(const QShaderCode &key, size_t seed = 0) |
bool | operator!=(const QShaderCode &lhs, const QShaderCode &rhs) |
bool | operator==(const QShaderCode &lhs, const QShaderCode &rhs) |
상세 설명
QShader 에서 QShaderCode 인스턴스를 검색한 후 shader()가 비어 있으면 요청된 키에 대한 셰이더 코드를 찾지 못했음을 나타냅니다.
참고: 이 함수는 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QShader 을 참조하세요.
멤버 함수 문서
[constexpr noexcept]
QShaderCode::QShaderCode()
QShaderCode::QShaderCode(const QByteArray &code, const QByteArray &entry = QByteArray())
지정된 셰이더 소스 code 및 entry 포인트 이름으로 새 QShaderCode를 생성합니다.
QByteArray QShaderCode::entryPoint() const
진입점 이름을 반환합니다.
setEntryPoint()도 참조하세요 .
void QShaderCode::setEntryPoint(const QByteArray &entry)
entry 포인트 이름을 설정합니다.
entryPoint()도 참조하세요 .
void QShaderCode::setShader(const QByteArray &code)
셰이더 소스 또는 바이트 code 를 설정합니다.
shader()도 참조하세요 .
QByteArray QShaderCode::shader() const
셰이더 소스 또는 바이트코드를 반환합니다.
setShader()도 참조하세요 .
관련 비회원
[noexcept]
size_t qHash(const QShaderCode &key, size_t seed = 0)
seed 을 사용하여 key 에 대한 해시값을 반환합니다.
[noexcept]
bool operator!=(const QShaderCode &lhs, const QShaderCode &rhs)
두 개의 QShaderCode 객체 lhs 와 rhs 의 값이 같으면 false
를 반환하고, 그렇지 않으면 true
를 반환합니다.
[noexcept]
bool operator==(const QShaderCode &lhs, const QShaderCode &rhs)
두 개의 QShaderCode 객체 lhs 와 rhs 가 같으면 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.