我学习Metal
现在,并试图了解以下行:为line 1
金属 - 线程和线程组
let threadGroupCount = MTLSizeMake(8, 8, 1) ///line 1
let threadGroups = MTLSizeMake(drawable.texture.width/threadGroupCount.width, drawable.texture.height/threadGroupCount.height, 1) ///line 2
command_encoder.dispatchThreadgroups(threadGroups, threadsPerThreadgroup: threadGroupCount) ///line 3
,什么是3点的整数代表什么?我的猜测是分配要在过程中使用的线程数量,但哪个是哪个?
line 1
和'line 2'之间有什么不同?我的猜测再次是线程和线程组之间的差异。但我不确定什么是根本区别,什么时候使用什么。