Qt3DRender::QDispatchCompute Class
class Qt3DRender::QDispatchComputeFrameGraph nodo para emitir el trabajo para el sombreador de cálculo en la GPU. Más...
| Cabecera: | #include <QDispatchCompute> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | DispatchCompute |
| Hereda: | Qt3DRender::QFrameGraphNode |
| Status: | Obsoleto |
Propiedades
- workGroupX : int
- workGroupY : int
- workGroupZ : int
Funciones públicas
| QDispatchCompute(Qt3DCore::QNode *parent = nullptr) | |
| int | workGroupX() const |
| int | workGroupY() const |
| int | workGroupZ() const |
Ranuras públicas
| void | setWorkGroupX(int workGroupX) |
| void | setWorkGroupY(int workGroupY) |
| void | setWorkGroupZ(int workGroupZ) |
Señales
| void | workGroupXChanged() |
| void | workGroupYChanged() |
| void | workGroupZChanged() |
Descripción detallada
Un Qt3DRender::QDispatchCompute permite emitir trabajo para que el compute shader se ejecute en la GPU. Las propiedades workGroupX, workGroupY y workGroupZ especifican los tamaños de los grupos de trabajo para la invocación del sombreador de cálculo. Los componentes QComputeCommand deben añadirse a las entidades para indicar a Qt3D que seleccione los materiales y la geometría de las entidades para la invocación del sombreador de cálculo. El tamaño del grupo de trabajo para la invocación del shader será el máximo de los tamaños de grupo de trabajo especificados en QDispatchCompute y QComputeCommand.
Documentación de propiedades
workGroupX : int
Especifica el grupo de trabajo X.
Funciones de acceso:
| int | workGroupX() const |
| void | setWorkGroupX(int workGroupX) |
Señal del notificador:
| void | workGroupXChanged() |
workGroupY : int
Especifica el grupo de trabajo Y.
Funciones de acceso:
| int | workGroupY() const |
| void | setWorkGroupY(int workGroupY) |
Señal de aviso:
| void | workGroupYChanged() |
workGroupZ : int
Especifica el grupo de trabajo Z.
Funciones de acceso:
| int | workGroupZ() const |
| void | setWorkGroupZ(int workGroupZ) |
Señal de notificador:
| void | workGroupZChanged() |
Documentación de la función miembro
[explicit] QDispatchCompute::QDispatchCompute(Qt3DCore::QNode *parent = nullptr)
El constructor crea una instancia con la dirección parent especificada.
© 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.