From 547ca6f36bc6fd3dbd38ec44f13fc6c1bc0c9de9 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 5 Nov 2026 18:39:43 -0800 Subject: [PATCH] Say which pipelines read fewer argument-buffer samplers than the answer What: the max_argument_buffer_sampler_count docs now say fewer *can* be read, and where: a pipeline with smaller set-1 arrays, other live Vulkan samplers, other sampler-ID holders. Why: the earlier wording read as if each case always reads fewer. Verified: rustdoc at the branch tip (in the report). (cherry picked from commit ba88cf41c09ab400cf1a7e2f70de4d7e272636a8) --- crates/metal2vulkan-runtime/src/capabilities.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/capabilities.rs b/crates/metal2vulkan-runtime/src/capabilities.rs index f2fc1fd55..3b4f9085b 100644 --- a/crates/metal2vulkan-runtime/src/capabilities.rs +++ b/crates/metal2vulkan-runtime/src/capabilities.rs @@ -140,11 +140,12 @@ pub struct DeviceProperties { /// them refused (`Error::SamplerLimit`): the array's neutral sampler and a sampler of each /// state it holds are among them. /// - /// It is the most any pipeline reads: fewer are read where a pipeline's heap has more arrays - /// or its set 0 counts samplers (a smaller array), where other Vulkan samplers live (another - /// use's array, a slot's bind, a pipeline's constexpr samplers), or where other holders of - /// sampler IDs (the device's own sampler, a pipeline state's numbered samplers) hold IDs the - /// device's sampler tables reach, which are IDs 1 to 65535 under plain allocation. A state + /// It is the most any pipeline reads. Fewer can be: in a pipeline whose set-1 arrays are + /// smaller (its heap has more arrays of a kind, or its set 0 counts descriptors of them), where + /// other Vulkan samplers live (another use's array, a slot's bind, a pipeline's constexpr + /// samplers), and where other holders of sampler IDs (the device's own sampler, a pipeline + /// state's numbered samplers) hold IDs the device's sampler tables reach, IDs 1 to 65535 under + /// plain allocation. A state /// left out reads the neutral sampler through an argument buffer, announced /// (`Degradation::UnlistedArgumentSampler`). Every live state counts, with or without /// `supportArgumentBuffers`, since Metal reads one without it through an argument buffer too;