DispatchCompute QML Type

FrameGraph 节点,用于为 GPU 上的计算着色器发布工作。更多

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

FrameGraphNode

Status: Deprecated

属性

详细说明

DispatchCompute 允许为在 GPU 上运行的计算着色器发布工作。workGroupXworkGroupYworkGroupZ 属性指定了调用计算着色器的工作组大小。ComputeCommand 组件需要添加到实体中,以指示 Qt3D 从实体中选择材料和几何体进行计算调用。着色器调用的工作组大小将是 DispatchCompute 和ComputeCommand 中指定的工作组大小的最大值。

属性文档

workGroupX : int

指定 X 工作组大小。


workGroupY : int

指定 Y 工作组大小。


workGroupZ : int

指定 Z 工作组大小。


© 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.