<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4MeshRenderPipelineDescriptor/meshThreadgroupSizeIsMultipleOfThreadExecutionWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTL4MeshRenderPipelineDescriptor(py)meshThreadgroupSizeIsMultipleOfThreadExecutionWidth"
  },
  "title" : "meshThreadgroupSizeIsMultipleOfThreadExecutionWidth"
}
-->

# meshThreadgroupSizeIsMultipleOfThreadExecutionWidth

Provides a guarantee to Metal regarding the number of threadgroup threads for the mesh stage of a pipeline you
create from this descriptor.

```
var meshThreadgroupSizeIsMultipleOfThreadExecutionWidth: Bool { get set }
```

## Discussion

If you set this property to <doc://com.apple.documentation/documentation/Swift/true>, you state to Metal that when
you use a mesh render pipeline you create from this descriptor, the number of threadgroup threads you dispatch for
the mesh stage is a multiple of its [`meshThreadExecutionWidth`](/documentation/Metal/MTLRenderPipelineState/meshThreadExecutionWidth). The compiler’s optimizer
can use this guarantee to generate more efficient code.

This property’s default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)