QRhiComputePipeline Class
パイプラインの状態リソースを計算します。詳細...
| ヘッダー: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) 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 |
詳細な説明
注: シェーダーリソースのバインディングを設定することは 必須です。create() が呼び出される時点で、参照先のQRhiShaderResourceBindings に対しては、すでに create() が呼び出されている必要があります。
注: シェーダーの設定は 必須です。
注:これは 互換性の保証が限定的な RHI API です。詳細については、QRhi を参照してください。
メンバ型のドキュメント
enum QRhiComputePipeline::Flag
flags QRhiComputePipeline::Flags
パイプラインのオプションを記述するためのフラグ値。
| 定数 | 値 | 説明 |
|---|---|---|
QRhiComputePipeline::CompileShadersWithDebugInfo | 1 << 0 | 該当する場合、デバッグ情報を有効にしてシェーダーをコンパイルするよう要求します。詳細については、QRhiGraphicsPipeline::CompileShadersWithDebugInfo を参照してください。 |
Flags 型は、QFlags<Flag> の typedef です。Flag 値の論理和(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)
リソースバインディングのレイアウトおよびリソース(QRhiBuffer 、QRhiTexture )自体を記述する `srb ` と関連付けられます。後者はオプションです。グラフィックスパイプラインと同様に、ここで渡される `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()も参照してください 。
© 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.