Qt3DRender::QDispatchCompute Class
class Qt3DRender::QDispatchComputeNodo FrameGraph per assegnare un'operazione allo shader di calcolo sulla GPU. Altro...
| Intestazione: | #include <qdispatchcompute.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | DispatchCompute |
| Eredita da: | Qt3DRender::QFrameGraphNode |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- workGroupX : int
- workGroupY : int
- workGroupZ : int
Funzioni pubbliche
| QDispatchCompute(Qt3DCore::QNode *parent = nullptr) | |
| int | workGroupX() const |
| int | workGroupY() const |
| int | workGroupZ() const |
Slot pubblici
| void | setWorkGroupX(int workGroupX) |
| void | setWorkGroupY(int workGroupY) |
| void | setWorkGroupZ(int workGroupZ) |
Segnali
| void | workGroupXChanged() |
| void | workGroupYChanged() |
| void | workGroupZChanged() |
Descrizione dettagliata
Un oggetto ` Qt3DRender::QDispatchCompute ` consente di assegnare un carico di lavoro affinché lo shader di calcolo venga eseguito sulla GPU. Le proprietà ` workGroupX`, ` workGroupY ` e ` workGroupZ ` specificano le dimensioni dei gruppi di lavoro per l'invocazione dello shader di calcolo. È necessario aggiungere componenti ` QComputeCommand ` alle entità per indicare a Qt3D di selezionare i materiali e la geometria dalle entità per l'invocazione dello shader di calcolo. Le dimensioni dei gruppi di lavoro per l’invocazione dello shader saranno pari al massimo tra le dimensioni dei gruppi di lavoro specificate in `QDispatchCompute` e ` QComputeCommand`.
Documentazione delle proprietà
workGroupX : int
Specifica il gruppo di lavoro X.
Funzioni di accesso:
| int | workGroupX() const |
| void | setWorkGroupX(int workGroupX) |
Segnale di notifica:
| void | workGroupXChanged() |
workGroupY : int
Specifica il gruppo di lavoro Y.
Funzioni di accesso:
| int | workGroupY() const |
| void | setWorkGroupY(int workGroupY) |
Segnale di notifica:
| void | workGroupYChanged() |
workGroupZ : int
Specifica il gruppo di lavoro Z.
Funzioni di accesso:
| int | workGroupZ() const |
| void | setWorkGroupZ(int workGroupZ) |
Segnale di notifica:
| void | workGroupZChanged() |
Documentazione delle funzioni dei membri
[explicit] QDispatchCompute::QDispatchCompute(Qt3DCore::QNode *parent = nullptr)
Il costruttore crea un'istanza con l'parent e specificata.
© 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.