Adjusting the level of detail using Metal mesh shaders
Choose and render meshes with several levels of detail using object and mesh shaders.
Overview
Configure the sample code project
To run this sample, you need Xcode 14 or later, and a physical device that supports MTLGPUFamily.mac2 or 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.
See Also
Render workflows
Using Metal to draw a view’s contentsDrawing a triangle with Metal 4Selecting device objects for graphics renderingCustomizing render pass setupCreating a custom Metal viewCalculating primitive visibility using depth testingEncoding indirect command buffers on the CPUImplementing order-independent transparency with image blocksLoading textures and models using Metal fast resource loadingCreating a 3D application with hydra renderingCulling occluded geometry using the visibility result bufferImproving edge-rendering quality with multisample antialiasing (MSAA)Achieving smooth frame rates with a Metal display link