<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "Xcode: 26.3.0 -"
  ],
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/adjusting-the-level-of-detail-using-metal-mesh-shaders",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Adjusting the level of detail using Metal mesh shaders"
}
-->

# Adjusting the level of detail using Metal mesh shaders

Choose and render meshes with several levels of detail using object and mesh shaders.

## Discussion> Note: This sample code project is associated with WWDC22 session [10162: Transform your geometry with Metal mesh shaders](https://developer.apple.com/wwdc22/10162/).

### Configure the sample code project

To run this sample, you need Xcode 14 or later, and a physical device that supports [`MTLGPUFamily.mac2`](/documentation/Metal/MTLGPUFamily/mac2) or [`MTLGPUFamily.apple7`](/documentation/Metal/MTLGPUFamily/apple7), such as:

- A Mac running macOS 13 or later
- An iOS device with an A15 chip or later running iOS 16 or later

This sample can only run on a physical device because it uses mesh shader features, which Simulator doesn’t support.

---

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)