metal-graphics - Metal GPU programming reference
Provides Swift and Metal patterns for compute and render pipelines, buffers, textures, IOSurface, dispatch, ring buffers, shaders, and frame pacing.
Tags
Updated: 2026-10-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Set up Metal devices
- Create command queues
- Build compute pipelines
- Build render pipelines
- Manage Metal buffers
- Implement ring buffers
- Create GPU textures
- Share IOSurface textures
- Encode GPU work
- Handle command completion
Inputs
- Metal programming task
- Shader function names
- Pipeline parameters
- Buffer data
- Texture parameters
- IOSurface resource
Outputs
- Swift Metal code
- Compute pipeline configuration
- Render pipeline configuration
- Buffer management code
- Texture management code
- GPU command encoding
Requirements
- Swift environment
- Metal framework
- Metal-capable device
- IOSurface framework for IOSurface integration
