P0.2: draw a colored quad on the iOS Simulator, driven by sx

Prove the render path end-to-end: bring up UIKit + Metal (already
scaffolded), clear to a solid blue, and draw one centered orange quad via
the GPU protocol's clear+quad path — an MSL pass-through pipeline plus a
6-vertex (2-triangle) NDC buffer, created lazily once the MTLDevice exists.

Geometry is NDC [-0.5, 0.5]² so the quad is the central 50%x50% of the
drawable regardless of device resolution, keeping the screenshot golden
unambiguous. Background (0.10, 0.20, 0.55), quad (1.0, 0.6, 0.0).

goldens/p0_quad.png is the first screenshot golden, captured from the
booted iOS 26.0 simulator after install + launch.
This commit is contained in:
swipelab
2026-06-04 18:21:35 +03:00
parent 888814b9ec
commit df6cb2161d
2 changed files with 71 additions and 3 deletions

BIN
goldens/p0_quad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB