Version: 2020.2

SystemInfo.maxComputeWorkGroupSize

切换到手册
public static int maxComputeWorkGroupSize ;

描述

单个本地工作组中可以分发到计算着色器的最大调用总数(只读)。

SystemInfo.maxComputeWorkgroupSizeX、SystemInfo.maxComputeWorkgroupSizeY 和 SystemInfo.maxComputeWorkgroupSizeZ 的乘积不能在当前设备上超过此数字。 请注意,这是理论最大值。实际限制取决于着色器复杂性,因此可能较低。

另请参阅:SystemInfo.maxComputeWorkGroupSizeX SystemInfo.maxComputeWorkGroupSizeY SystemInfo.maxComputeWorkGroupSizeZ