Studio Metal shader authoring (#28 Track C)

Merged
TE
2mo ago
+549-23

Implements issue #28 Track C — Shader authoring in Studio.

  • native focused Metal source editor opened from the persistent Studio inspector
  • shader speed editing plus explicit Compile / Apply flow
  • line/column compiler diagnostics mapped back to user source
  • transactional source updates that preserve the last valid rendered shader after failed edits
  • restrained Plasma, Noise / Grain, Star Field, Water / Ripple, CRT, and Voronoi templates
  • successful Apply uses the normal Studio document edit path, preserving Undo/Redo and recovery behavior
  • revision 21 package round-trip for shader source/speed with a shaders feature declaration; existing validation and budgets remain in force
  • custom uniforms remain a documented follow-up through the existing typed scene-control model
  • terminology/docs consistently describe runtime-compiled Metal source

Verification:

  • dedicated macOS verification passed Swift app build, full test.sh, and the real Metal wallpaper smoke
  • shader smoke compiled every built-in template, checked line diagnostics, verified an invalid edit leaves the last valid pixels rendered, and verified speed edits change output
  • PR CI passed app/saver build, settings smoke, and every unit suite (including shader package round-trip)

PR CI still reports failure in its final existing bundle-signature check: build/Idlesse.app: a sealed resource is missing or invalid. Current main at 8d7e9bf fails the same check in Build run #173 after its build/tests pass. This Track C change leaves signing/bundling untouched per scope.

No scripting engine, release/signing/notarization, or unrelated renderer work.