이 페이지에서

QShaderCode Class

셰이더의 소스 코드 또는 바이너리 코드와 추가 메타데이터가 포함되어 있습니다. 더 보기...

헤더: #include <qshader.h>
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 default] 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 `를 반환합니다.

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