The floor now also requires what the translator's shaders and the runtime's
core need of every device:
- shaderInt16, shaderInt8, storageBuffer16BitAccess (Vulkan 1.1 features,
now read and enabled through Features::vulkan11), storageBuffer8BitAccess,
scalarBlockLayout, vulkanMemoryModel and vulkanMemoryModelDeviceScope. The
translator emits 8- and 16-bit access only in storage and physical storage
buffers in practice (uniform views are u32 or uvec4, push fields are 32- or
64-bit), so the uniform and push-constant 8/16-bit features stay out; it
does use device scope.
- timestampComputeAndGraphics, and timestampValidBits of at least 36 on the
first queue family with graphics and compute, which Capabilities names
(queue_family). A device with no such family is Missing::QueueFamily.
- a host-visible, host-coherent, host-cached memory type (Shared storage)
and a device-local, host-visible, host-coherent one (the parameter ring),
each usable by a buffer of BUFFER_USAGE: every Vulkan 1.3 buffer usage plus
device addresses. Vulkan answers buffer memory types only for a created
device, so check() finds a type with each set of flags and carries the
memory properties, and memory_types(device, &capabilities) chooses the
first usable type of each with vkGetDeviceBufferMemoryRequirements.
Missing::MemoryType names the flags.
Each shortfall is named in BelowFloor, with a unit case; the README's Floor
section states every item and tests::floor holds it to the code. The device
test now also creates each device with the floor's features and extensions
and chooses its memory types on it.
CI's lavapipe step (ci.yml and scripts/linux-gate-ci) runs the rt crate's
device tests too. refusal_surface.py reads metal2vulkan-rt and writes the
floor's Missing as section 10 of docs/REFUSALS.md; signatures.py pins
metal2vulkan-rt's public surface in api_signatures.tsv.
Verified: see the lane report (compile job, device legs on every lab GPU,
lavapipe and the Windows UHD 630).
The nightly's rustfmt wraps ir_id!(TypeId, "t") one argument per line, so the signature
script, which reads a macro call's members line by line, derived `TypeId,` where the table
holds `TypeId, "t"`, and api_signatures failed with nothing public changed. A member line
that is only an identifier and a comma now takes the literal on the next line with it, which
reads the wrapped call as the unwrapped one did; a member with more on its line (Degradation's
rows, whose prose follows on its own line) is read as before.
Verified: signatures.py --check passes with the committed table unchanged, on this tree and on
bc127dbec3's pre-nightly sources; metal2vulkan's api_signatures test passes on the nightly.
The owner asked for a nightly toolchain, -Zthreads, kache 2.0 with its incremental cache, and
Rust's incremental compilation on.
- rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), dated so every
machine runs one rustc, clippy and rustfmt. The published crates keep rust-version 1.98, which
this build no longer checks by itself (clippy's incompatible_msrv still flags newer std items).
- .cargo/config.toml passes -Zthreads=0 (a thread per core) through Cargo's profile rustflags,
which add to RUSTFLAGS instead of being replaced by it, so `--cfg m2v_gpu` lanes and CI's
-Dwarnings keep it.
- scripts/rustc-wrapper hands each compile to kache where kache is on PATH outside CI, and to
rustc otherwise; `RUSTC_WRAPPER=` (empty) builds without it.
- CARGO_INCREMENTAL=0 is gone from scripts/device-lane, AGENTS.md and CONTRIBUTING.md.
- CI installs the toolchain the file names; both Dockerfiles take the same nightly.
What the nightly asked of the code:
- Its standard library containers take more trait-solver levels (Box -> BoxRaw, RawVec ->
PhantomData), so proving a RenderCommandEncoder `Send` from a program's crate ran past the
default recursion limit (tests/consumer_auto_traits.rs failed, a future-incompat lint that will
become an error). The encoder now holds its own lowering in `OwnLowering`, whose `Send` impl is
written out over a compile-time proof that `RenderLowering` is `Send`, as `LoweringSlot` already
was. The runtime crate's own proofs need recursion_limit 256.
- New clippy lints: needless_range_loop, single_element_loop, new_instead_of_clear (a false
positive on a moved-from Vec: the part's segments are now taken explicitly),
needless_borrows_for_generic_args, redundant_closure, unnecessary_lazy_evaluations,
manual_range_patterns; AtomicU64::fetch_update is deprecated for try_update (present in 1.98).
- Cargo warns that `homepage` equals `repository`: homepage removed from the manifests.
- nightly rustfmt formats ir_id! invocations one argument per line.
Verified on the M3 Max: `cargo clippy --workspace --all-targets --all-features -- -D warnings`
clean on the nightly; `cargo build -v` shows -Zthreads on every rustc invocation and
scripts/rustc-wrapper in front of each.
The steps this packet landed as, in order:
- Pin the published crates' public surface by signature
Content: the tree of `development` at e46d17fe41, unchanged.