QRhiComputePipeline Class
パイプライン状態リソースを計算する。詳細...
ヘッダ | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
以来: | Qt 6.6 |
継承: | QRhiResource |
パブリックな型
パブリック関数
QRhiComputePipeline::Flags | flags() const |
void | setFlags(QRhiComputePipeline::Flags f) |
void | setShaderResourceBindings(QRhiShaderResourceBindings *srb) |
void | setShaderStage(const QRhiShaderStage &stage) |
QRhiShaderResourceBindings * | shaderResourceBindings() const |
QRhiShaderStage | shaderStage() const |
再実装されたパブリック関数
virtual QRhiResource::Type | resourceType() const override |
詳細説明
注意: シェーダー・リソース・バインディングの設定は必須です。参照されるQRhiShaderResourceBindings は、create() が呼び出されるまでに既に created() が呼び出されていなければならない。
注: シェーダーの設定は必須です。
注: これは互換性保証に制限のある RHI API である。詳細はQRhi を参照。
メンバ型ドキュメント
enum QRhiComputePipeline::Flag
flags QRhiComputePipeline::Flags
パイプラインオプションを記述するためのフラグ値。
定数 | 値 | 説明 |
---|---|---|
QRhiComputePipeline::CompileShadersWithDebugInfo | 1 << 0 | 該当する場合、デバッグ情報を有効にしてシェーダーをコンパイルすることを要求します。詳細はQRhiGraphicsPipeline::CompileShadersWithDebugInfo を参照してください。 |
Flags 型はQFlags<Flag> の typedef です。Flags 値の OR の組み合わせを格納します。
メンバー関数ドキュメント
QRhiComputePipeline::Flags QRhiComputePipeline::flags() const
現在設定されているフラグを返す。
setFlags()も参照 。
[override virtual]
QRhiResource::Type QRhiComputePipeline::resourceType() const
再実装:QRhiResource::resourceType() const.
リソース型を返します。
void QRhiComputePipeline::setFlags(QRhiComputePipeline::Flags f)
フラグを設定するf 。
flags()も参照 。
void QRhiComputePipeline::setShaderResourceBindings(QRhiShaderResourceBindings *srb)
リ ソ ース バ イ ンデ ィ ン グの レ イ ア ウ ト を記述 し たsrb と 、 リ ソ ース (QRhiBuffer,QRhiTexture )そのものを関連付けます。後者はオプションです。グラフィックスパイプラインと同様に、ここで渡されるsrb は、ディスパッチコールを記録する前にsetShaderResources() を介してバインドされた別のlayout-compatible QRhiShaderResourceBindings がある限り、実際のバッファまたはテクスチャオブジェクトを指定しないまま (nullptr
) にすることができます。
shaderResourceBindings()も参照してください 。
void QRhiComputePipeline::setShaderStage(const QRhiShaderStage &stage)
使用するシェーダーを設定します。stage はcompute stage のみを参照できます。
shaderStage()も参照 。
QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const
現在関連付けられているQRhiShaderResourceBindings オブジェクトを返す。
setShaderResourceBindings()も参照 。
QRhiShaderStage QRhiComputePipeline::shaderStage() const
現在設定されているシェーダーを返します。
setShaderStage()も参照してください 。
© 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.