From 46a9a57522e27dbd0577185a7f971ca08a2b5ef7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 02:05:42 -0800 Subject: [PATCH] Docs: the runtime binds through no stage table; the validation executor sets its buffer ranges docs/API.md section 5 said of StageTable::buffer_ranges "The runtime sets it on every table it reads." The runtime builds no StageTable and reads no BindState: crates/metal2vulkan-runtime names no StageTable, BindState, BufferRanges or buffer_ranges, and of the binder it takes only alpha_test_code, SamplerDescriptor and AstcDecode. The tables that set it are the validation executor's: every table its candidate engine builds for a compute, render or mesh case passes through candidate::engine::lengths_classed with BufferRanges::of its profile's limits. The sentence now says so. Verified: grep over crates/metal2vulkan-runtime/src for those four names (no hit) and for metal2vulkan::bind (the three items above); the validation builders read at candidate/engine.rs, engine/graphics.rs and engine/mesh.rs, the one other StageTable there (engine/variants.rs) inside a #[test]. Docs only. --- docs/API.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 085aeb9df..c4289b8e9 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1199,7 +1199,8 @@ for dependency in &pipeline.dependencies { apart only the classes that limit tells apart (`BufferRanges::length_class`: a class rounded up to the greatest one that fits the same limit), so commands over buffers of many sizes keep one shape and one plan: on a device whose limit is 4 GiB, every buffer below 4 GiB. The default - tells every class apart. The runtime sets it on every table it reads. + tells every class apart. The runtime binds through no stage table; the validation executor sets + it on every table it builds, from its profile's limits. - A two-plane YCbCr texture whose planes a function may read in place states them in its facts (`TextureFacts::ycbcr_in_place`, a `YCbCrInPlace` of its planes). A slot whose function only samples it (nearest or linear, no comparison, anisotropy or `min_lod_clamp`), gathers it or reads its size (`RuntimeFact::YCbCrInPlace`) takes the