本页内容

DispatchCompute QML Type

FrameGraph 节点,用于向 GPU 上的计算着色器分发任务。更多...

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

FrameGraphNode

Status: Deprecated

此类型已弃用。我们强烈建议在新代码中避免使用它。

属性

详细说明

DispatchCompute 允许向计算着色器分发工作任务,以便其在 GPU 上运行。workGroupX 、workGroupY 和workGroupZ 属性用于指定计算着色器调用的工作组大小。需要向实体添加ComputeCommand 组件,以指示 Qt3D 从实体中选择材质和几何体用于计算调用。 着色器调用的工作组大小将为 DispatchCompute 和ComputeCommand 中指定的工作组大小的最大值。

属性文档

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.