Qt3DRender::QDispatchCompute Class
class Qt3DRender::QDispatchComputeGPU上のコンピュートシェーダーにワークを発行するFrameGraphノード。詳細...
| ヘッダー: | #include <qdispatchcompute.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | DispatchCompute |
| 継承元: | Qt3DRender::QFrameGraphNode |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- workGroupX : int
- workGroupY : int
- workGroupZ : int
パブリック関数
| QDispatchCompute(Qt3DCore::QNode *parent = nullptr) | |
| int | workGroupX() const |
| int | workGroupY() const |
| int | workGroupZ() const |
パブリックスロット
| void | setWorkGroupX(int workGroupX) |
| void | setWorkGroupY(int workGroupY) |
| void | setWorkGroupZ(int workGroupZ) |
シグナル
| void | workGroupXChanged() |
| void | workGroupYChanged() |
| void | workGroupZChanged() |
詳細な説明
Qt3DRender::QDispatchCompute を使用すると、GPU 上でコンピュートシェーダーを実行するためのワークを発行できます。workGroupX 、workGroupY 、workGroupZ プロパティは、コンピュートシェーダーの呼び出しにおけるワークグループのサイズを指定します。QComputeCommand コンポーネントをエンティティに追加することで、Qt3D に、コンピュート呼び出しのためにエンティティからマテリアルとジオメトリを選択するよう指示する必要があります。 シェーダー呼び出しのワークグループサイズは、QDispatchComputeおよびQComputeCommand で指定されたワークグループサイズの最大値となります。
プロパティのドキュメント
workGroupX : int
Xワークグループを指定します。
アクセス機能:
| int | workGroupX() const |
| void | setWorkGroupX(int workGroupX) |
通知信号:
| void | workGroupXChanged() |
workGroupY : int
Y ワークグループを指定します。
アクセス機能:
| int | workGroupY() const |
| void | setWorkGroupY(int workGroupY) |
通知信号:
| void | workGroupYChanged() |
workGroupZ : int
Zワークグループを指定します。
アクセス機能:
| int | workGroupZ() const |
| void | setWorkGroupZ(int workGroupZ) |
通知信号:
| void | workGroupZChanged() |
メンバー関数のドキュメント
[explicit] QDispatchCompute::QDispatchCompute(Qt3DCore::QNode *parent = nullptr)
このコンストラクタは、指定されたparent を用いてインスタンスを作成します。
© 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.