Metal neural rendering workflow
Skill gaelic-ghost/socket/plugins/game-dev-skills/skills/metal-neural-rendering-workflow
Plan and implement experimental Metal neural-rendering paths with MetalFX, Metal 4 machine-learning passes, Metal tensors, and Metal Performance Primitives. Use when Codex works on learned tone mapping, neural denoising, neural materials, inline tensor operations, MTL4MachineLearningCommandEncoder, or model inference scheduled beside rendering; preserve a conventional rendering fallback.From its SKILL.md
npx -y skills add gaelic-ghost/socket --skill metal-neural-rendering-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.3 KB, 583 tokens by cl100k_base, as published. Nobody here has run it
Metal Neural Rendering Workflow
Scope
Own a small, measurable learned rendering pass and its rendering integration. This skill is experimental and beta-sensitive where it depends on Metal 4.1-era API or hardware; it does not authorize replacing an established renderer with an unproven ML subsystem.
Read integration-levels.md before selecting a technology. Verify the exact SDK header, Metal feature-set support, and device availability before code changes.
Choose The Smallest Integration
- Use MetalFX when a supported scaler, frame interpolator, or denoiser already solves the visual problem.
- Use an ML command encoder when a pre-trained model must run as a scheduled Metal 4 pass beside existing render/compute work.
- Use inline tensor operations only for a compact shader-local operation whose data layout, precision, and GPU-family gate are explicit.
- Use Metal Performance Primitives or MPSGraph when a maintained primitive or graph fits better than custom shader math.
- Stop and ask for a design decision when the request requires training, model conversion, artifact distribution, or a persistent model-update system; those are separate product and architecture scopes.
Workflow
- State the visual defect, baseline technique, target metric, fallback, and representative scenes before choosing ML.
- Define model inputs/outputs, colorspace, precision, tensor layout, resource ownership, and synchronization with adjacent passes.
- Gate by OS, Metal version, GPU family, and hardware. Keep a conventional renderer path for unsupported devices.
- Validate numerical correctness against a deterministic reference before visual-quality tuning.
- Compare quality, frame time, memory, power/thermal behavior, and temporal stability against the baseline on target hardware.
- Keep model provenance, version, preprocessing, and fixed test inputs explicit so results remain reproducible.
Guardrails
- Do not claim neural acceleration on a device without feature-table and runtime evidence.
- Do not read back tensors merely for convenience on a per-frame path; make any CPU/GPU boundary explicit and measured.
- Do not conflate a Metal 4 ML pass with Core ML, a generic model-serving stack, or a training workflow.
Handoffs
metalfx-game-rendering-workflowwhen an off-the-shelf MetalFX effect fits.metal-game-rendering-workflowfor the surrounding render graph and presentation contract.xcode-game-profiling-workflowfor performance evidence.coreml-skillsormlx-skillsonly when those dedicated plugins ship and the work is model packaging, conversion, or broader on-device ML rather than renderer integration.
Output
Return the chosen integration level, feature gate and fallback, tensor/model contract, correctness fixture, measured comparison plan, and any broader architecture decision required.
What ships with it: 2 files
1.6 KB alongside SKILL.md
agents/
- openai.yaml241 B
references/
- integration-levels.md1.4 KB