Version: 2021.1

SystemInfo.maxComputeWorkGroupSize

切换到手册
public static int maxComputeWorkGroupSize ;

描述

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

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

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961