A Boolean that indicates whether the threadgroup size must always be a multiple of the thread execution width.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
The default value is
false. Set this to
true if you can guarantee that the compute function will always be dispatched with a threadgroup size that is a multiple of the thread execution width. Setting this flag to
true may improve performance.
When you use the resulting pipeline state object to encode commands, you get the thread execution width from its
thread property. The results are undefined if this value is set to
true and a dispatch call is made where the threadgroup size is not a multiple of the thread execution width.