10 Commits
Author SHA1 Message Date
osyandClaude Fable 5 b601860c2e native: target iOS, tvOS and visionOS
The native build now cross-compiles for the headless Apple platforms
(iOS/tvOS/visionOS and their simulators), keyed off meson's
host_machine.subsystem(), which every Apple cross file must now declare.
Everything resting on AppKit or the CoreGraphics display list is
compiled out: no swapchains, monitors or adapters, so displays report a
generic SDR profile and the display-setting store is inert.  MetalFX is
linked only where the SDK ships it (no simulator does; visionOS has no
temporal scaler), and the airconv CLI is built only where it can run.

The AIR a shader carries has to name the platform it will be loaded on,
so the triple, air.version, SDK-version flag and the metallib container
header (platform/OS fields as emitted by Apple's tools per -sdk) all
follow the build target now instead of hardcoding macOS; the VERS tags
are derived from the module's own air.version metadata.  The bitcode is
also downgraded the way Apple's tools do it: the optimization pipeline
infers attributes (mustprogress, nofree, nosync, willreturn) that older
OSes' AIR readers predate, and an unknown attribute is a fatal
"LLVM ERROR" inside MTLCompilerService -- observed on iOS 16.3, and
macOS 13's reader is of the same vintage.

Runtime fixes for the same floor: MTLCopyAllDevices only reached the
other platforms in iOS 18 (weak-linked, so calling it earlier jumps to
NULL) and is replaced by the one-device array it would have returned;
supportsBCTextureCompression is 16.4+ and reports false before that;
the managed storage mode degrades to shared where only shared exists;
and the shader cache falls back to NSSearchPathForDirectoriesInDomains
where the app sandbox denies the dirhelper lookup behind confstr.

Verified on an iPad Pro (M2, iPadOS 16.3.1): the full offscreen D3D11
suite passes with rendered images bit-identical to macOS.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-02 14:54:03 -07:00
Feifan He aa51ea503a docs: move instructions on README to dedicated docs
And remove some broken scripts.
2026-03-23 16:48:53 +08:00
Feifan He 23f95506c7 docs: update outdated information 2025-10-15 22:04:08 +08:00
3Shain cdbe22d753 feat: display compatibility issue flag 2025-01-21 21:14:35 +08:00
3Shain 88a89c331b docs: update README [no ci] 2024-09-28 14:09:28 +08:00
3Shain 57cc2f06fb docs: remove outdated contents 2024-08-11 17:41:14 +08:00
3Shain 0b77ff7f81 feat: d3d11 milestone 0 (#6)
we eventually make NieR: Automata work, with some notable missing parts: 1. occlusion query, we report all 0 for now 2. uav counter, which is used occasionally
2024-06-21 01:55:03 +01:00
3Shain 3af4d47500 feat(airconv): basic transpilation framework
!NOTE: a lot of hardcoded logics need to be properly handled
2024-02-26 03:26:24 +00:00
3Shain dd33cfed57 docs: write up something 2024-02-20 03:30:34 +00:00
3Shain 485aeb2f11 chore: initial commit 2023-11-09 00:56:18 +00:00