GetKernelThreadGroupSizes(int, out uint, out uint, out uint)
Get kernel thread group sizes.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetKernelThreadGroupSizes(int, uint, uint, uint)
public void GetKernelThreadGroupSizes(int kernelIndex, out uint x, out uint y, out uint z)
Parameters
Remarks
Work group size for each compute shader kernel is specified in the shader code itself (using "numthreads" HLSL attribute). Use this function to query it.