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)
key のハッシュ値を返す。計算のシードにはseed を使用する。
[noexcept]
bool operator!=(const QShaderCode &lhs, const QShaderCode &rhs)
2つのQShaderCode オブジェクトlhs とrhs の値が等しい場合はfalse
を返し、そうでない場合はtrue
を返す。
[noexcept]
bool operator==(const QShaderCode &lhs, const QShaderCode &rhs)
2つの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.