refactor(ffi-linkage): Phase 6.5 — migrate gpu/ #foreign→extern; library/ now #foreign-free
Final Phase 6 batch: gpu/gles3.sx (eglGetProcAddress + 1 comment) and gpu/metal.sx (MTLCreateSystemDefaultDevice), bare fn markers → 'extern'. Verified byte-identical 'sx ir' on importers 1610 (gles3 via uikit GLView) + 1606 (metal). **PHASE 6 COMPLETE — zero #foreign remains anywhere under library/.** Empty snapshot diff; suite green (647 corpus / 444 unit, 0 failed). Next: Phase 7 (examples + issues).
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
// MTLCreateSystemDefaultDevice lives in the Metal framework as a plain C
|
||||
// function. Returns id<MTLDevice> retained +1; we leak it for now since
|
||||
// the device lives for the whole process.
|
||||
MTLCreateSystemDefaultDevice :: () -> *void #foreign;
|
||||
MTLCreateSystemDefaultDevice :: () -> *void extern;
|
||||
|
||||
// Pixel formats.
|
||||
MTL_PIXEL_FORMAT_BGRA8_UNORM :u64: 80;
|
||||
|
||||
Reference in New Issue
Block a user