QDispatchCompute Class
class Qt3DRender::QDispatchComputeGPU上のコンピュートシェーダーのための作業を発行するFrameGraphノード。さらに...
ヘッダー | #include <QDispatchCompute> |
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 を持つインスタンスを作成します。
© 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.