mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
The section 12 audit of #214 found three gaps: no level narrower than a block row (Metal's zero-stride single-row upload) or of 1x1, no checks for zero extents or oversized and block-count-mismatched payloads, and a missing BC capability surfaced the same way as an implementation fault. Adds a 5x3 and 1x1 GPU test with hand-derived anchors, the extra upload rejections, and MetalError::is_capability_unavailable; the GPU tests now print CAPABILITY UNAVAILABLE or IMPLEMENTATION FAILURE. Rounding the texture to whole blocks, accepting oversized payloads, or a device without BC support each makes the tests fail with the matching message. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>