Fast resource loading (MTLIOCommandQueue and its file handles) was the last
of Apple2's pieces the lane lacked: the device refused every IO creator.
Metal's own IO queue and raw and compressed file handles work over any
device they are given, through its public command queue, shared event and
buffer members. On the M3 Max, Metal's queue over Metal's device loads
buffers, process memory and textures exactly as the device's own queue
does. So the device now makes them over itself, and no wire is needed.
Before opening a file, the device checks its URL as Metal's does:
- a URL that is not a file's is MTLIOErrorDomain 1;
- a missing file is the reachability error, NSCocoaErrorDomain 260.
Every other answer is the handle's own. Where the guest's Metal lacks a
class, its creator is refused as before.
With IO queues in WIRED, the lane now answers Apple1 and Apple2 where the
platform does, with iOS_GPUFamily1 and 2's feature sets. Apple3 still
waits on indirect command buffers. Guests see these family answers
change.
io_probe checks the IO answers against Metal's; it prints IO OK on the
M3 Max.