このページでは

ComputeCommand QML Type

GPU上のコンピュートシェーダーに処理を指示するためのコンポーネント。詳細...

Import Statement: import Qt3D.Render 2.12
In C++: QComputeCommand
Inherits:

Component3D

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細な説明

ComputeCommand は、コンピュートシェーダーへの処理指示を発行するために使用されます。コンピュートシェーダーは、ComputeCommand が追加されたエンティティの「Material」コンポーネントで指定されます。workGroupX 、workGroupY 、およびworkGroupZ プロパティは、コンピュートシェーダーの呼び出しにおけるワークグループのサイズを指定します。実際にコマンドを発行するには、FrameGraph内にDispatchCompute ノードが存在している必要があります。コンピュートコマンドの実行挙動は、run typeプロパティで制御できます。

注: レンダリングポリシーが `RenderSettings.OnDemand` に設定されており、 実行タイプが `Continuous` に設定され、かつシーンに変更がない場合 、`ComputeCommand` は繰り返し呼び出されません。シーンに新しいフレームのレンダリングをトリガーする他の変更がない場合でも、`ComputeCommand` を繰り返し呼び出すには、レンダリングポリシーを `RenderSettings.Always` に設定する必要があります。

プロパティのドキュメント

runType : enumeration

コンピュートコマンドを毎フレーム実行するか、手動で実行するかを指定します。

定数説明
ComputeCommand.Continuous計算コマンドは毎フレーム実行されます。これがデフォルトの設定です。
ComputeCommand.ManualComputeCommand は指定されたフレーム数分実行された後、コンポーネントは自身を無効化します。

workGroupX : int

Xワークグループのサイズを指定します。

workGroupY : int

Yワークグループのサイズを指定します。

workGroupZ : int

Zワークグループのサイズを指定します。

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