Files
metal2vulkan/docs/REFUSALS.md
T
Anees Iqbal c034220175 Private memory past the 16 KiB floor lives in the runtime's arena, one slot an invocation; a dispatch past its budget splits
A kernel whose private arrays (indexed at run time) passed the translator's 16 KiB floor was
refused as Unsupported{PrivateMemory}. The app's 780M library holds 7 such kernels (19,792 to
34,736 bytes a thread), and the Iris walk refused one at 28,704. Metal holds that memory itself.
The runtime now holds it in device memory it owns.

Translator, under the identity domains only (the default domains' binder supplies no such
memory, so they refuse as before):
- memory::plan::private_memory: a kernel with no call stack whose private bytes pass the floor
  places every alloca it indexes at run time in its private arena, and marks the arena
  ArenaLayout::device. The arena then leaves the private bytes. The kernel's own bytes decide;
  no device fact does.
- Such an arena has no Private variable. Its words are PhysicalStorageBuffer words (Aligned 4)
  at the invocation's slot. The slot is PushField::PrivateArenaAddress (a u64) plus
  i * slot_bytes, with i = ((wz*ny + wy)*nx + wx)*n + LocalInvocationIndex in 32 bits. It is
  computed once in the entry block (dispatch::KernelDecl::arena_slot, Invariant::ArenaSlot).
  RuntimeFact::PrivateArena { slot_bytes } states the slot: the arena's bytes rounded up to 16.
- A tile kernel's arena past the floor stays refused (PrivateMemory). A slot past u32 is
  LimitExceeded(PrivateArenaBytes).

Runtime (crate::arena):
- The arena is one Private pool block, never zeroed: Metal's private memory is undefined until
  the thread writes it. The device keeps a Weak to the last block. Each command buffer that
  dispatches into a block keeps it (keep_block), and a dispatch that needs no more than a block
  still kept takes it again.
- A dispatch's slots take at most 1/16 of the largest DEVICE_LOCAL heap, capped at the longest
  block, or one threadgroup's slots where those are more. A dispatch past that budget runs in
  pieces of whole threadgroups through the existing split loop, each piece's DispatchRegion
  carrying its first threadgroup. There is one split form; vkCmdDispatchBase is not used.
- A barrier (the encoder's owed barrier, so it merges with a hazard barrier) comes before each
  arena piece, except the first piece in a block the dispatch took new. Dispatches of kernels
  without an arena take no new barrier.
- An indirect dispatch of an arena kernel is Gap::IndirectPrivateArena: its counts are the
  GPU's, so the runtime can neither size the arena nor split it.
- Metrics::private_arena_dispatches, private_arena_pieces and private_arena_blocks count the
  path, and private_arena_allocations counts the block takes.
- The budget a device test splits with is Core::arena_budget's test override (cfg(test) with
  m2v_gpu or m2v_cpu_icd), never a DeviceOptions field.

Docs: docs/API.md (the field, the fact, the slot formula), the runtime README (Compute
encoders: the arena, its budget, its order, the indirect gap), docs/REFUSALS.md (regenerated),
api_signatures.tsv (blessed).
SEMANTICS_VERSION 2244 -> 2245, ARTIFACT_FORMAT_VERSION 581 -> 582, RUNTIME_VERSION 2549 -> 2550.

Tests:
- engine_private_memory's
  a_kernel_past_the_floor_keeps_its_private_memory_in_the_runtimes_memory_under_identity:
  7176, 9216 and 51,200 words on the 780M's, the Iris Xe's and an RTX 50's profiles. Each compiles,
  passes L3, pushes the address, states the fact, holds 0 private bytes and records no note.
  The default domains refuse as before.
- rt private_arena's
  every_device_holds_private_memory_past_the_floor_in_its_arena_split_or_whole: 28,704, 36,864
  and 204,800 bytes a thread, 8 groups of 64, under the device's budget (1 piece) and a test
  budget (4 and 8 pieces). Every answer matches a CPU reference. It counts 2 arena dispatches,
  their pieces, and exactly 2*pieces - (blocks taken) barriers beyond a plain command buffer's.
  Four plain dispatches take the barriers one does.

The kernel interface declares the arena's slot (Interface::private_arena, the slot bytes of
RuntimeFact::PrivateArena); the compute test's interface sets it to None.
2026-11-20 22:37:06 -08:00

162 KiB

The refusal surface

Every refusal of something Metal accepts, read from the code: the construction sites of the typed refusals outside tests (scripts/refusal-surface/refusal_surface.py, which writes this file; edit its reach.tsv and the refusals' own doc comments, never the tables). Section 6 is the runtime's floor: a device below it is refused when the device is made, with every item it lacks named. The sections after it are the runtime's own typed refusals, one for each enum its Error carries, every row with its declared basis. Malformed input of no Metal call at all is misuse and is not listed. METAL-COVERAGE.md lists the Metal API the runtime has no counterpart for at all.

Columns:

  • What it blocks: the variant's doc comment, first sentence, and "not scheduled" where the doc says so.
  • Where: the device condition, from the constructor at its sites: NotImplemented and NotRepresentable refuse on every device; needs names the Vulkan feature, extension, property or limit a device lacks; a driver defect or deviation names the driver. A site that computes its capability says so.
  • Sites: how many construction sites, then the first two as file (function), with the count where one function builds more than one. "via a helper" counts the places that hand the feature to a function that builds the refusal; 0 is a variant nothing builds today.
  • Basis: where the belief that this input must be refused comes from. Derived from the construction site where the site says it (device, ours), declared as a last Basis: line in the refusal's own doc comment where the claim is about Metal itself, and - where neither says it yet:
    • metal-measured: Metal itself refuses the input, and a run of ours on a named device or release says so;
    • metal-documented: Metal itself refuses it, and Apple's own words say so: a quoted assertion, NSError or validation message, a header, or Apple's documentation;
    • metal-takes: measured: plain Metal takes this input, so the refusal reaches past Metal. An open defect, recorded here rather than left unsaid;
    • device: the mechanism is absent: from this Vulkan device, from its driver, or from every Vulkan device;
    • ours: this crate's own gap, cap or deadline, or the misuse of a runtime extension Metal has no counterpart for;
    • unknown: not established: the refusal stands, and why Metal is believed to refuse this has not been settled;
  • Reach (hand-kept, reach.tsv):
    • system: a guest's CoreAnimation, CoreImage or VideoToolbox plausibly reaches it;
    • app: a typical Metal app plausibly reaches it from public API;
    • rare: public API, but specialized: few apps reach it;
    • none: no public API path: malformed or non-Metal input, Apple-private calls, or a cap no valid program of ordinary size meets;
    • ?: not assessed yet. The floor (section 6) carries no reach mark, as it turns on the device whatever the program, and nor do the runtime's refusals after it, each an argument of a public call.

Totals

Kind Variants With a site Reach system Reach app Reach rare Reach none Unassessed
Translator and front-end refusals 135 120 8 33 73 21 0
Binder refusals at a device limit 9 9 0 1 7 1 0
Translation caps 14 14 0 0 7 7 0
Rate maps the compile layer does not compile 5 5 0 0 4 1 0
The translation deadline 1 1 0 0 0 1 0
Devices below the runtime's floor 8 8 0 0 0 0 0
The runtime's Refusal 76 76 0 0 0 0 0
The runtime's Limit 17 17 0 0 0 0 0
The runtime's Gap 31 31 0 0 0 0 0

Totals by basis

Kind metal-measured metal-documented metal-takes device ours unknown delegated -
Translator and front-end refusals 0 0 0 42 57 0 0 36
Binder refusals at a device limit 0 0 0 9 0 0 0 0
Translation caps 0 0 0 0 14 0 0 0
Rate maps the compile layer does not compile 0 0 0 0 0 0 0 5
The translation deadline 0 0 0 0 1 0 0 0
Devices below the runtime's floor 0 0 0 8 0 0 0 0
The runtime's Refusal 21 20 0 0 35 0 0 0
The runtime's Limit 0 0 0 13 4 0 0 0
The runtime's Gap 0 0 0 2 29 0 0 0

1. Translator and front-end refusals (Unsupported: a Feature and its Needs)

Variant What it blocks Where Basis Sites Reach
LibraryKind A metallib of a kind the container does not read - - via a helper: 2: crates/metal2vulkan-air/src/container/mtlb.rs (parse), crates/metal2vulkan/src/error/mod.rs (from) none: a metallib file type Apple's toolchain is not seen to write
Stage A function stage the model does not cover - - via a helper: 2: crates/metal2vulkan-air/src/abi/check.rs (unsupported_stage), crates/metal2vulkan/src/error/mod.rs (from) none: a stage outside AIR's public stages
AddressSpace An LLVM address space the typed model does not define (it defines AIR's thread 0 through threadgroup_imageblock 4, object_data 6, the mesh... every device (not implemented) ours 2: crates/metal2vulkan-air/src/ir/types.rs (from_raw), crates/metal2vulkan/src/memory/plan.rs (reprs) none: Apple's AGX library address spaces
ModuleRecord A module-level record outside the accepted subset (alias, ifunc, comdat, …) - - via a helper: 4: crates/metal2vulkan-air/src/bitcode/module.rs (function), crates/metal2vulkan-air/src/bitcode/module.rs (global) (+2) none: LLVM constructs AIR does not emit
Instruction An instruction record outside the closed instruction set - - via a helper: 11: crates/metal2vulkan-air/src/bitcode/function.rs (call, 2 sites), crates/metal2vulkan-air/src/bitcode/function.rs (record, 8 sites) (+1) none: LLVM instructions AIR does not emit
Type A type outside the typed model - - via a helper: 4: crates/metal2vulkan-air/src/bitcode/types.rs (decode, 3 sites), crates/metal2vulkan/src/error/mod.rs (from) none: LLVM types AIR does not emit
CallingConvention A calling convention other than AIR's - - via a helper: 3: crates/metal2vulkan-air/src/bitcode/function.rs (call), crates/metal2vulkan-air/src/bitcode/module.rs (function) (+1) none: LLVM calling conventions AIR does not use
UnknownIntrinsic An intrinsic outside the closed set every device (not implemented) ours 2: crates/metal2vulkan-air/src/error.rs (from), crates/metal2vulkan/src/lower/select.rs (route) rare: AIR from a newer compiler (macOS 27 AIR 2.9)
AgxUnmodeled An AGX intrinsic whose semantics are not modeled every device (not implemented) ours 1: crates/metal2vulkan/src/lower/simd/agx.rs (unmodeled) rare: Apple's own libraries' AGX intrinsics
StaticInitializer A static initializer that cannot be evaluated every device (not implemented) ours 1: crates/metal2vulkan-air/src/error.rs (from) none: LLVM initializers AIR does not emit
Recursion Recursion (one variant) every device (not implemented) ours 4: crates/metal2vulkan-air/src/canon/mod.rs (recursion, 2 sites), crates/metal2vulkan-air/src/canon/recursion.rs (dynamic_alloca) (+1) rare: recursion through visible functions
DynamicCall Indirect calls, function pointers, visible/intersection function tables (one variant) every device (no Vulkan mechanism); every device (not implemented) ours 9: crates/metal2vulkan-air/src/canon/devirt.rs (record), crates/metal2vulkan-air/src/canon/devirt.rs (site) (+5) rare: function pointers and function tables
InlineAsm A call to inline assembly (asm) that an entry reaches, other than the empty asm sideeffect "", "" decode drops every device (not implemented) ours 1: crates/metal2vulkan-air/src/canon/mod.rs (post_check) none: inline assembly other than the empty asm("") decode drops, which MSL refuses to compile
Linking Linkage signatures / stitching / dynamic libraries every device (not implemented) ours 3: crates/metal2vulkan-air/src/canon/link.rs (not_implemented), crates/metal2vulkan-air/src/canon/mod.rs (post_check) (+1) rare: dynamic libraries and linked functions
SimdWidth Simdgroup width 32 is not achievable for this usage, stage, and device devices without a capability the site computes (subgroup::width_needs(cx.stage, model.stage(cx.stage))); devices without a capability the site computes (width_needs(stage, st)) device 2: crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier), crates/metal2vulkan/src/lower/simd/mod.rs (finish) app: simdgroup functions on a device whose subgroups cannot run 32 wide for the use
LocalSize A local size beyond a device limit on this axis (None every device (no Vulkan mechanism) device 1: crates/metal2vulkan/src/bind/dispatch.rs (regions) app: a threadgroup size past a smaller device's limit
IrreducibleConvergent An irreducible region containing a convergent instruction every device (no Vulkan mechanism) device 1: crates/metal2vulkan/src/structurize/irreducible.rs (refuse_tangled) rare: irreducible loops around barriers or simd operations
ComputeDerivativesWithSimd Compute derivatives in a flattened simd tier every device (no Vulkan mechanism) device 1: crates/metal2vulkan/src/lower/dispatch.rs (plan_kernel) rare: derivatives in a kernel
ComputeDerivatives Derivatives outside fragment without compute-derivative support devices without VkFeature::ComputeDerivativeGroupLinear; every device (no Vulkan mechanism); every device (not implemented) ours 4: crates/metal2vulkan/src/bind/dispatch.rs (check_local), crates/metal2vulkan/src/lower/sync/barrier.rs (select_derivative, 3 sites) rare: derivatives in a kernel
QuadOperations Quad operations in a stage without quad support devices without VkLimit::MinSubgroupSize; devices without VkProperty::SubgroupQuadOperationsInAllStages device 2: crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier, 2 sites) app: quad shuffles in kernels on devices without quad operations there
SimdgroupMatrix Simdgroup matrix operations every device (not implemented) ours 1: crates/metal2vulkan/src/lower/simd/matrix.rs (not_implemented) rare: simdgroup matrix kernels
SimdgroupMatrix16x16x16 A 16x16x16 simdgroup matrix product (air.simdgroup_matrix_16x16x16_[widening_]multiply_accumulate), in any stage every device (not implemented) ours 1: crates/metal2vulkan/src/lower/simd/matrix.rs (select) rare: 16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later)
ArgumentBufferPointers Argument buffers holding buffer pointers (dynamic roots) devices without buffer device addresses (addressed_needs) device 1: crates/metal2vulkan/src/device/metal.rs (unsupported_features) app: argument buffers holding buffer pointers
ArgumentBufferTextures Argument buffers holding textures or samplers (handle domain) devices without a capability the site computes (gaps); devices without a capability the site computes (missing); every device (not implemented) ours 15: crates/metal2vulkan/src/bind/heap.rs (array), crates/metal2vulkan/src/bind/heap.rs (member_texel_view, 2 sites) (+8) app: argument buffers holding textures and samplers (bindless)
ArgumentBufferObjects Argument-buffer members that are pipeline states, ICBs, function tables, or acceleration structures every device (not implemented) ours 5: crates/metal2vulkan/src/lower/access/encode.rs (select_command, 3 sites), crates/metal2vulkan/src/memory/provenance.rs (access) (+1) rare: pipeline states and ICBs in argument buffers
DereferenceLoadedPointer Dereferencing a pointer loaded from memory or made from an integer devices short of a Vulkan feature the site names; devices without buffer device addresses (addressed_needs); every device (no Vulkan mechanism) device 4: crates/metal2vulkan/src/lower/access/dynamic.rs (plan_misses), crates/metal2vulkan/src/lower/access/local.rs (access_ptr) (+2) app: pointers loaded from argument buffers
PointerToInteger Storing a pointer or converting it to an integer - - via a helper: 1: crates/metal2vulkan/src/lower/access/dynamic.rs (require_addresses) rare: pointer to integer casts
PointerCompare Comparing pointers with different roots - - via a helper: 1: crates/metal2vulkan/src/lower/access/copy.rs (addressed) rare: comparing pointers of different roots
HandleAsPointer A resource handle used as a byte pointer, or conflicting handle provenance every device (no Vulkan mechanism); every device (not implemented) ours 6: crates/metal2vulkan/src/lower/access/handle.rs (domain_kind), crates/metal2vulkan/src/lower/access/handle.rs (element, 2 sites) (+3) rare: resource handles used as byte pointers
ConstantGlobalEscaping A constant global whose address escapes every device (not implemented) ours 2: crates/metal2vulkan/src/memory/plan.rs (blob_nodes), crates/metal2vulkan/src/memory/plan.rs (serialize) rare: a constant global whose address escapes
ThreadgroupMemorySize Threadgroup memory above the device limit devices short of a device limit the site names; devices without VkLimit::MaxComputeSharedMemorySize; every device (no Vulkan mechanism) device 3: crates/metal2vulkan/src/bind/plan/compute.rs (plan), crates/metal2vulkan/src/memory/arena.rs (check) (+1) rare: threadgroup memory past a smaller device's limit
ZeroedThreadgroupMemory Threadgroup memory that reads zero until the program writes it, on Device::from_queries' profile devices short of a Vulkan feature the site names device 1: crates/metal2vulkan/src/lower/access/local.rs (zero_threadgroup) rare: threadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
CoherentMemory coherent(device) accesses (Vulkan memory model) devices short of a Vulkan feature the site names device 1: crates/metal2vulkan/src/lower/sync/memory_model.rs (check) rare: coherent(device) accesses
Int64Atomics 64-bit atomics devices short of a Vulkan feature the site names; devices without buffer device addresses (addressed_needs) device 2: crates/metal2vulkan/src/lower/access/atomic.rs (select, 2 sites) rare: 64-bit atomics
ImageAtomics Image atomics beyond 32-bit integers devices without a capability the site computes (gaps) device 1: crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format) rare: texture atomics beyond 32-bit integers
DescriptorCount Too many descriptors of one kind in a stage or pipeline devices short of a device limit the site names; devices without VkLimit::MaxUniformBufferRange device 3: crates/metal2vulkan/src/lower/access/mod.rs (accept_placement), crates/metal2vulkan/src/lower/select.rs (finish) (+1) app: many textures or buffers in one stage on a smaller device
StageSize A stage module heavier than the translator hands the device's driver devices whose plan writes the stage past the stage bound device 1: crates/metal2vulkan/src/pipeline/compile/stage_bound.rs (refused) rare: a kernel heavier than the heaviest stage measured to compile within host-sized memory, as the device's plan writes it (from_queries), or too large for a driver measured to corrupt one past its bound or to outgrow host memory below it
BufferRange A buffer window beyond the descriptor range limits devices without buffer device addresses (addressed_needs); every device (no Vulkan mechanism) device 6: crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites), crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers) (+2) app: a buffer window past a device's descriptor range
Int64Arithmetic 64-bit integer arithmetic devices without VkFeature::ShaderInt64 device 2: crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar), crates/metal2vulkan/src/lower/select.rs (selector_form) rare: 64-bit integers on a device without shaderInt64
Float64Arithmetic 64-bit float arithmetic devices without VkFeature::ShaderFloat64 device 2: crates/metal2vulkan/src/device/metal.rs (unsupported_features), crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar) rare: doubles (MSL has none outside Apple's own code)
Format A pixel or vertex format not supported for the required use devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes (alternatives); devices without a capability the site computes (c); devices without a capability the site computes (missing); devices without a capability the site computes (routes); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) ours 70: crates/metal2vulkan/src/bind/heap.rs (array), crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler) (+38) system: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
DivergentImplicitLod Divergent implicit-LOD sampling or LOD query through a multi-candidate handle every device (not implemented) ours 1: crates/metal2vulkan/src/lower/sampler/select.rs (tangled) app: implicit-LOD sampling through a dynamically chosen texture
ImplicitLodOutsideFragment Implicit-LOD sampling outside fragment every device (not implemented) ours 3: crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level), crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured) (+1) rare: implicit-LOD sampling outside fragment functions
MinLodClamp min_lod_clamp without shaderResourceMinLod devices without VkFeature::ShaderResourceMinLod; every device (not implemented) ours 2: crates/metal2vulkan/src/lower/sampler/select.rs (min_lod), crates/metal2vulkan/src/lower/sampler/select.rs (select_one) rare: min_lod_clamp on a device without shaderResourceMinLod
TexelOffset A texel offset the device cannot apply devices short of a device limit the site names; every device (no Vulkan mechanism) device 2: crates/metal2vulkan/src/lower/sampler/select.rs (in_device_range), crates/metal2vulkan/src/lower/sampler/select.rs (offset) app: texel offsets a device cannot apply
GatherExtended Gather with non-constant offsets or components - - via a helper: 1: crates/metal2vulkan/src/lower/sampler/select.rs (dynamic_offset) rare: gathers with dynamic offsets or components
StorageImageMultisample Multisampled storage images - - via a helper: 1: crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot) rare: writable multisampled textures
StorageTextureInVertexStage Storage images in the vertex stage - - via a helper: 1: crates/metal2vulkan/src/lower/texture/slot.rs (stage_stores) rare: writable textures in vertex functions
CubeArray Cube arrays devices without VkFeature::ImageCubeArray device 2: crates/metal2vulkan/src/lower/sampler/select.rs (select_one), crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap) rare: cube arrays on a device without imageCubeArray
SamplerAnisotropy Sampler anisotropy an argument buffer lists, on a device without samplerAnisotropy devices without VkFeature::SamplerAnisotropy device 1: crates/metal2vulkan/src/metal/sampler.rs (check_argument_sampler) app: anisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
SamplerBorderColor Sampler border colors Vulkan cannot express devices without a capability the site computes (missing); devices without a capability the site computes (need); devices without a capability the site computes (vec![need]); every device (not implemented) ours 4: crates/metal2vulkan/src/metal/sampler.rs (border_read, 4 sites) app: border colors a device cannot express
SamplerLodBias Sampler LOD bias devices short of a Vulkan feature the site names; devices without VkLimit::MaxSamplerLodBias; every device (no Vulkan mechanism) device 3: crates/metal2vulkan/src/lower/sampler/constexpr.rs (constexpr_desc, 3 sites) app: constexpr samplers with an LOD bias
SamplerCompare Sampler compare functions outside what Vulkan allows for the image devices short of a Vulkan feature the site names device 1: crates/metal2vulkan/src/metal/sampler.rs (check_sampler) app: compare samplers a device cannot apply to the image
PixelSamplerCompare A constexpr sampler with pixel coordinates and a compare function, which Apple's compiler rejects ("invalid values combination in sampler... every device (no Vulkan mechanism) device 1: crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered) none: Apple's compiler rejects it
TexelBuffer Texture buffers beyond the device's texel-buffer limits devices without a format's usage; every device (no Vulkan mechanism) device 3: crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites), crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture) app: texture buffers past a device's texel-buffer limits
RasterOrderGroups Raster order groups without fragment shader interlock devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::FragmentShaderSampleInterlock; devices without a capability the site computes (alternatives); every device (not implemented) ours 4: crates/metal2vulkan/src/device/metal.rs (unsupported_features), crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites) (+1) rare: raster order groups
FramebufferFetch Framebuffer fetch without an ordered form on the device (rasterization-order attachment access, or the pixel interlock's storage form where the... devices short of a Vulkan property the site names; devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; devices without a capability the site computes (alternatives); devices without a capability the site computes (c); every device (not implemented) ours 12: crates/metal2vulkan/src/bind/sample_planes.rs (finish), crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (packed16) (+8) system: programmable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots)
PrimitiveId [[primitive_id]] in a fragment function devices without a capability the site computes; every device (not implemented) ours 2: crates/metal2vulkan/src/lower/stage_io/plan.rs (finish), crates/metal2vulkan/src/pipeline/link/varyings.rs (check_primitive_id) rare: primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
PrivatePrimitives One of Metal's private primitive types (a line loop, a triangle fan, quads, a quad strip) drawn in the pulled list form... - - via a helper: 1: crates/metal2vulkan/src/lower/stage_io/plan.rs (indices_feature) rare: a private primitive type drawn in the pulled list form (a vertex function that writes memory or the primitive_id varying, a vertex start past 2^31) on a device without device addresses
VertexAmplification Vertex amplification devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; devices without a capability the site computes (needs); every device (not implemented) ours 5: crates/metal2vulkan/src/bind/graphics.rs (multiview_instances), crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store) (+3) rare: vertex amplification
LayeredRendering Layered rendering (render_target_array_index, viewport_array_index) devices without VkFeature::ShaderOutputLayer; devices without VkFeature::ShaderOutputViewportIndex; devices without a capability the site computes (needs); every device (not implemented) ours 5: crates/metal2vulkan/src/lower/mesh/mod.rs (target_index, 2 sites), crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store) (+2) rare: layered rendering on a device without its features
ClipDistance Clip or cull distances devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances device 2: crates/metal2vulkan/src/lower/mesh/mod.rs (select, 2 sites) rare: clip distances on a device without them
DualSourceBlending Dual-source blending devices without VkFeature::DualSrcBlend; devices without VkLimit::MaxFragmentDualSrcAttachments device 3: crates/metal2vulkan/src/metal/state.rs (blend_factor), crates/metal2vulkan/src/pipeline/link/graphics.rs (check_outputs) (+1) rare: dual-source blending on a device without it
Barycentrics Barycentric coordinates devices without VkFeature::FragmentShaderBarycentric; devices without VkFeature::GeometryShader; devices without a capability the site computes (needs); every device (not implemented) ours 4: crates/metal2vulkan/src/device/metal.rs (unsupported_features), crates/metal2vulkan/src/lower/stage_io/plan.rs (param) (+2) rare: barycentric coordinates
StencilExport Stencil export devices without VkExtension::ExtShaderStencilExport; every device (not implemented) ours 5: crates/metal2vulkan/src/bind/graphics.rs (shadow_stencil_words), crates/metal2vulkan/src/lower/fragment/stencil.rs (device_form) (+2) rare: stencil from the shader
SampleRateShading Per-sample shading devices without VkFeature::SampleRateShading; devices without a capability the site computes (needs); every device (not implemented) ours 3: crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations, 3 sites) rare: per-sample shading
PullModelInterpolation Metal's pull-model interpolation (interpolant fragment inputs and their interpolate_at_center, _centroid, _sample and _offset functions)... devices without VkProperty::InterpolateAtOffsetCentered; devices without VkProperty::InterpolateAtOffsetFromSevenSixteenths; devices without a capability the site computes (lacks); every device (not implemented) ours 5: crates/metal2vulkan/src/lower/fragment/interpolate.rs (select, 2 sites), crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant, 2 sites) (+1) rare: interpolant inputs read at the centroid, a sample or an offset
DivergentInterpolation Metal's pull-model interpolation at a sample or an offset (interpolate_at_sample, interpolate_at_offset) outside the fragment function's first... every device (not implemented) ours 1: crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant_reads) rare: an interpolant read at a sample or an offset in a branch, a loop or after a discard
SamplePositions A render pass's custom sample positions (setSamplePositions:count:) on a device that takes no custom sample locations at the pass's sample... - - 0 rare: custom sample positions on a device that takes none at the pass's sample count
PixelCoverageAtSampleRate The pixel's coverage ([[sample_mask]] read) in a fragment function that runs once per sample every device (no Vulkan mechanism); every device (not implemented) ours 2: crates/metal2vulkan/src/lower/simd/mod.rs (select_param), crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations) rare: coverage read at sample rate
InterfaceComponents Too many interface components or locations devices short of a device limit the site names; devices without VkLimit::MaxColorAttachments; devices without VkLimit::MaxVertexInputAttributes device 3: crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state), crates/metal2vulkan/src/pipeline/link/varyings.rs (assign) (+1) rare: too many varyings or attachments for a device
UnmatchedVarying A fragment input without a vertex producer (a Metal link error) every device (no Vulkan mechanism) device 3: crates/metal2vulkan/src/pipeline/link/varyings.rs (mesh_fragment), crates/metal2vulkan/src/pipeline/link/varyings.rs (varyings, 2 sites) none: a Metal link error
KernelStageIn Kernel [[stage_in]] every device (not implemented) ours 1: crates/metal2vulkan/src/lower/stage_io/stage_in.rs (select) rare: kernel stage-in combinations Metal leaves unestablished
VertexStepRate A vertex buffer layout stepped per instance at a rate above 1, on a profile that fetches every attribute in fixed function (the identity domains,... devices without a capability the site computes (needs) device 1: crates/metal2vulkan/src/metal/vertex.rs (divided) app: instanced vertex layouts stepped at a rate above 1
VertexInputLayout A vertex attribute whose layout fixed-function input cannot fetch, on a profile that fetches every attribute in fixed function (the identity... devices without a capability the site computes (limit); every device (not implemented) ours 4: crates/metal2vulkan/src/pipeline/link/vertex.rs (resolve, 4 sites) rare: vertex offsets or strides off their format's alignment, or past a device's limits
Tessellation Tessellation devices without VkFeature::TessellationShader; devices without VkLimit::MaxTessellationGenerationLevel; every device (not implemented) ours 13: crates/metal2vulkan-air/src/canon/mod.rs (post_check, 2 sites), crates/metal2vulkan/src/lower/stage_io/fetch.rs (select) (+8) rare: tessellation
MeshShading devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (missing); every device (not implemented) ours 6: crates/metal2vulkan/src/bind/graphics.rs (mesh_limit), crates/metal2vulkan/src/bind/graphics.rs (plan) (+3) rare: mesh pipelines
TileShading devices without VkLimit::MaxStorageBufferRange; every device (not implemented) ours 4: crates/metal2vulkan/src/bind/plan/compute.rs (tile_memory), crates/metal2vulkan/src/lower/access/tile.rs (not_implemented) (+2) rare: tile shaders (Apple GPU families)
Imageblocks An imageblock outside the forms implemented devices without VkFeature::SampleRateShading; devices without a capability the site computes (missing); every device (not implemented) ours 8: crates/metal2vulkan/src/lower/access/imageblock.rs (imageblocks), crates/metal2vulkan/src/lower/access/mod.rs (select_param) (+6) rare: imageblocks (Apple GPU families)
RayTracing devices without a capability the site computes (missing); every device (no Vulkan mechanism); every device (not implemented) ours 12: crates/metal2vulkan/src/bind/acceleration.rs (instance_record, 2 sites), crates/metal2vulkan/src/lower/raytracing/mod.rs (instance_count) (+5) rare: ray tracing (out of scope by ruling)
Tensors every device (not implemented) ours 2: crates/metal2vulkan-air/src/canon/matmul2d/synth.rs (refuse), crates/metal2vulkan/src/lower/select.rs (route_air) rare: shader tensors
RasterizationRateMap devices without VkFeature::MultiViewport; devices without VkFeature::ShaderDrawParameters; devices without VkFeature::ShaderOutputViewportIndex; devices without VkLimit::MaxGeometryTotalOutputComponents; devices without a capability the site computes; devices without a capability the site computes (vec![Capability::Feature(lacks)]); every device (not implemented) ours 10: crates/metal2vulkan/src/lower/stage_io/plan.rs (region_copy, 3 sites), crates/metal2vulkan/src/lower/stage_io/plan.rs (region_viewport, 2 sites) (+3) rare: rasterization rate maps
GpuEncodedIndirectCommands devices short of a Vulkan feature the site names; devices without buffer device addresses (addressed_needs); every device (no Vulkan mechanism); every device (not implemented) ours 20: crates/metal2vulkan/src/bind/replay.rs (preprocess), crates/metal2vulkan/src/bind/replay.rs (replay_preprocess_module) (+12) rare: indirect command buffers encoded by a kernel
VulkanVersion The device's Vulkan version is below the 1.2 floor devices without ApiVersion::V1_2 device 2: crates/metal2vulkan/src/ash_interop/query.rs (query), crates/metal2vulkan/src/device/derive.rs (from_queries) none: a device below Vulkan 1.2
PushWindow The device's maxPushConstantsSize is below the 256 bytes of the push window every stage is lowered for devices without VkLimit::MaxPushConstantsSize device 1: crates/metal2vulkan/src/device/derive.rs (from_queries) none: a device whose maxPushConstantsSize is below 256 bytes
IdentityDomains The identity pointer and handle domains (PointerDomain::Identity, HandleDomain::Identity) devices without a capability the site computes (all); every device (not implemented) ours 7: crates/metal2vulkan/src/device/derive.rs (identity_domains), crates/metal2vulkan/src/lower/sampler/anisotropic.rs (select) (+5) none: the identity domains, which the runtime alone takes and which lower only kernels over buffer slots, textures in slots or argument buffers, and runtime samplers, so far
Constant A constants-block record LLVM defines that the typed model has no form for (a block address, a select and the other constant expressions of... - - via a helper: 3: crates/metal2vulkan-air/src/bitcode/constants.rs (record, 2 sites), crates/metal2vulkan/src/error/mod.rs (from) none: LLVM constant forms AIR does not emit
Attribute An LLVM attribute kind that changes the calling ABI and that AIR does not use (inalloca, preallocated, byref, nest, the swift* kinds) - - via a helper: 2: crates/metal2vulkan-air/src/bitcode/attrs.rs (known), crates/metal2vulkan/src/error/mod.rs (from) none: LLVM ABI attributes AIR does not use
BitcodeRecord A bitcode record LLVM defines in block that the typed model does not cover and that has no more specific variant (legacy spellings predating... - - via a helper: 8: crates/metal2vulkan-air/src/bitcode/attrs.rs (decode_lists), crates/metal2vulkan-air/src/bitcode/function.rs (symtab) (+5) none: bitcode records AIR does not emit
SyncScope An atomic access or fence in a synchronization scope other than LLVM's built-in singlethread and system scopes - - via a helper: 2: crates/metal2vulkan-air/src/bitcode/function.rs (atomic), crates/metal2vulkan/src/error/mod.rs (from) none: synchronization scopes AIR does not use
SubgroupOperations Simdgroup operations of a class the stage's subgroups do not support (the stage is not in subgroupSupportedStages, or an operation class is... devices without VkFeature::ShaderQuadControl; devices without VkFeature::ShaderSubgroupExtendedTypes device 2: crates/metal2vulkan/src/lower/simd/mod.rs (full_quads), crates/metal2vulkan/src/lower/simd/mod.rs (select_group) app: simdgroup functions in a stage a device's subgroups do not support
DirectCall A call to a defined function the inliner cannot take every device (not implemented) ours 1: crates/metal2vulkan-air/src/canon/mod.rs (post_check) rare: variadic or byval calls the inliner cannot take
WideSwitchLiteral A switch case literal wider than 32 bits every device (not implemented) ours 1: crates/metal2vulkan/src/structurize/emit.rs (check_tree) rare: 64-bit switch literals
Lowering An instruction, intrinsic, or interface element of a lowering family whose lowering has not landed yet (each family narrows its refusals as it lands) devices short of a device limit the site names; devices without VkFeature::ShaderDemoteToHelperInvocation; every device (not implemented) ours 37: crates/metal2vulkan/src/bind/plan/resources.rs (level_views), crates/metal2vulkan/src/lower/access/handle.rs (domain_kind) (+34) system: the catch-all of lowering families not landed: any shader can meet one
SamplerAddressMode A sampler address mode the device lacks (MirrorClampToEdge) devices without VkFeature::SamplerMirrorClampToEdge; every device (not implemented) ours 2: crates/metal2vulkan/src/lower/sampler/constexpr.rs, crates/metal2vulkan/src/metal/sampler.rs (check_sampler) app: mirror-clamp-to-edge on a device without it
AlphaToOne alphaToOneEnabled on a device without Vulkan's alphaToOne feature, the exact counterpart... devices without VkFeature::AlphaToOne device 1: crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state) rare: alphaToOneEnabled on a device without alphaToOne
StageStoresAndAtomics Buffer or image stores or atomics in a vertex or fragment function without the stage's store feature (vertexPipelineStoresAndAtomics,... devices without VkFeature::FragmentStoresAndAtomics device 1: crates/metal2vulkan/src/lower/access/tile_memory.rs (written) app: stores or atomics in vertex or fragment functions on a device without the feature
FunctionConstantArgument An observed read of a pointer entry argument that a function-constant predicate removes, other than an absent buffer (which reads as null) or an... every device (not implemented) ours 1: crates/metal2vulkan-air/src/canon/interface.rs (absent_values) rare: a function-constant-removed argument read
SamplerBicubicFilter A use of Metal's bicubic filter that no Metal reading establishes every device (not implemented) ours 5: crates/metal2vulkan/src/bind/heap.rs (new), crates/metal2vulkan/src/bind/plan/resources.rs (bicubic_texels) (+3) system: bicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused
GroupCount A dispatch whose threadgroup count on axis exceeds maxComputeWorkGroupCount by more than the binder splits into regions (None every device (no Vulkan mechanism) device 5: crates/metal2vulkan/src/bind/dispatch.rs (2 sites), crates/metal2vulkan/src/bind/dispatch.rs (product) (+2) rare: more threadgroups than a device dispatches, past the binder's split
IntersectionFunctionTable A ray intersection through intersection functions every device (no Vulkan mechanism); every device (not implemented) ours 9: crates/metal2vulkan/src/bind/acceleration.rs (geometry_table_offset, 3 sites), crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 2 sites) (+4) rare: ray tracing (out of scope by ruling)
IndependentBlending Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without independentBlend, where no... devices without VkFeature::IndependentBlend device 1: crates/metal2vulkan/src/pipeline/link/graphics.rs (uniform_blend) rare: per-attachment blending on a device without independentBlend
RasterSampleCount A rasterSampleCount outside the device's framebuffer sample counts for the pipeline's attachments (framebuffer*SampleCounts), and, for a color... devices without a capability the site computes device 1: crates/metal2vulkan/src/pipeline/graphics.rs (sample_count_properties) app: a sample count a device lacks for the attachments
TriangleFillLines The render encoder's MTLTriangleFillModeLines (polygonMode LINE) on a device without fillModeNonSolid - - via a helper: 1: crates/metal2vulkan/src/metal/state.rs (polygon_mode) app: wireframe on a device without fillModeNonSolid
TriangleFillPoints The render encoder's TriangleFillMode::Points (polygonMode POINT) on a device without fillModeNonSolid, or on a portability-subset device... devices short of a Vulkan feature the site names device 1: crates/metal2vulkan/src/metal/state.rs (polygon_mode) system: Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
DepthClipClamp The render encoder's MTLDepthClipModeClamp (depthClampEnable) on a device without depthClamp - - via a helper: 1: crates/metal2vulkan/src/metal/state.rs (depth_clamp_enable) app: depth clamp on a device without depthClamp
DepthBiasClamp The render encoder's depth bias clamp, nonzero with a nonzero bias, on a device without depthBiasClamp - - via a helper: 1: crates/metal2vulkan/src/metal/state.rs (depth_bias) app: depth bias clamp on a device without depthBiasClamp
ConstantAlphaBlendFactor CONSTANT_ALPHA or ONE_MINUS_CONSTANT_ALPHA (Metal's BlendAlpha factors) as a color blend factor on a portability-subset device without... devices without VkFeature::ConstantAlphaColorBlendFactors device 1: crates/metal2vulkan/src/metal/state.rs (check_constant_alpha) app: blend-alpha factors on a portability-subset device without them
SparseTexture A sparse texture (MTLTexture.isSparse) bound at slot, where a function observes the residency of its accesses (sparse_color::resident()) and... - - via a helper: 2: crates/metal2vulkan/src/bind/plan/slots.rs (check_sparse_textures, 2 sites) rare: sparse residency reads
TextureSize A texture whose extent, array layers, or level count is past what the device takes for its format, type, and usage (Capability::Limit names the... - - 0 app: a texture past a device's image limits
TextureSampleCount A texture sample count the device does not take for its format, type, and usage - - 0 app: a sample count a device lacks for the texture
TextureView A texture view Vulkan cannot make exactly on this image - - 0 app: a texture view Vulkan cannot make exactly
TextureSwizzle A texture swizzle whose Metal behavior is not measured every device (not implemented) ours 6: crates/metal2vulkan/src/bind/heap.rs (member_texel_view), crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture) (+4) app: texture swizzles whose Metal behaviour is unmeasured
MipmapGeneration generateMipmapsForTexture: that cannot run on the device - - 0 app: generateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run
HostMemory A buffer over the caller's host memory without a copy (newBufferWithBytesNoCopy:) - - 0 system: newBufferWithBytesNoCopy: where the device cannot import the memory
GpuTimes A command buffer's GPU times (GPUStartTime, GPUEndTime) on a device whose queue family writes no timestamps (timestampValidBits 0) - - 0 rare: GPU times on a queue without timestamps
CountingVisibility A Counting visibility result (MTLVisibilityResultModeCounting) on a device without occlusionQueryPrecise - - 0 rare: counting occlusion queries on a device without precise queries
ViewFormatReinterpretation A texture view whose format has other components, or components of other widths, than its texture's (RGBA8Unorm as R32Uint), on a device whose... - - 0 app: a view of another component layout on a portability subset (MoltenVK)
SeparateMultisampledDepthStencil A render pass whose depth and stencil attachments are separate multisampled textures that it loads or may store, on a device without maintenance8 - - 0 rare: separate multisampled depth and stencil textures
PrivateMemory A stage whose private memory (its thread variables and arrays, and the constants it holds per thread) takes more Function storage a thread than... devices without a capability the site computes (limit) device 1: crates/metal2vulkan/src/lower/access/local.rs (device_arena) rare: very large per-thread arrays
SparseTextures A sparse heap (MTLHeapTypeSparse), or a texture made from one, on a device without what a sparse resident image of it needs, which missing names - - 0 rare: sparse heaps on a device without sparse images
TimelineSemaphores Command buffers and events, which the runtime completes and signals through timeline semaphores (core in Vulkan 1.2), on a device whose... - - 0 none: a device below the runtime's floor
Reflection Reflection of an argument whose answer Metal's has not been measured for (reflection) every device (not implemented) ours 8: crates/metal2vulkan/src/reflection/derive.rs (gap_at), crates/metal2vulkan/src/reflection/derive.rs (read_attributes) (+6) rare: reflection of argument kinds Metal's answer is unmeasured for
HeapTextureTiling A texture of a heap whose memory the device's optimal images do not take (a Shared heap on a device whose optimal images take no host-visible... - - 0 app: textures in Shared heaps on a device whose optimal images take no host memory
UndeclaredTextureUsage A shader write to a texture made without ShaderWrite (or ShaderAtomic), or a read of one made without ShaderRead, which plain Metal runs,... - - 0 app: a shader write to a texture made without ShaderWrite, which plain Metal runs
RenderTargetSize A render pass whose render area or layers are past the device's framebuffer limits (Capability::Limit names MaxFramebufferWidth,... - - 0 rare: a render area past a device's framebuffer limits
IndirectRenderState A render state a function sets on an indirect render command (render_command::set_cull_mode, set_front_facing_winding,... every device (not implemented) ours 1: crates/metal2vulkan/src/lower/access/encode.rs (select_command) rare: render state set by a kernel on an indirect command
GlobalBuiltinInFragment A fragment function's read of a Metal 3.1 program-scope built-in variable that Metal does not lower there every device (not implemented) ours 1: crates/metal2vulkan/src/lower/select.rs (route_air) rare: Metal 3.1 global built-ins in fragment functions
PrivateRenderState A private fixed-function property of Metal's pipeline descriptor (Apple SPI, OpenGL on Metal's) set to a value whose effect the translation has... devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::LogicOp; devices without VkFeature::RasterizationOrderColorAttachmentAccess; every device (not implemented) ours 7: crates/metal2vulkan/src/bind/heap.rs (array), crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding) (+5) none: Apple-private pipeline fields of OpenGL on Metal (no public header)
ExtendedRangeBlend A blend the function computes in the shader, into an extended-range attachment (BGRA10_XR, BGR10_XR, RGB10A8_2P_XR10 and their _sRGB... every device (not implemented) ours 5: crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused), crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output) (+1) system: an extended-range (XR10) attachment blended from an output other than four half or float lanes; a 16-bit float attachment's storage-form blend of a second-source factor or a one-color-channel mask under fast math; the consumer's guests blend RGB10A8_2P_XR10 attachments
ProgramScopeBinding A program-scope buffer binding of MSL 3.2 (macOS 15 and later), constant T* constant p [[buffer(n)]]; in Apple's !air.global_bindings list,... - - via a helper: 2: crates/metal2vulkan-air/src/abi/module.rs (decode), crates/metal2vulkan/src/error/mod.rs (from) app: MSL 3.2 program-scope buffer bindings (macOS 15 and later)
GenericPointer A generic pointer (MSL 4.1's addrspace(8)) that canonicalization cannot make a pointer of one address space, by how it comes to hold a space... every device (not implemented) ours 2: crates/metal2vulkan-air/src/canon/generic.rs (refuse), crates/metal2vulkan-air/src/canon/generic.rs (refused) system: MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
SeqCstFence A sequentially consistent fence (seq_cst atomic_thread_fence, an LLVM fence seq_cst, or a seq_cst barrier ordering device memory), whose... devices short of a Vulkan feature the site names device 1: crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst) rare: a seq_cst fence in a vertex or fragment stage without its stores and atomics
PostDepthCoverage The coverage after the depth and stencil tests ([[sample_mask, post_depth_coverage]]), read through VK_EXT_post_depth_coverage devices short of a Vulkan extension the site names device 1: crates/metal2vulkan/src/lower/stage_io/plan.rs (param) rare: the coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage
WideLines Lines at a width other than 1 (Apple's setLineWidth:), drawn by the device's own wide lines (wideLines) or as bands of triangles through... devices without VkFeature::TessellationShader; devices without VkLimit::MaxTessellationEvaluationOutputComponents; every device (not implemented) ours 3: crates/metal2vulkan/src/pipeline/link/band.rs (plan, 3 sites) none: a line under the Apple-private setLineWidth: at a width other than 1 drawn as the band, whose pipeline form the translator does not build (a selected slice or viewport, barycentric weights, multiview, synthesized geometry, too many stage outputs)

2. Binder refusals at a device limit (BindError)

Variant What it blocks Where Basis Sites Reach
DescriptorRangeExceeded A descriptor-form slot's window exceeds the descriptor range limit (Profile F) at the device's limit device 1: crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers) app: a buffer window past a device's descriptor range
TexelBufferTooLarge A texture buffer bound through one texel buffer view exceeds maxTexelBufferElements at the device's limit device 1: crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges) rare: a texture buffer past maxTexelBufferElements its parts do not bind
HeapTooLarge The set-1 heap's elements (one per resident texture a handle can name, plus the null element) exceed the pipeline's heap capacity at the device's limit device 7: crates/metal2vulkan/src/bind/heap.rs (directory_bytes), crates/metal2vulkan/src/bind/heap.rs (heap_elements) (+3) rare: more resident textures than the pipeline's heap holds (bindless at scale)
TessellationFactorRange The tessellation factors a draw reads span more bytes (needed) than one storage-buffer descriptor can bind (limit, maxStorageBufferRange),... at the device's limit device 1: crates/metal2vulkan/src/bind/graphics.rs (patch_binding) rare: tessellation factors past one storage descriptor
PatchIndexRange The patch indices a draw reads span more bytes (needed) than one storage-buffer descriptor can bind (limit, maxStorageBufferRange) at the device's limit device 1: crates/metal2vulkan/src/bind/graphics.rs (patch_binding) rare: patch indices past one storage descriptor
ControlPointIndexRange The control-point indices a draw reads span more bytes (needed) than one storage-buffer descriptor can bind (limit, maxStorageBufferRange) at the device's limit device 1: crates/metal2vulkan/src/bind/graphics.rs (patch_binding) rare: control-point indices past one storage descriptor
MissingStageInRegion The kernel reads the compute encoder's stage-in region (a [[stage_in]] attribute stepping by thread position, or [[grid_origin]] or... at the device's limit device 1: crates/metal2vulkan/src/bind/dispatch.rs (instantiate) none: a stage-in region never set, which Metal leaves undefined
UniformViewAliased A device buffer slot the pipeline reads through a uniform view (Profile F's per-stage storage-buffer fallback,... at the device's limit device 1: crates/metal2vulkan/src/bind/instantiate.rs (check_uniform_aliasing) rare: Profile F's uniform-view fallback aliased by a write
MissingDeviceAddress A device-address slot received a buffer without a device address at the device's limit device 2: crates/metal2vulkan/src/bind/plan/slots.rs (plan_buffer), crates/metal2vulkan/src/bind/replay/draws.rs (parent_entries) rare: a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses

3. Translation caps (Error::LimitExceeded(Limit))

Variant What it blocks Where Basis Sites Reach
InlinedInstructions Instructions after inlining every device (a deterministic cap) ours 3: crates/metal2vulkan-air/src/canon/inline.rs (inline), crates/metal2vulkan-air/src/canon/inline.rs (u32_of) (+1) rare: very large shaders after inlining
OutputBlocks Structurizer output blocks, 4(n+e)+1024 every device (a deterministic cap) ours 4: crates/metal2vulkan/src/structurize/irreducible.rs (round), crates/metal2vulkan/src/structurize/mod.rs (structure_loops) (+2) rare: very large control flow
IrreducibleDepth Irreducible nesting depth every device (a deterministic cap) ours 4: crates/metal2vulkan-air/src/graph/loops.rs (compute_in), crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (check_within_depth) (+1) none: deeply nested irreducible loops
SpirvWords Emitted SPIR-V words every device (a deterministic cap) ours 2: crates/metal2vulkan/src/lower/estimate.rs (check), crates/metal2vulkan/src/lower/estimate.rs (check_emitted) rare: very large output modules
WorkUnits Deterministic work units of one attempt every device (a deterministic cap) ours 1: crates/metal2vulkan-air/src/budget/mod.rs (counted) rare: very large shaders
LedgerBytes Ledger bytes of one attempt every device (a deterministic cap) ours 9: crates/metal2vulkan-air/src/bitstream/mod.rs (count), crates/metal2vulkan-air/src/budget/mod.rs (charge) (+5) rare: very large shaders
TypeCount Types in the bitcode type table every device (a deterministic cap) ours 2: crates/metal2vulkan-air/src/bitcode/types.rs (decode), crates/metal2vulkan-air/src/ir/types.rs (intern) none: a type table past the cap
MetadataNodes Metadata nodes every device (a deterministic cap) ours 3: crates/metal2vulkan-air/src/bitcode/function.rs (metadata), crates/metal2vulkan-air/src/bitcode/metadata.rs (push) (+1) none: metadata past the cap
BitstreamNesting Bitstream block nesting every device (a deterministic cap) ours 1: crates/metal2vulkan-air/src/bitstream/mod.rs (enter_block) none: malformed nesting
InstructionCount Instructions of the decoded module every device (a deterministic cap) ours 8: crates/metal2vulkan-air/src/bitcode/function.rs (call), crates/metal2vulkan-air/src/bitcode/function.rs (constants) (+4) rare: very large modules
LayoutNesting Nesting depth of air.struct_type_info layouts and the argument-buffer members inside them every device (a deterministic cap) ours 3: crates/metal2vulkan-air/src/abi/structs.rs (finish), crates/metal2vulkan-air/src/abi/structs.rs (open) (+1) none: argument-buffer layouts nested past the cap
ConstructNesting Nesting depth of structured constructs the structurizer emits (P8 recurses once per level) every device (a deterministic cap) ours 2: crates/metal2vulkan/src/structurize/emit.rs (check_tree), crates/metal2vulkan/src/structurize/emit/predicate.rs (facts_of) none: control flow nested past the cap
PrivateArenaBytes Bytes of a function's private arena, whose pointers are u32 byte offsets every device (a deterministic cap) ours 4: crates/metal2vulkan/src/lower/access/local.rs (device_arena), crates/metal2vulkan/src/lower/access/local.rs (use_arena) (+1) none: a private arena past 4 GiB
CallStackBytes Bytes of a kernel's call stack every device (a deterministic cap) ours 1: crates/metal2vulkan-air/src/canon/recursion.rs (metal_stack) rare: deep visible-function call stacks

4. Rate maps the compile layer does not compile (UnpinnedCompile)

Variant What it blocks Where Basis Sites Reach
ScreenExtent A screen extent above 16384 every device (this crate's bound: Apple's compile unmeasured or crashing there) - 1: crates/metal2vulkan/src/bind/rate_map.rs (new) rare: a rate map whose screen is past 16384 a side
LayerCount More than two layers every device (this crate's bound: Apple's compile unmeasured or crashing there) - 1: crates/metal2vulkan/src/bind/rate_map.rs (new) none: a rate map of more than two layers, which Apple's compile crashes on
DenseSamples An axis with more quality samples than its screen extent plus one every device (this crate's bound: Apple's compile unmeasured or crashing there) - 1: crates/metal2vulkan/src/bind/rate_map.rs (new) rare: a rate map axis with more quality samples than screen pixels
SampleOutOfRange A sample outside [0, 1] (or NaN) on an axis of two or more samples every device (this crate's bound: Apple's compile unmeasured or crashing there) - 1: crates/metal2vulkan/src/bind/rate_map.rs (new) rare: a rate map quality sample outside [0, 1] among others
SampleCount An axis of more samples, not all equal, than the most measured on a map of its layer count, max every device (this crate's bound: Apple's compile unmeasured or crashing there) - 1: crates/metal2vulkan/src/bind/rate_map.rs (new) rare: a rate map axis of more distinct samples than measured (9 on one layer, 4 on two)

5. The translation deadline (Error::Budget)

Variant What it blocks Where Basis Sites Reach
Time The attempt's deadline passed every device (the attempt's deadline, 20 seconds by default) ours 1: crates/metal2vulkan-air/src/budget/mod.rs (counted) none: a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)

6. Devices below the runtime's floor (floor::BelowFloor: each floor::Missing)

Variant What it blocks Where Basis Sites Reach
Version The device's Vulkan version (apiVersion) is below 1.3 devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (decide) -
Extension A device extension devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (decide) -
Feature A feature devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (decide) -
Limit A limit below what the runtime uses devices below the floor, at device creation device 2: crates/metal2vulkan-runtime/src/floor.rs (decide, 2 sites) -
QueueFamily A queue family with both VK_QUEUE_GRAPHICS_BIT and VK_QUEUE_COMPUTE_BIT devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (decide) -
MemoryType A memory type with these property flags, as Vulkan names them, for buffers of every usage the runtime gives them devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (choose) -
TimeDomain A time domain of [TIME_DOMAINS] the device does not calibrate (vkGetPhysicalDeviceCalibrateableTimeDomainsEXT), as Vulkan names it devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/floor.rs (decide) -
SetLayout The layout of one of the runtime's descriptor sets, set 0 (empty) or 1 (the texture and sampler arrays), which vkGetDescriptorSetLayoutSupport... devices below the floor, at device creation device 1: crates/metal2vulkan-runtime/src/arrays.rs (supported) -

7. The runtime's Refusal (Error::Refused(Refusal))

Variant What it blocks Where Basis Sites Reach
EmptyBuffer A buffer of no bytes (Device::new_buffer with a length of 0) every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max: newBufferWithLength:0 answers nil 2: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer), crates/metal2vulkan-runtime/src/buffer.rs (placed_buffer) -
BufferTooLong A buffer longer than MAX_BUFFER_LENGTH (Device::new_buffer) every device (a public call's own check of its arguments) ours: this crate's cap: a buffer's every byte lies within 2^31 bytes of each bind address in it 2: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer), crates/metal2vulkan-runtime/src/buffer.rs (placed_buffer) -
BufferPastBlock A buffer whose range leaves its block (Device::new_buffer) every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a 4096-byte buffer at offset 1,047,552 1: crates/metal2vulkan-runtime/src/buffer.rs (placed) -
HeapBufferPlace A heap buffer whose range leaves its heap (Device::new_heap_buffer) every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a 4096-byte buffer at offset 1,047,552 1: crates/metal2vulkan-runtime/src/buffer.rs (new_heap_buffer) -
ManagedBlockPrivate A Managed buffer whose bytes are in a Private block (Device::new_managed_buffer) every device (a public call's own check of its arguments) metal-documented: a Managed buffer has a CPU-side copy: MTLBuffer.h gives its contents as "the data pointer of this buffer's shared copy", and didModifyRange: names the ranges "the CPU has modified" 1: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer) -
ManagedCopyMissing A Managed buffer given no place for its device copy on a device that keeps one, where Device::has_unified_memory is false... every device (a public call's own check of its arguments) ours: Metal keeps a Managed buffer's second copy on a Mac with a discrete GPU; the consumer places it, as it places every buffer 1: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer) -
ManagedCopyOnUnified A Managed buffer given a place for a device copy on a device that keeps none, where Device::has_unified_memory is true... every device (a public call's own check of its arguments) ours: on unified memory a Managed buffer is its bytes, as Metal keeps one copy of a Managed buffer on Apple silicon 1: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer) -
ManagedCopyNotPrivate A Managed buffer whose device copy is placed in a block that is not Private (Device::new_managed_buffer) every device (a public call's own check of its arguments) ours: shaders reach the device copy in Private memory, device-local where it has room, as a discrete GPU's Metal keeps the copy in its own memory 1: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer) -
ZeroRangePastBlock A zero fill whose range leaves its block (Device::zero_block_range), as a buffer placed there would every device (a public call's own check of its arguments) ours: the fill stands for the zeroed contents of a buffer placed in the range, and Metal answers nil for a buffer placed past the end of its heap 1: crates/metal2vulkan-runtime/src/buffer.rs (zero_block_range) -
ZeroRangeShared A zero fill of a Shared block (Device::zero_block_range) every device (a public call's own check of its arguments) ours: the host maps a Shared block, and its bytes are zeroed through the mapping, as a zeroed Shared buffer's are; the fill is for the memory the host does not map 1: crates/metal2vulkan-runtime/src/buffer.rs (zero_block_range) -
NotExported An acquire of another API's writes into a block that is not exported (Block::external_writes_done), or a release to another API of a buffer... every device (a public call's own check of its arguments) ours: only an exported block's memory is another API's to write or read 2: crates/metal2vulkan-runtime/src/blit.rs (release_to_external), crates/metal2vulkan-runtime/src/export.rs (external_writes_done) -
SurfacePlanes A surface (Device::new_exported_surface) of no plane or of more than four, or whose pitch or start multiple is 0, or whose multiples and texels... every device (a public call's own check of its arguments) ours: a DRM format has at most four memory planes, and a layout needs a nonzero multiple 3: crates/metal2vulkan-runtime/src/d3d11.rs (import_d3d11_surface), crates/metal2vulkan-runtime/src/surface.rs (new_exported_surface, 2 sites) -
ModifiedRange A changed range that leaves its buffer (Buffer::did_modify_range) every device (a public call's own check of its arguments) ours: the copy of such a range would write past the buffer's device copy 1: crates/metal2vulkan-runtime/src/buffer.rs (did_modify_range) -
Committed A call on a command buffer already committed every device (a public call's own check of its arguments) metal-documented: Metal's validation asserts "commit an already committed command buffer", "Completed handler provided after commit call" and "Scheduled handler provided after commit call" 1: crates/metal2vulkan-runtime/src/command.rs (open) -
InScheduledHandler A call a scheduled handler may not make (CommandBuffer::add_scheduled_handler) every device (a public call's own check of its arguments) ours: the consumer's scheduled handlers run on the submit thread, and the one consumer's make none of these calls; a guest's scheduled handler runs in the guest 1: crates/metal2vulkan-runtime/src/command.rs (not_in_scheduled_handler) -
WaitOnOwnThread A wait, in a handler or a listener, for what the runtime thread that runs it would have to do first, so it would never end every device (a public call's own check of its arguments) ours: no wait of the runtime's hangs by construction 4: crates/metal2vulkan-runtime/src/command.rs (wait_until_completed), crates/metal2vulkan-runtime/src/command.rs (wait_until_scheduled) (+2) -
OtherDevice An event, a buffer, a texture or a pipeline state of another device in an encode call (CommandBuffer::encode_wait_for_event,... every device (a public call's own check of its arguments) ours: an event's semaphore, a buffer's block, a texture's image, a pipeline and a block belong to the VkDevice that made them 32: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy), crates/metal2vulkan-runtime/src/blit.rs (copy_from_buffer_to_buffer) (+27) -
NoCommandBuffers A queue that may hold no command buffer (Device::new_command_queue with a count of 0) every device (a public call's own check of its arguments) ours: its first commandBuffer call would wait forever 1: crates/metal2vulkan-runtime/src/queue.rs (new_command_queue) -
EncoderOpen A second encoder, an encode call, or a commit or enqueue, while an encoder of the command buffer is open every device (a public call's own check of its arguments) metal-documented: a command buffer has one active encoder at a time, ended by endEncoding before another is made or the command buffer is committed 1: crates/metal2vulkan-runtime/src/command.rs (open) -
NoPipeline A dispatch or a draw with no pipeline state set every device (a public call's own check of its arguments) metal-documented: a compute dispatch needs a compute pipeline state set first, and a draw a render pipeline state 3: crates/metal2vulkan-runtime/src/encoder.rs (dispatch), crates/metal2vulkan-runtime/src/render_encoder.rs (draw) (+1) -
PatchDraw A draw of patches with a render pipeline state whose vertex function is not a post-tessellation one, or a draw of primitives with one whose vertex... every device (a public call's own check of its arguments) metal-measured: an M4: plain Metal stops its process over a patch draw with a pipeline that is not a tessellation one, its validation off; Metal's validation stops a draw of primitives with a tessellation pipeline 1: crates/metal2vulkan-runtime/src/render_encoder.rs (draw) -
NoTessellationFactorBuffer A draw of patches while the encoder has no tessellation factor buffer (setTessellationFactorBuffer:offset:instanceStride:) every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGSEGV, at a quad patch draw with no tessellation factor buffer, where the same draw with one set runs and paints the target, the API validation layer off 1: crates/metal2vulkan-runtime/src/render_encoder.rs (draw) -
PointSizeTopology Device::new_render_pipeline_state of a vertex function that writes [[point_size]] under the line or the triangle input primitive topology... every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, every class crossed with both shapes of vertex function: Metal's pipeline creation fails with Vertex shader writes point size but inputPrimitiveTopology is MTLPrimitiveTopologyClassLine, and its Triangle counterpart; the conformance crate's topology-class-point-size-function compares it 1: crates/metal2vulkan-runtime/src/render.rs (of) -
BufferIndex A buffer argument index past Metal's 31 entries (setBuffer, setBytes, setBufferOffset, setThreadgroupMemoryLength) every device (a public call's own check of its arguments) metal-documented: the buffer argument table has 31 entries per stage 2: crates/metal2vulkan-runtime/src/encoder.rs (slot), crates/metal2vulkan-runtime/src/render_encoder.rs (slot) -
TextureArgumentIndex A texture argument index past Metal's 128 entries (setTexture) every device (a public call's own check of its arguments) metal-documented: the texture argument table has 128 entries per stage on Apple GPUs 2: crates/metal2vulkan-runtime/src/encoder.rs (set_texture), crates/metal2vulkan-runtime/src/render_encoder.rs (set_texture) -
SamplerArgumentIndex A sampler argument index past Metal's 16 entries (setSamplerState) every device (a public call's own check of its arguments) metal-documented: the sampler argument table has 16 entries per stage 2: crates/metal2vulkan-runtime/src/encoder.rs (set_sampler_state), crates/metal2vulkan-runtime/src/render_encoder.rs (set_sampler_state) -
SamplerIds A consumer's answer to Device::new_compute_pipeline_state's numbered samplers with another count of indices every device (a public call's own check of its arguments) ours: each numbered sampler takes one index 1: crates/metal2vulkan-runtime/src/pipeline.rs (number_samplers) -
NoBufferAtIndex setBufferOffset at an index where no buffer is bound, or a draw whose vertex descriptor reads a vertex buffer index where none is bound every device (a public call's own check of its arguments) ours: there is no buffer whose offset to change, and none whose vertices the draw reads; Metal's validation stops such a draw 3: crates/metal2vulkan-runtime/src/encoder.rs (set_buffer_offset), crates/metal2vulkan-runtime/src/render_encoder.rs (find) (+1) -
ThreadgroupSize A threadgroup of no threads, or of more than Metal's maxTotalThreadsPerThreadgroup for the kernel (a required size's threads, where the... every device (a public call's own check of its arguments) metal-documented: a threadgroup's threads total at most the state's maxTotalThreadsPerThreadgroup 2: crates/metal2vulkan-runtime/src/encoder.rs (dispatch), crates/metal2vulkan-runtime/src/encoder.rs (size_checked) -
IndirectOffset An indirect dispatch's argument offset that is not a multiple of 4, or that leaves fewer than 12 bytes (three 32-bit counts) in the buffer every device (a public call's own check of its arguments) ours: vkCmdDispatchIndirect reads three 32-bit counts at a 4-byte aligned offset inside the buffer 1: crates/metal2vulkan-runtime/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer) -
BufferOffsetAlignment A dispatch whose kernel, or a draw whose vertex or fragment function, reaches a buffer bound where its address, the buffer's gpuAddress plus the... every device (a public call's own check of its arguments) metal-documented: Metal's API validation refuses the bind offset: "must be a multiple of 4 but was set to 2" for a uint * argument bound at offset 2, an Apple M3 Max, macOS 27.0.1, probes/vector_access_placement.m in the conformance crate 1: crates/metal2vulkan-runtime/src/encoder.rs (check_alignment) -
IndicesGranted A grant of an index already granted (Device::grant_indices) every device (a public call's own check of its arguments) ours: each index has one grant, so each resource ID names one object 1: crates/metal2vulkan-runtime/src/arrays.rs (grant) -
IndicesNotGranted A texture, a sampler state or a pipeline state's constexpr sampler at an index no live grant of its class holds (Device::new_texture,... every device (a public call's own check of its arguments) ours: an object takes an index the consumer was granted, and a grant is returned once 2: crates/metal2vulkan-runtime/src/arrays.rs (place), crates/metal2vulkan-runtime/src/arrays.rs (release) -
IndicesInUse A release of a grant while a texture, a sampler state or a constexpr sampler holds one of its indices (Device::release_indices) every device (a public call's own check of its arguments) ours: an object's index stays granted while the object holds it 1: crates/metal2vulkan-runtime/src/arrays.rs (release) -
TextureIndex A texture shaders reach made without an index, or one they do not reach made with one (Device::new_texture) every device (a public call's own check of its arguments) ours: an index is an element of set 1's texture arrays, which only shaders read 4: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture), crates/metal2vulkan-runtime/src/texture.rs (surface_texture) (+2) -
TextureZeroExtent A texture with a width, height or depth of 0 every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has width of zero", and the same for a height of zero 1: crates/metal2vulkan-runtime/src/texture.rs (shape) -
TextureExtentForType A texture with a height other than 1 of a 1D type, or a depth other than 1 of a type that is not 3D every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "the texture type MTLTextureType1D requires that height is 1", and the same for a 2D texture of depth 2 1: crates/metal2vulkan-runtime/src/texture.rs (shape) -
TextureCubeNotSquare A cube texture whose width and height differ every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor width must equal height for cube textures" 1: crates/metal2vulkan-runtime/src/texture.rs (shape) -
TextureArrayLength A texture with an array length of 0, or other than 1 of a type that is not an array every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has arrayLength of zero", where an array length of 2 is made 2: crates/metal2vulkan-runtime/src/texture.rs (shape, 2 sites) -
TextureLevelCount A texture with a mipmap level count of 0, more than its full chain's, or more than 1 of a multisample or 1D type every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "requests 5 mipmap levels, but the dimensions (8, 8, 1) can only support a maxiumum of 4 levels", and the same for 0 1: crates/metal2vulkan-runtime/src/texture.rs (shape) -
TextureSampleCount A texture with a sample count of 0, or other than 1 of a type that is not multisample every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "has sampleCount set but is using a type that does not allow sampleCount" for 0 and for 2 of a 2D texture 1: crates/metal2vulkan-runtime/src/texture.rs (shape) -
TextureSwizzleWithWrites A texture with a swizzle other than each channel from itself and shader-write or render-target usage every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Texture swizzling is not compatable with MTLTextureUsageShaderWrite", where a swizzle of read usage alone is made 1: crates/metal2vulkan-runtime/src/texture.rs (own_checks) -
TextureBytesPrivate Texture::replace_region or Texture::get_bytes of a Private or Memoryless texture every device (a public call's own check of its arguments) metal-documented: Apple's documentation of MTLStorageModePrivate: "The resource is accessible only to the GPU." 1: crates/metal2vulkan-runtime/src/texture.rs (copy) -
TextureRegion Texture::replace_region, Texture::get_bytes or a blit copy (BlitCommandEncoder::copy_from_texture) of a level or slice past the texture's,... every device (a public call's own check of its arguments) ours: no texel of the texture is there to copy 1: crates/metal2vulkan-runtime/src/texture.rs (place) -
TextureBytesLayout Texture::replace_region or Texture::get_bytes with rows closer than a row of the region, images closer than an image of it, or bytes too few... every device (a public call's own check of its arguments) ours: the call would read or write past the bytes it is given, or one texel's bytes over another's 1: crates/metal2vulkan-runtime/src/texture.rs (copy) -
BufferCopyLayout BlitCommandEncoder::copy_from_buffer or BlitCommandEncoder::copy_from_texture_to_buffer whose offset or row stride, for a format of single... every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, probe blit_buffer_copy_rules.m in the conformance crate, jobs m3-max-43541 and m3-max-43545: Metal's validation layer stops an RGBA8Unorm offset of 2, sourceOffset (2) must be a multiple of 4 bytes, a row stride of 18, sourceBytesPerRow (18) must be a multiple of 4 bytes, and the same of a copy into a buffer, a row stride of 12 for rows of 16 bytes, an image stride of 12 for images of 16, and a region 16 bytes past the buffer's end, totalBytesUsed(4112) must be <= [sourceBuffer length](4096); it takes an R8Unorm offset of 2, a row stride of 0 for one row, image strides of no whole number of rows, and an image stride on a 2D texture and on a slice of a 1D array 1: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy) -
FillRange BlitCommandEncoder::fill_buffer of an empty range, or of one past the buffer's end every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, probe blit_fill_rules.m in the conformance crate, job m3-max-43573: Metal's validation layer stops both, range.length(0) must not be 0 and (range.location + range.length)(68) must be <= [buffer length](64) 1: crates/metal2vulkan-runtime/src/blit.rs (fill_range) -
TextureViewRange Texture::new_texture_view of an empty range of levels or slices, or of one past the texture's every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, probe texture_view_rules.m in the conformance crate, job m3-max-43677: Metal's validation layer stops each, (newLevelRange.location + newLevelRange.length)(4) must be <= [texture mipmapLevelCount](3), newLevelRange.length must not be 0 and (newSliceRange.location + newSliceRange.length)(4) must be <= (3) 1: crates/metal2vulkan-runtime/src/texture.rs (view) -
TextureViewSlices Texture::new_texture_view of a slice count the view's type does not take every device (a public call's own check of its arguments) metal-documented: Apple's makeTextureView(pixelFormat:textureType:levels:slices:) page: "The length value of the sliceRange parameter needs to be 6 if the new texture type value is MTLTextureType.typeCube, or a multiple of 6 if the new texture type value is MTLTextureType.typeCubeArray"; and measured on an Apple M3 Max, macOS 27.0.1: plain Metal asserts "newSliceRange.length(2) must equal (1) for textureType (MTLTextureType2D)" 1: crates/metal2vulkan-runtime/src/texture.rs (view) -
TextureViewFormat Texture::new_texture_view of a pixel format Metal does not view the texture as every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, probe texture_view_rules.m in the conformance crate, jobs m3-max-43677 and m3-max-59523: Metal's validation layer stops a view of another format of a texture of ShaderRead usage, R32Uint, RGBA8Uint, BGRA8Unorm and BGRA8Unorm_sRGB of RGBA8Unorm, A8Unorm, R8Snorm and R8Uint of R8Unorm, R16Unorm of RG8Unorm, "texture usage (0x01) doesn't specify MTLTextureUsagePixelFormatView (0x10)", and makes it where the usage adds PixelFormatView; plain Metal makes each, a blit out of it reading the texture's bytes; Apple's makeTextureView and MTLTextureUsage.pixelFormatView pages state the rest 2: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane), crates/metal2vulkan-runtime/src/texture.rs (view) -
MipmapFormat BlitCommandEncoder::generate_mipmaps of a texture of more than one level whose pixel format is not a colour-renderable, filterable one every device (a public call's own check of its arguments) metal-measured: Apple's generateMipmaps(for:) page: mipmap generation works only for textures with colour-renderable and colour-filterable pixel formats; Metal's API validation stops the others, measured on an Apple M3 Max and an M4 1: crates/metal2vulkan-runtime/src/blit.rs (generate_mipmaps) -
TextureCopyMismatch BlitCommandEncoder::copy_from_texture between textures of two pixel formats, or of two sample counts every device (a public call's own check of its arguments) metal-measured: an Apple M3 Max, macOS 27.0.1, probe blit_copy_format_pairs.m in the conformance crate: Metal's validation layer stops every pair of two formats it was given, sRGB, integer, float, channel order, depth and compressed pairs among them, with [sourceTexture pixelFormat](...) must equal [destinationTexture pixelFormat](...), and a source of four samples into one of one with [sourceTexture sampleCount](4) must equal [destinationTexture sampleCount](1) 1: crates/metal2vulkan-runtime/src/blit.rs (texture_copy) -
ManagedTextureBytes A Managed texture's bytes the device cannot copy in place (Device::new_managed_texture) every device (a public call's own check of its arguments) ours: a buffer-to-image copy reads a place only so laid out, and the consumer's bytes are the place the copy reads 5: crates/metal2vulkan-runtime/src/texture.rs (check_places), crates/metal2vulkan-runtime/src/texture.rs (named) (+2) -
BufferTextureLayout A texture over a buffer (Buffer::new_texture) whose rows are not a whole number of texels apart or are closer than a row, whose offset is not a... every device (a public call's own check of its arguments) ours: a linear image and a copy read rows whole texels apart from a texel's start, and texels past the buffer would lie in memory it does not hold 1: crates/metal2vulkan-runtime/src/texture.rs (check_over) -
HeapTexturePlace A heap texture whose image does not lie in its heap (Device::new_heap_texture, Device::new_heap_texture_for_views) every device (a public call's own check of its arguments) ours: an image bound past its heap's range would take memory the heap does not hold, and Vulkan binds an image only at its alignment 1: crates/metal2vulkan-runtime/src/texture.rs (make) -
DrawableDescriptor A drawable's texture (Device::new_drawable_texture) of a descriptor that is not a 2D texture of one level of the swapchain's image extent, or... every device (a public call's own check of its arguments) ours: the texture is the swapchain's image, which the descriptor states 1: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture) -
DrawableFormat A drawable's texture (Device::new_drawable_texture) over a swapchain whose image format is not the one the runtime holds the descriptor's pixel... every device (a public call's own check of its arguments) ours: the texture's views and copies read the image in the format the runtime holds the pixel format in 1: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture) -
DrawableUsage A drawable's texture (Device::new_drawable_texture) over a swapchain whose image usage lacks some of what the runtime's own texture of the... every device (a public call's own check of its arguments) ours: each of the texture's uses takes its image's usage 1: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture) -
NotDrawable Texture::drawable_acquired or CommandBuffer::present_drawable of a texture that is not over a swapchain's image, or a view of one every device (a public call's own check of its arguments) ours: only a swapchain's image is acquired and presented 2: crates/metal2vulkan-runtime/src/texture.rs (drawable_acquired), crates/metal2vulkan-runtime/src/texture.rs (present_turn) -
DrawableAcquired Texture::drawable_acquired of a drawable acquired and not presented since every device (a public call's own check of its arguments) ours: a swapchain's image is acquired again only once it was presented 1: crates/metal2vulkan-runtime/src/texture.rs (drawable_acquired) -
DrawableNotAcquired CommandBuffer::present_drawable of a drawable not acquired since its last present, or one a command buffer not yet committed already presents every device (a public call's own check of its arguments) ours: a swapchain's image is presented once for each acquire 1: crates/metal2vulkan-runtime/src/texture.rs (present_turn) -
DrawableSemaphoreRepeated CommandBuffer::present_drawable with a semaphore the command buffer already signals for another drawable every device (a public call's own check of its arguments) ours: Vulkan signals a binary semaphore only while it is unsignalled, and each present waits on a semaphore of its own 1: crates/metal2vulkan-runtime/src/command.rs (present_drawable) -
BufferCopyRange A copy between buffers (BlitCommandEncoder::copy_from_buffer_to_buffer) whose range, size bytes from offset, leaves the source or the... every device (a public call's own check of its arguments) metal-documented: Metal's validation stops a copy past either buffer's length 1: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer) -
BufferCopyUnaligned A copy between buffers whose source offset, destination offset or size is not a multiple of 4 every device (a public call's own check of its arguments) metal-documented: copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:: on macOS both offsets and the size are multiples of 4 1: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer) -
BufferCopyOverlap A copy between buffers whose source and destination share bytes every device (a public call's own check of its arguments) ours: Metal states no result for such a copy, and vkCmdCopyBuffer reads no byte it also writes, VUID-vkCmdCopyBuffer-pRegions-00117; the runtime does not emulate one 1: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer) -
AttachmentUsage A render pass attachment (CommandBuffer::render_command_encoder) whose texture was made without RenderTarget usage every device (a public call's own check of its arguments) metal-documented: a texture a render pass renders into needs MTLTextureUsageRenderTarget; Metal's validation stops the descriptor 1: crates/metal2vulkan-runtime/src/texture.rs (attachment) -
ResolveTexture A store action that resolves (MultisampleResolve or StoreAndMultisampleResolve), on a render pass attachment or set by its encoder, for an... every device (a public call's own check of its arguments) metal-documented: MTLRenderPass.h: resolveTexture is "Only used (and required) if the store action is set to MTLStoreActionMultisampleResolve" 2: crates/metal2vulkan-runtime/src/pass.rs (resolving), crates/metal2vulkan-runtime/src/render_encoder.rs (later_store) -
ResolveFormat A resolve of a render pass color attachment of an integer pixel format every device (a public call's own check of its arguments) metal-documented: Metal's validation asserts that an integer color format "cannot be a MSAA resolve target", and plain Metal writes values no sample holds 1: crates/metal2vulkan-runtime/src/pass.rs (check) -
AttachmentPlace A render pass attachment or resolve texture of a level or slice past its texture's every device (a public call's own check of its arguments) ours: no texel of the texture is there to render into 2: crates/metal2vulkan-runtime/src/texture.rs (attachment_view, 2 sites) -
AttachmentFormat A render pass color attachment of a depth or stencil pixel format, a depth attachment of a format without depth, or a stencil attachment of a... every device (a public call's own check of its arguments) metal-documented: a color attachment takes a color-renderable format, a depth attachment a format with depth and a stencil attachment a format with stencil; Metal's validation stops the descriptor 3: crates/metal2vulkan-runtime/src/pass.rs (check, 3 sites) -
VertexBufferOffset A draw whose vertex descriptor reads a vertex buffer at an offset at or past the buffer's length every device (a public call's own check of its arguments) metal-documented: a buffer's offset lies inside it; Metal's validation stops the bind 1: crates/metal2vulkan-runtime/src/render_encoder.rs (find) -
IndexBufferOffset An indexed draw whose index buffer offset is not a multiple of the index size, or whose indices leave the buffer every device (a public call's own check of its arguments) metal-documented: the offset is a multiple of the index size and the indices lie in the buffer; Metal's validation stops the draw 1: crates/metal2vulkan-runtime/src/render_encoder.rs (draw) -
TessellationFactorOffset A tessellation factor buffer whose factors, at its address plus the offset, start at an odd byte every device (a public call's own check of its arguments) metal-documented: setTessellationFactorBuffer:offset:instanceStride:'s offset is a multiple of 4; Metal's validation stops a patch draw with any other 1: crates/metal2vulkan-runtime/src/render_encoder.rs (set_tessellation_factor_buffer) -
ArgumentPlace An indirect dispatch's arguments, or an indexed draw's indices, at a byte of the allocation the buffer's block lies in (its device copy's, for a... every device (a public call's own check of its arguments) ours: vkCmdDispatchIndirect reads its arguments at a multiple of 4 in the VkBuffer, and vkCmdBindIndexBuffer takes indices at a multiple of their size in the memory; a Metal buffer starts at an aligned address, so Metal's offset rule alone keeps both aligned there 2: crates/metal2vulkan-runtime/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer), crates/metal2vulkan-runtime/src/render_encoder.rs (draw) -
ViewportNotFinite A viewport with a field that is NaN or infinite (but its origin's x, which draws nothing) every device (a public call's own check of its arguments) metal-measured: an Apple M4, macOS 27.0.1: Metal's validation stops a NaN or infinite origin; the other fields are taken by the same rule 1: crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewport) -
StencilAttachment A draw under a depth-stencil state that tests the stencil, in a pass without a stencil attachment every device (a public call's own check of its arguments) metal-measured: an Apple M4, macOS 27.0.1: Metal's validation stops the draw; plain Metal tests it against a hidden stencil of 0 that the runtime does not keep 1: crates/metal2vulkan-runtime/src/render_encoder.rs (draw) -

8. The runtime's Limit (Error::Limit(Limit))

Variant What it blocks Where Basis Sites Reach
BlockLen A block longer than one allocation and one buffer hold on the device (Device::take_block past maxMemoryAllocationSize or maxBufferSize) at the device's limit device: the device's maxMemoryAllocationSize and maxBufferSize 4: crates/metal2vulkan-runtime/src/import.rs (check_len), crates/metal2vulkan-runtime/src/memory.rs (round) (+2) -
BlockIds A block after every block number has been used (Device::take_block) every device (a public call's own check of its arguments) ours: block numbers are 32 bits 2: crates/metal2vulkan-runtime/src/memory.rs (allocation_number), crates/metal2vulkan-runtime/src/memory.rs (number) -
ThreadgroupMemory A dispatch whose threadgroup memory, the kernel's own and the lengths set (each rounded up to 16 bytes), is past the device's... at the device's limit device: the device's maxComputeSharedMemorySize 1: crates/metal2vulkan-runtime/src/encoder.rs (threadgroup_memory) -
ThreadgroupThreads A dispatch whose threadgroup is within Metal's maxTotalThreadsPerThreadgroup for the kernel and past the state's on this device at the device's limit device: the device's compute work-group and shared-memory limits 1: crates/metal2vulkan-runtime/src/encoder.rs (size_checked) -
BytesLength setBytes data longer than one parameter ring chunk every device (a public call's own check of its arguments) ours: a ring chunk is 64 KiB 2: crates/metal2vulkan-runtime/src/encoder.rs (set_bytes), crates/metal2vulkan-runtime/src/render_encoder.rs (set_bytes) -
IndexRange A grant of no indices, or one past its class's range (Device::grant_indices, [IndexClass::range]) every device (a public call's own check of its arguments) ours: the descriptor arrays are 65,536 sampled and 65,536 storage textures, one index of both a texture's, and 4,000 samplers of each use, and index 0 is nil 1: crates/metal2vulkan-runtime/src/arrays.rs (grant) -
TextureSize A texture whose extent or array layers are past what the device makes of its format, type, usage and sample count at the device's limit device: the image format query's maxExtent and maxArrayLayers 1: crates/metal2vulkan-runtime/src/texture.rs (plan) -
DeviceSamplers A sampler state whose device samplers would take the device past its maxSamplerAllocationCount, less the sampler arrays' two defaults... at the device's limit device: the device's maxSamplerAllocationCount 1: crates/metal2vulkan-runtime/src/sampler.rs (take) -
MemoryAllocations A VkDeviceMemory allocation past the device's maxMemoryAllocationCount live ones, refused before the driver is called at the device's limit device: the device's maxMemoryAllocationCount 1: crates/metal2vulkan-runtime/src/memory.rs (allocate) -
AllocationNotMapped A take that no free range fits made an allocation that the consumer's BlockMappings::map did not map every device (a public call's own check of its arguments) ours: the consumer's hook gave the allocation no place in its own address range 1: crates/metal2vulkan-runtime/src/memory.rs (own) -
NoImport An import of a handle the device does not take (Device::import_dma_buf and Device::import_dma_bufs on Unix, Device::import_host_memory, a... at the device's limit device: the device's extensions, features, queue family and external buffer properties 6: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane), crates/metal2vulkan-runtime/src/d3d11.rs (import_d3d11_surface) (+4) -
ImportType An import whose handle's memory type query offers no type the import takes, so nothing is imported at the device's limit device: the handle's memory type query and the buffer's or image's memory requirements 4: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane), crates/metal2vulkan-runtime/src/import.rs (import_dma_buf) (+2) -
ImportAlignment An import of no bytes, or one whose address or length is not a multiple of alignment at the device's limit device: minImportedHostPointerAlignment and the buffer's memory requirements 4: crates/metal2vulkan-runtime/src/import.rs (check_len), crates/metal2vulkan-runtime/src/import.rs (check_size) (+2) -
SparseAddressSpace An import over several dma-bufs (Device::import_dma_bufs, on Unix) whose sparse buffer would take the device's sparse address space past its... at the device's limit device: sparseAddressSpaceSize 1: crates/metal2vulkan-runtime/src/import.rs (reserve) -
NoExport An export of a handle the device does not give (Device::new_exported_block) at the device's limit device: the device's extensions and its external buffer properties 5: crates/metal2vulkan-runtime/src/export.rs (handle, 2 sites), crates/metal2vulkan-runtime/src/export.rs (new_exported_block) (+2) -
ExportType An export of a handle the device gives, but not in the one form an export takes (Device::new_exported_block) at the device's limit device: its extensions and the buffer's memory requirements 6: crates/metal2vulkan-runtime/src/export.rs (new_exported_block), crates/metal2vulkan-runtime/src/import.rs (surface_import) (+4) -
TextureSamples A multisample texture of a sample count the device does not make for its format, type and usage at the device's limit device: the image format query's sampleCounts 1: crates/metal2vulkan-runtime/src/texture.rs (plan) -

9. The runtime's Gap (Error::Unsupported(Gap))

Variant What it blocks Where Basis Sites Reach
IndirectCommandBuffers A compute pipeline state for indirect command buffers (supportIndirectCommandBuffers) every device (a public call's own check of its arguments) ours: indirect command buffers are not built 2: crates/metal2vulkan-runtime/src/pipeline.rs (compute_pipeline_state), crates/metal2vulkan-runtime/src/render.rs (refuse) -
KernelInput A kernel that reads something the compute encoder does not supply yet, kind naming what every device (a public call's own check of its arguments) ours: the encoder supplies only those 1: crates/metal2vulkan-runtime/src/pipeline.rs (gap) -
ImageblockLength An imageblock length Metal answers that no case measures every device (a public call's own check of its arguments) ours: the length is not measured against Metal's 2: crates/metal2vulkan-runtime/src/pipeline.rs (imageblock_memory_length_for_dimensions), crates/metal2vulkan-runtime/src/render.rs (imageblock_sample_length) -
PartialSimdgroups A dispatch whose threadgroup is not whole SIMD groups of a kernel whose tier runs each SIMD group as one subgroup of width threads (a pinned... every device (a public call's own check of its arguments) ours: no emulated-SIMD-group module 1: crates/metal2vulkan-runtime/src/encoder.rs (decide) -
PartialThreadgroups dispatchThreads with a grid that is not a whole number of threadgroups on some axis, of a kernel that observes its threadgroup partition and... every device (a public call's own check of its arguments) ours: the translator's partial-threadgroups variant does not take the emulated SIMD-group tier, nor a vote word past the workgroup memory 1: crates/metal2vulkan-runtime/src/encoder.rs (decide) -
NoStageInRegion A dispatch of a kernel that reads the stage-in region ([[grid_origin]], [[grid_size]]) on an encoder that never set one... every device (a public call's own check of its arguments) ours: no replay stream dispatches such a kernel without setting a region 1: crates/metal2vulkan-runtime/src/encoder.rs (dispatch) -
IndirectPrivateArena dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup: of a kernel whose private memory lives in the runtime's... every device (a public call's own check of its arguments) ours: no replay stream dispatches such a kernel indirectly 1: crates/metal2vulkan-runtime/src/encoder.rs (dispatch) -
MemorylessTexture A texture of Memoryless storage, which only render passes use every device (a public call's own check of its arguments) ours: render passes are not built 1: crates/metal2vulkan-runtime/src/texture.rs (checked) -
TextureBuffer A texture buffer (MTLTextureTypeTextureBuffer) every device (a public call's own check of its arguments) ours: no texel-buffer array; no replay stream or live session has used one; harvested guest render functions declare one in an argument buffer, validation's texture_buffer_member 2: crates/metal2vulkan-runtime/src/texture.rs (shape, 2 sites) -
CubeArrayTexture A cube array texture (MTLTextureTypeCubeArray), and so a view of one every device (a public call's own check of its arguments) ours: no replay stream makes a cube array texture or view; built when one does 2: crates/metal2vulkan-runtime/src/texture.rs (checked), crates/metal2vulkan-runtime/src/texture.rs (view) -
TextureFormat A texture of a pixel format the runtime makes no image of on this device for the descriptor's usage every device (a public call's own check of its arguments) ours: the device's format query, or the identity domains' shaders read every texture through its view alone 3: crates/metal2vulkan-runtime/src/texture.rs (attachment_view), crates/metal2vulkan-runtime/src/texture.rs (form) (+1) -
MipmapFilter BlitCommandEncoder::generate_mipmaps of a texture whose image the device's blits do not filter every device (a public call's own check of its arguments) ours: the device's format query; the levels are the device's blit chain alone 1: crates/metal2vulkan-runtime/src/blit.rs (generate_mipmaps) -
CubicSampler A sampler state whose minification or magnification filter is cubic (Device::new_sampler_state) every device (a public call's own check of its arguments) ours: the translator's identity domains do not filter bicubically, and Vulkan's cubic filter is not Metal's 1: crates/metal2vulkan-runtime/src/sampler.rs (new_sampler_state) -
LodClamps A sampler state bound with LOD clamps its samples read otherwise through (ComputeCommandEncoder::set_sampler_state_with_lod_clamps and the... every device (a public call's own check of its arguments) ours: no replay stream binds such clamps: every bind-time clamp the streams make reads as its state's own 1: crates/metal2vulkan-runtime/src/sampler.rs (clamps_at_bind) -
TextureBytes Texture::replace_region, Texture::get_bytes or a blit copy between a buffer and a texture (BlitCommandEncoder::copy_from_buffer) of a... every device (a public call's own check of its arguments) ours: no copy between such an image and bytes is built 4: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy), crates/metal2vulkan-runtime/src/blit.rs (with_option) (+2) -
FloatDepthUpload Texture::replace_region or BlitCommandEncoder::copy_from_buffer into a 32-bit float depth (Depth32Float) every device (a public call's own check of its arguments) ours: no upload of a 32-bit float depth is built 3: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy), crates/metal2vulkan-runtime/src/texture.rs (replace_region) (+1) -
TextureCopy BlitCommandEncoder::copy_from_texture that no single vkCmdCopyImage in the floor makes every device (a public call's own check of its arguments) ours: Vulkan 1.3 copies none of these with one command; each is built when a replay stream makes one; Apple's copy(from:sourceSlice:sourceLevel:sourceOrigin:sourceSize:to: page calls a copy between overlapping regions of one texture "unexpected behavior" 1: crates/metal2vulkan-runtime/src/blit.rs (texture_copy) -
TextureOverBuffer A texture over a buffer (Buffer::new_texture) the runtime does not make every device (a public call's own check of its arguments) ours: the in-place linear image and the copy form take one 2D color image 3: crates/metal2vulkan-runtime/src/texture.rs (check_over), crates/metal2vulkan-runtime/src/texture.rs (error) (+1) -
HeapTexture A heap texture the runtime does not place (Device::new_heap_texture, Device::new_heap_texture_for_views and Device::heap_texture_size_and_align) every device (a public call's own check of its arguments) ours: heap textures are built for Private heaps of placeable images 2: crates/metal2vulkan-runtime/src/texture.rs (heap_fit), crates/metal2vulkan-runtime/src/texture.rs (heap_source) -
SurfaceUsage A surface plane in place (Device::new_exported_surface) whose texture's uses ask an image usage its linear tiling lacks (storage, for one) at the device's limit device: the image format query and the format features of the plane's tiling 3: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane), crates/metal2vulkan-runtime/src/surface.rs (plane) (+1) -
D3d11SurfaceBuffer The buffer of a surface of Direct3D 11 textures (Surface::buffer of Device::import_d3d11_surface's, a Windows host's) every device (a public call's own check of its arguments) ours: each plane is a Direct3D 11 texture of its own, imported into memory of its own as an optimal image, so no one memory holds the picture's bytes for a buffer 1: crates/metal2vulkan-runtime/src/surface.rs (buffer) -
BufferCopyAlignment BlitCommandEncoder::copy_from_buffer or BlitCommandEncoder::copy_from_texture_to_buffer whose bytes no copy command in the floor addresses,... every device (a public call's own check of its arguments) ours: Vulkan 1.3 places a copy's rows in a buffer by a count of texels from an aligned offset; each is built when a replay stream makes one 1: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy) -
FillAlignment BlitCommandEncoder::fill_buffer of a range that does not start and end on whole 4-byte words of the bytes shaders reach, which Metal fills byte... every device (a public call's own check of its arguments) ours: vkCmdFillBuffer writes whole words; a byte fill is built when a replay stream makes one 1: crates/metal2vulkan-runtime/src/blit.rs (fill_range) -
RenderPipeline A render pipeline state of something the runtime does not build yet every device (a public call's own check of its arguments) ours: the replay streams' render pipelines draw into colour, depth and stencil attachments of one sample, with no tessellation and no framebuffer fetch; each other kind is built when a replay stream makes one 5: crates/metal2vulkan-runtime/src/render.rs (draw_input), crates/metal2vulkan-runtime/src/render.rs (of, 3 sites) (+1) -
SwizzledReadWrite A draw or dispatch whose function declares access::read_write at texture slot slot and reads it, where the texture bound there has a swizzle... every device (a public call's own check of its arguments) ours: built when a replay stream counts one 2: crates/metal2vulkan-runtime/src/encoder.rs (dispatch), crates/metal2vulkan-runtime/src/render_encoder.rs (find) -
StorageElement A draw or dispatch whose function writes a texture slot, or reads one through its storage image (access::read_write), bound to a texture made... every device (a public call's own check of its arguments) ours: the storage element through a view of the nearest format whose storage Vulkan requires of every device, with the translator's conversion, is the form to build 4: crates/metal2vulkan-runtime/src/encoder.rs (dispatch, 2 sites), crates/metal2vulkan-runtime/src/render_encoder.rs (find, 2 sites) -
BicubicTexels A dispatch or a draw whose function samples texture slot slot through a constexpr sampler with Metal's bicubic filter (filter::bicubic), where... every device (a public call's own check of its arguments) ours: each refused format's treatment is built when a guest binds one 2: crates/metal2vulkan-runtime/src/encoder.rs (dispatch), crates/metal2vulkan-runtime/src/render_encoder.rs (find) -
TextureView Texture::new_texture_view of a kind Metal makes and the runtime does not build every device (a public call's own check of its arguments) ours: the replay streams' views that compute binds are same-format views of every slice, 2D views of one slice of a 2D array, and level subranges, swizzled or not; each other kind is built when a replay stream binds one 1: crates/metal2vulkan-runtime/src/texture.rs (view) -
RenderPass A render pass of something the runtime does not build yet (CommandBuffer::render_command_encoder) every device (a public call's own check of its arguments) ours: the replay streams' passes render into one to two color attachments and a stencil or a depth attachment, each a level of a 2D texture of one sample, with no resolve and a clear depth of 1, none naming two textures for its depth and stencil; each other kind is built when a replay stream makes one; DepthStencilViews and ClearDepth are what Vulkan's rendering under the floor takes no form of 6: crates/metal2vulkan-runtime/src/pass.rs (check), crates/metal2vulkan-runtime/src/pass.rs (ops) (+4) -
Draw A draw or render encoder state the runtime does not build yet (RenderCommandEncoder) every device (a public call's own check of its arguments) ours: the replay streams draw lines and triangles through one viewport Vulkan's is, with pipeline states of their pass's formats, filled and clipped; each other kind is built when a replay stream draws one), and device for [DrawKind::DividedBaseInstance] (a device that does not report supportsNonZeroFirstInstance 12: crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites), crates/metal2vulkan-runtime/src/render_encoder.rs (draw) (+8) -
LinearPlanePass A render pass over a surface plane that renders as a linear colour attachment alone, in a shape the device does not render... at the device's limit device: VK_NV_linear_color_attachment renders such a format as a colour attachment only "as long as all the color attachments in the render pass instance have VK_IMAGE_TILING_LINEAR tiling"; the RTX 3090's driver lost the device rendering a linear colour attachment beside a depth or stencil attachment 1: crates/metal2vulkan-runtime/src/pass.rs (check) -

Appendix: every site

Each refusal's sites, with the function that builds it.

  • feature::LibraryKind: crates/metal2vulkan-air/src/container/mtlb.rs (parse); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::Stage: crates/metal2vulkan-air/src/abi/check.rs (unsupported_stage); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::AddressSpace: crates/metal2vulkan-air/src/ir/types.rs (from_raw); crates/metal2vulkan/src/memory/plan.rs (reprs)
  • feature::ModuleRecord: crates/metal2vulkan-air/src/bitcode/module.rs (function); crates/metal2vulkan-air/src/bitcode/module.rs (global); crates/metal2vulkan-air/src/bitcode/module.rs (record); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::Instruction: crates/metal2vulkan-air/src/bitcode/function.rs (call, 2 sites); crates/metal2vulkan-air/src/bitcode/function.rs (record, 8 sites); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::Type: crates/metal2vulkan-air/src/bitcode/types.rs (decode, 3 sites); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::CallingConvention: crates/metal2vulkan-air/src/bitcode/function.rs (call); crates/metal2vulkan-air/src/bitcode/module.rs (function); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::UnknownIntrinsic: crates/metal2vulkan-air/src/error.rs (from); crates/metal2vulkan/src/lower/select.rs (route)
  • feature::AgxUnmodeled: crates/metal2vulkan/src/lower/simd/agx.rs (unmodeled)
  • feature::StaticInitializer: crates/metal2vulkan-air/src/error.rs (from)
  • feature::Recursion: crates/metal2vulkan-air/src/canon/mod.rs (recursion, 2 sites); crates/metal2vulkan-air/src/canon/recursion.rs (dynamic_alloca); crates/metal2vulkan-air/src/canon/static_init.rs (run)
  • feature::DynamicCall: crates/metal2vulkan-air/src/canon/devirt.rs (record); crates/metal2vulkan-air/src/canon/devirt.rs (site); crates/metal2vulkan-air/src/canon/devirt.rs (unfolded_decl); crates/metal2vulkan-air/src/canon/mod.rs (post_check); crates/metal2vulkan-air/src/canon/prune.rs (prune_in); crates/metal2vulkan/src/bind/heap.rs (directory_bytes, 3 sites); crates/metal2vulkan/src/lower/select.rs (route_air)
  • feature::InlineAsm: crates/metal2vulkan-air/src/canon/mod.rs (post_check)
  • feature::Linking: crates/metal2vulkan-air/src/canon/link.rs (not_implemented); crates/metal2vulkan-air/src/canon/mod.rs (post_check); crates/metal2vulkan-air/src/canon/mod.rs (specialize_dynamic)
  • feature::SimdWidth: crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier); crates/metal2vulkan/src/lower/simd/mod.rs (finish)
  • feature::LocalSize: crates/metal2vulkan/src/bind/dispatch.rs (regions)
  • feature::IrreducibleConvergent: crates/metal2vulkan/src/structurize/irreducible.rs (refuse_tangled)
  • feature::ComputeDerivativesWithSimd: crates/metal2vulkan/src/lower/dispatch.rs (plan_kernel)
  • feature::ComputeDerivatives: crates/metal2vulkan/src/bind/dispatch.rs (check_local); crates/metal2vulkan/src/lower/sync/barrier.rs (select_derivative, 3 sites)
  • feature::QuadOperations: crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier, 2 sites)
  • feature::SimdgroupMatrix: crates/metal2vulkan/src/lower/simd/matrix.rs (not_implemented)
  • feature::SimdgroupMatrix16x16x16: crates/metal2vulkan/src/lower/simd/matrix.rs (select)
  • feature::ArgumentBufferPointers: crates/metal2vulkan/src/device/metal.rs (unsupported_features)
  • feature::ArgumentBufferTextures: crates/metal2vulkan/src/bind/heap.rs (array); crates/metal2vulkan/src/bind/heap.rs (member_texel_view, 2 sites); crates/metal2vulkan/src/bind/heap.rs (member_view, 4 sites); crates/metal2vulkan/src/bind/heap.rs (new); crates/metal2vulkan/src/lower/access/handle.rs (select); crates/metal2vulkan/src/lower/sampler/select.rs (select_one); crates/metal2vulkan/src/lower/sampler/select.rs (select_sampling); crates/metal2vulkan/src/lower/texture/atomic.rs (select); crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap, 2 sites); crates/metal2vulkan/src/pipeline/link.rs (heap_set)
  • feature::ArgumentBufferObjects: crates/metal2vulkan/src/lower/access/encode.rs (select_command, 3 sites); crates/metal2vulkan/src/memory/provenance.rs (access); crates/metal2vulkan/src/memory/provenance.rs (classify)
  • feature::DereferenceLoadedPointer: crates/metal2vulkan/src/lower/access/dynamic.rs (plan_misses); crates/metal2vulkan/src/lower/access/local.rs (access_ptr); crates/metal2vulkan/src/lower/access/local.rs (threadgroup_constant_refusal); crates/metal2vulkan/src/memory/plan.rs (analyze)
  • feature::PointerToInteger: crates/metal2vulkan/src/lower/access/dynamic.rs (require_addresses)
  • feature::PointerCompare: crates/metal2vulkan/src/lower/access/copy.rs (addressed)
  • feature::HandleAsPointer: crates/metal2vulkan/src/lower/access/handle.rs (domain_kind); crates/metal2vulkan/src/lower/access/handle.rs (element, 2 sites); crates/metal2vulkan/src/memory/plan.rs (reprs); crates/metal2vulkan/src/memory/provenance.rs (classify); crates/metal2vulkan/src/memory/provenance.rs (seed)
  • feature::ConstantGlobalEscaping: crates/metal2vulkan/src/memory/plan.rs (blob_nodes); crates/metal2vulkan/src/memory/plan.rs (serialize)
  • feature::ThreadgroupMemorySize: crates/metal2vulkan/src/bind/plan/compute.rs (plan); crates/metal2vulkan/src/memory/arena.rs (check); crates/metal2vulkan/src/memory/plan.rs (too_large)
  • feature::ZeroedThreadgroupMemory: crates/metal2vulkan/src/lower/access/local.rs (zero_threadgroup)
  • feature::CoherentMemory: crates/metal2vulkan/src/lower/sync/memory_model.rs (check)
  • feature::Int64Atomics: crates/metal2vulkan/src/lower/access/atomic.rs (select, 2 sites)
  • feature::ImageAtomics: crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format)
  • feature::DescriptorCount: crates/metal2vulkan/src/lower/access/mod.rs (accept_placement); crates/metal2vulkan/src/lower/select.rs (finish); crates/metal2vulkan/src/pipeline/link.rs (limit_error)
  • feature::StageSize: crates/metal2vulkan/src/pipeline/compile/stage_bound.rs (refused)
  • feature::BufferRange: crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites); crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers); crates/metal2vulkan/src/lower/access/function_table.rs (select); crates/metal2vulkan/src/lower/access/mod.rs (place_slots)
  • feature::Int64Arithmetic: crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar); crates/metal2vulkan/src/lower/select.rs (selector_form)
  • feature::Float64Arithmetic: crates/metal2vulkan/src/device/metal.rs (unsupported_features); crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)
  • feature::Format: crates/metal2vulkan/src/bind/heap.rs (array); crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler); crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites); crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features); crates/metal2vulkan/src/bind/sample_interleave.rs (finish); crates/metal2vulkan/src/bind/sample_interleave.rs (interleave_split_module); crates/metal2vulkan/src/lower/access/tile.rs (storage_format); crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 5 sites); crates/metal2vulkan/src/lower/fragment/fetch.rs (blended_extended_range); crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_blend, 6 sites); crates/metal2vulkan/src/lower/fragment/fetch.rs (select_output, 3 sites); crates/metal2vulkan/src/lower/fragment/fetch.rs (select_read); crates/metal2vulkan/src/lower/fragment/input_blend.rs (rotated); crates/metal2vulkan/src/lower/sampler/select.rs (select_extended); crates/metal2vulkan/src/lower/sampler/select.rs (texel_in); crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan, 2 sites); crates/metal2vulkan/src/lower/stage_io/plan.rs (entry); crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output); crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan); crates/metal2vulkan/src/lower/texture/mod.rs (cross_class); crates/metal2vulkan/src/lower/texture/mod.rs (select); crates/metal2vulkan/src/lower/texture/mod.rs (select_image); crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites); crates/metal2vulkan/src/lower/texture/mod.rs (select_write); crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites); crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 2 sites); crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites); crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites); crates/metal2vulkan/src/metal/format/mod.rs (candidates); crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites); crates/metal2vulkan/src/metal/format/mod.rs (storage_choice); crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites); crates/metal2vulkan/src/metal/vertex.rs (fetch_as, 2 sites); crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader); crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites); crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 3 sites); crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites); crates/metal2vulkan/src/pipeline/link/graphics.rs (textured_fetches); crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend); crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)
  • feature::DivergentImplicitLod: crates/metal2vulkan/src/lower/sampler/select.rs (tangled)
  • feature::ImplicitLodOutsideFragment: crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level); crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured); crates/metal2vulkan/src/lower/sampler/select.rs (query_min_level)
  • feature::MinLodClamp: crates/metal2vulkan/src/lower/sampler/select.rs (min_lod); crates/metal2vulkan/src/lower/sampler/select.rs (select_one)
  • feature::TexelOffset: crates/metal2vulkan/src/lower/sampler/select.rs (in_device_range); crates/metal2vulkan/src/lower/sampler/select.rs (offset)
  • feature::GatherExtended: crates/metal2vulkan/src/lower/sampler/select.rs (dynamic_offset)
  • feature::StorageImageMultisample: crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot)
  • feature::StorageTextureInVertexStage: crates/metal2vulkan/src/lower/texture/slot.rs (stage_stores)
  • feature::CubeArray: crates/metal2vulkan/src/lower/sampler/select.rs (select_one); crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap)
  • feature::SamplerAnisotropy: crates/metal2vulkan/src/metal/sampler.rs (check_argument_sampler)
  • feature::SamplerBorderColor: crates/metal2vulkan/src/metal/sampler.rs (border_read, 4 sites)
  • feature::SamplerLodBias: crates/metal2vulkan/src/lower/sampler/constexpr.rs (constexpr_desc, 3 sites)
  • feature::SamplerCompare: crates/metal2vulkan/src/metal/sampler.rs (check_sampler)
  • feature::PixelSamplerCompare: crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered)
  • feature::TexelBuffer: crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites); crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)
  • feature::RasterOrderGroups: crates/metal2vulkan/src/device/metal.rs (unsupported_features); crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites); crates/metal2vulkan/src/lower/fragment/snapshot.rs (finish)
  • feature::FramebufferFetch: crates/metal2vulkan/src/bind/sample_planes.rs (finish); crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (packed16); crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (srgb8); crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (unorm8, 3 sites); crates/metal2vulkan/src/lower/fragment/color.rs (unordered); crates/metal2vulkan/src/lower/fragment/fetch.rs (not_implemented); crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample); crates/metal2vulkan/src/lower/fragment/fetch.rs (storage_form); crates/metal2vulkan/src/lower/fragment/fetch.rs (unordered_extended_fetch); crates/metal2vulkan/src/pipeline/link/fetch.rs (storage_attachments)
  • feature::PrimitiveId: crates/metal2vulkan/src/lower/stage_io/plan.rs (finish); crates/metal2vulkan/src/pipeline/link/varyings.rs (check_primitive_id)
  • feature::PrivatePrimitives: crates/metal2vulkan/src/lower/stage_io/plan.rs (indices_feature)
  • feature::VertexAmplification: crates/metal2vulkan/src/bind/graphics.rs (multiview_instances); crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store); crates/metal2vulkan/src/lower/tessellation/mod.rs (select_param); crates/metal2vulkan/src/pipeline/link/graphics.rs (vertex_amplification); crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (control_plan)
  • feature::LayeredRendering: crates/metal2vulkan/src/lower/mesh/mod.rs (target_index, 2 sites); crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store); crates/metal2vulkan/src/pipeline/link/geometry.rs (not_implemented); crates/metal2vulkan/src/pipeline/link/geometry.rs (refused)
  • feature::ClipDistance: crates/metal2vulkan/src/lower/mesh/mod.rs (select, 2 sites)
  • feature::DualSourceBlending: crates/metal2vulkan/src/metal/state.rs (blend_factor); crates/metal2vulkan/src/pipeline/link/graphics.rs (check_outputs); crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)
  • feature::Barycentrics: crates/metal2vulkan/src/device/metal.rs (unsupported_features); crates/metal2vulkan/src/lower/stage_io/plan.rs (param); crates/metal2vulkan/src/pipeline/link/geometry.rs (not_implemented); crates/metal2vulkan/src/pipeline/link/geometry.rs (refused)
  • feature::StencilExport: crates/metal2vulkan/src/bind/graphics.rs (shadow_stencil_words); crates/metal2vulkan/src/lower/fragment/stencil.rs (device_form); crates/metal2vulkan/src/lower/fragment/stencil.rs (not_implemented); crates/metal2vulkan/src/pipeline/link/stencil.rs (shadow_stencil, 2 sites)
  • feature::SampleRateShading: crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations, 3 sites)
  • feature::PullModelInterpolation: crates/metal2vulkan/src/lower/fragment/interpolate.rs (select, 2 sites); crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant, 2 sites); crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant_reads)
  • feature::DivergentInterpolation: crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant_reads)
  • feature::PixelCoverageAtSampleRate: crates/metal2vulkan/src/lower/simd/mod.rs (select_param); crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations)
  • feature::InterfaceComponents: crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state); crates/metal2vulkan/src/pipeline/link/varyings.rs (assign); crates/metal2vulkan/src/pipeline/link/varyings.rs (limit_error)
  • feature::UnmatchedVarying: crates/metal2vulkan/src/pipeline/link/varyings.rs (mesh_fragment); crates/metal2vulkan/src/pipeline/link/varyings.rs (varyings, 2 sites)
  • feature::KernelStageIn: crates/metal2vulkan/src/lower/stage_io/stage_in.rs (select)
  • feature::VertexStepRate: crates/metal2vulkan/src/metal/vertex.rs (divided)
  • feature::VertexInputLayout: crates/metal2vulkan/src/pipeline/link/vertex.rs (resolve, 4 sites)
  • feature::Tessellation: crates/metal2vulkan-air/src/canon/mod.rs (post_check, 2 sites); crates/metal2vulkan/src/lower/stage_io/fetch.rs (select); crates/metal2vulkan/src/lower/stage_io/plan.rs (input_builtin); crates/metal2vulkan/src/lower/stage_io/plan.rs (param); crates/metal2vulkan/src/lower/stage_io/plan.rs (primitive_id_output); crates/metal2vulkan/src/lower/tessellation/mod.rs (not_implemented); crates/metal2vulkan/src/lower/tessellation/mod.rs (plan_entry, 2 sites); crates/metal2vulkan/src/metal/vertex.rs (fetch_as); crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (check_fragment); crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (control_plan, 2 sites)
  • feature::MeshShading: crates/metal2vulkan/src/bind/graphics.rs (mesh_limit); crates/metal2vulkan/src/bind/graphics.rs (plan); crates/metal2vulkan/src/lower/mesh/mod.rs (check_payload); crates/metal2vulkan/src/lower/mesh/mod.rs (plan_entry, 2 sites); crates/metal2vulkan/src/memory/plan.rs (reprs)
  • feature::TileShading: crates/metal2vulkan/src/bind/plan/compute.rs (tile_memory); crates/metal2vulkan/src/lower/access/tile.rs (not_implemented); crates/metal2vulkan/src/lower/sync/barrier.rs (tile_shading); crates/metal2vulkan/src/pipeline/compile/api.rs (tile_pipeline)
  • feature::Imageblocks: crates/metal2vulkan/src/lower/access/imageblock.rs (imageblocks); crates/metal2vulkan/src/lower/access/mod.rs (select_param); crates/metal2vulkan/src/lower/fragment/imageblock.rs (not_implemented); crates/metal2vulkan/src/lower/fragment/imageblock.rs (reach); crates/metal2vulkan/src/lower/fragment/imageblock.rs (require); crates/metal2vulkan/src/lower/texture/mod.rs (select); crates/metal2vulkan/src/lower/texture/slice.rs (imageblocks); crates/metal2vulkan/src/pipeline/link/imageblock.rs (fragment_imageblock)
  • feature::RayTracing: crates/metal2vulkan/src/bind/acceleration.rs (instance_record, 2 sites); crates/metal2vulkan/src/lower/raytracing/mod.rs (instance_count); crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 5 sites); crates/metal2vulkan/src/lower/raytracing/mod.rs (primitive_data_read); crates/metal2vulkan/src/lower/raytracing/mod.rs (select_param); crates/metal2vulkan/src/lower/raytracing/mod.rs (slot_of); crates/metal2vulkan/src/lower/select.rs (route_air)
  • feature::Tensors: crates/metal2vulkan-air/src/canon/matmul2d/synth.rs (refuse); crates/metal2vulkan/src/lower/select.rs (route_air)
  • feature::RasterizationRateMap: crates/metal2vulkan/src/lower/stage_io/plan.rs (region_copy, 3 sites); crates/metal2vulkan/src/lower/stage_io/plan.rs (region_viewport, 2 sites); crates/metal2vulkan/src/pipeline/link.rs (region_box); crates/metal2vulkan/src/pipeline/link/geometry.rs (check_limits); crates/metal2vulkan/src/pipeline/link/geometry.rs (fan_plan, 3 sites)
  • feature::GpuEncodedIndirectCommands: crates/metal2vulkan/src/bind/replay.rs (preprocess); crates/metal2vulkan/src/bind/replay.rs (replay_preprocess_module); crates/metal2vulkan/src/bind/replay/draws.rs (draw_replay_module); crates/metal2vulkan/src/bind/replay/draws.rs (draw_replay_preprocess); crates/metal2vulkan/src/bind/replay/merged.rs (draw_merge_module); crates/metal2vulkan/src/lower/access/encode.rs (needs, 3 sites); crates/metal2vulkan/src/lower/access/encode.rs (select_command); crates/metal2vulkan/src/lower/access/mod.rs (plan_replay, 3 sites); crates/metal2vulkan/src/lower/mesh/mod.rs (plan_partial_groups); crates/metal2vulkan/src/lower/select.rs (finish, 2 sites); crates/metal2vulkan/src/lower/simd/divergent.rs (barriers); crates/metal2vulkan/src/lower/stage_io/plan.rs (merged); crates/metal2vulkan/src/lower/stage_io/plan.rs (param); crates/metal2vulkan/src/pipeline/compile.rs (analyze_one, 2 sites)
  • feature::VulkanVersion: crates/metal2vulkan/src/ash_interop/query.rs (query); crates/metal2vulkan/src/device/derive.rs (from_queries)
  • feature::PushWindow: crates/metal2vulkan/src/device/derive.rs (from_queries)
  • feature::IdentityDomains: crates/metal2vulkan/src/device/derive.rs (identity_domains); crates/metal2vulkan/src/lower/sampler/anisotropic.rs (select); crates/metal2vulkan/src/lower/sampler/mod.rs (finish); crates/metal2vulkan/src/lower/select.rs (identity_admits); crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst); crates/metal2vulkan/src/lower/texture/slot.rs (storage_format); crates/metal2vulkan/src/pipeline/link.rs (identity_set)
  • feature::Constant: crates/metal2vulkan-air/src/bitcode/constants.rs (record, 2 sites); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::Attribute: crates/metal2vulkan-air/src/bitcode/attrs.rs (known); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::BitcodeRecord: crates/metal2vulkan-air/src/bitcode/attrs.rs (decode_lists); crates/metal2vulkan-air/src/bitcode/function.rs (symtab); crates/metal2vulkan-air/src/bitcode/metadata.rs (decode, 2 sites); crates/metal2vulkan-air/src/bitcode/module.rs (check_bodies); crates/metal2vulkan-air/src/bitcode/module.rs (read); crates/metal2vulkan-air/src/bitcode/module.rs (symtab); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::SyncScope: crates/metal2vulkan-air/src/bitcode/function.rs (atomic); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::SubgroupOperations: crates/metal2vulkan/src/lower/simd/mod.rs (full_quads); crates/metal2vulkan/src/lower/simd/mod.rs (select_group)
  • feature::DirectCall: crates/metal2vulkan-air/src/canon/mod.rs (post_check)
  • feature::WideSwitchLiteral: crates/metal2vulkan/src/structurize/emit.rs (check_tree)
  • feature::Lowering: crates/metal2vulkan/src/bind/plan/resources.rs (level_views); crates/metal2vulkan/src/lower/access/handle.rs (domain_kind); crates/metal2vulkan/src/lower/access/handle.rs (sampler_target); crates/metal2vulkan/src/lower/access/handle.rs (texture_target); crates/metal2vulkan/src/lower/access/imageblock.rs (operand); crates/metal2vulkan/src/lower/access/mod.rs (not_lowered); crates/metal2vulkan/src/lower/access/pulled.rs (share); crates/metal2vulkan/src/lower/arith/legal.rs (not_lowered); crates/metal2vulkan/src/lower/dispatch.rs (not_lowered); crates/metal2vulkan/src/lower/fragment/discard.rs (not_lowered); crates/metal2vulkan/src/lower/fragment/discard.rs (plan); crates/metal2vulkan/src/lower/fragment/mod.rs (not_lowered); crates/metal2vulkan/src/lower/fragment/snapshot.rs (finish); crates/metal2vulkan/src/lower/mesh/mod.rs (not_lowered); crates/metal2vulkan/src/lower/raytracing/mod.rs (not_lowered); crates/metal2vulkan/src/lower/sampler/mod.rs (refuse); crates/metal2vulkan/src/lower/sampler/select.rs (refuse); crates/metal2vulkan/src/lower/select.rs (not_lowered); crates/metal2vulkan/src/lower/select.rs (route_air, 2 sites); crates/metal2vulkan/src/lower/simd/mod.rs (not_lowered); crates/metal2vulkan/src/lower/simd/mod.rs (select_param); crates/metal2vulkan/src/lower/simd/workgroup.rs (check); crates/metal2vulkan/src/lower/stage_io/fetch.rs (not_lowered); crates/metal2vulkan/src/lower/stage_io/mod.rs (not_lowered); crates/metal2vulkan/src/lower/sync/barrier.rs (not_lowered); crates/metal2vulkan/src/lower/sync/memory_model.rs (not_implemented); crates/metal2vulkan/src/lower/sync/memory_model.rs (select); crates/metal2vulkan/src/lower/tessellation/mod.rs (not_lowered); crates/metal2vulkan/src/lower/texture/mod.rs (refuse); crates/metal2vulkan/src/lower/texture/mod.rs (select_through); crates/metal2vulkan/src/lower/texture/mod.rs (select_write); crates/metal2vulkan/src/memory/alloca.rs (not_lowered); crates/metal2vulkan/src/memory/leaf.rs (not_lowered); crates/metal2vulkan/src/memory/plan.rs (not_lowered); crates/metal2vulkan/src/memory/provenance.rs (not_lowered); crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (patch_fetch_projection)
  • feature::SamplerAddressMode: crates/metal2vulkan/src/lower/sampler/constexpr.rs; crates/metal2vulkan/src/metal/sampler.rs (check_sampler)
  • feature::AlphaToOne: crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state)
  • feature::StageStoresAndAtomics: crates/metal2vulkan/src/lower/access/tile_memory.rs (written)
  • feature::FunctionConstantArgument: crates/metal2vulkan-air/src/canon/interface.rs (absent_values)
  • feature::SamplerBicubicFilter: crates/metal2vulkan/src/bind/heap.rs (new); crates/metal2vulkan/src/bind/plan/resources.rs (bicubic_texels); crates/metal2vulkan/src/bind/plan/slots.rs (cubic_variant); crates/metal2vulkan/src/lower/sampler/bicubic.rs (refuse); crates/metal2vulkan/src/lower/sampler/select.rs (bicubic_refused)
  • feature::GroupCount: crates/metal2vulkan/src/bind/dispatch.rs (2 sites); crates/metal2vulkan/src/bind/dispatch.rs (product); crates/metal2vulkan/src/bind/dispatch.rs (regions); crates/metal2vulkan/src/bind/graphics.rs (mesh_draw)
  • feature::IntersectionFunctionTable: crates/metal2vulkan/src/bind/acceleration.rs (geometry_table_offset, 3 sites); crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 2 sites); crates/metal2vulkan/src/lower/raytracing/mod.rs (null_table); crates/metal2vulkan/src/lower/raytracing/mod.rs (select_table); crates/metal2vulkan/src/lower/raytracing/mod.rs (table_of); crates/metal2vulkan/src/lower/select.rs (route_air)
  • feature::IndependentBlending: crates/metal2vulkan/src/pipeline/link/graphics.rs (uniform_blend)
  • feature::RasterSampleCount: crates/metal2vulkan/src/pipeline/graphics.rs (sample_count_properties)
  • feature::TriangleFillLines: crates/metal2vulkan/src/metal/state.rs (polygon_mode)
  • feature::TriangleFillPoints: crates/metal2vulkan/src/metal/state.rs (polygon_mode)
  • feature::DepthClipClamp: crates/metal2vulkan/src/metal/state.rs (depth_clamp_enable)
  • feature::DepthBiasClamp: crates/metal2vulkan/src/metal/state.rs (depth_bias)
  • feature::ConstantAlphaBlendFactor: crates/metal2vulkan/src/metal/state.rs (check_constant_alpha)
  • feature::SparseTexture: crates/metal2vulkan/src/bind/plan/slots.rs (check_sparse_textures, 2 sites)
  • feature::TextureSwizzle: crates/metal2vulkan/src/bind/heap.rs (member_texel_view); crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture); crates/metal2vulkan/src/lower/sampler/select.rs (select_one); crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as); crates/metal2vulkan/src/lower/texture/mod.rs (select_write); crates/metal2vulkan/src/lower/texture/slice.rs (select)
  • feature::PrivateMemory: crates/metal2vulkan/src/lower/access/local.rs (device_arena)
  • feature::Reflection: crates/metal2vulkan/src/reflection/derive.rs (gap_at); crates/metal2vulkan/src/reflection/derive.rs (read_attributes); crates/metal2vulkan/src/reflection/derive.rs (specialized_reads); crates/metal2vulkan/src/reflection/function.rs (attribute); crates/metal2vulkan/src/reflection/function.rs (module_constants); crates/metal2vulkan/src/reflection/function.rs (unmeasured); crates/metal2vulkan/src/reflection/linked.rs (function); crates/metal2vulkan/src/reflection/mod.rs (kernel_stage)
  • feature::IndirectRenderState: crates/metal2vulkan/src/lower/access/encode.rs (select_command)
  • feature::GlobalBuiltinInFragment: crates/metal2vulkan/src/lower/select.rs (route_air)
  • feature::PrivateRenderState: crates/metal2vulkan/src/bind/heap.rs (array); crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding); crates/metal2vulkan/src/lower/sampler/select.rs (clamps_reference); crates/metal2vulkan/src/lower/stage_io/plan.rs (alpha_test_refused); crates/metal2vulkan/src/lower/texture/mod.rs (mode_rounded_write); crates/metal2vulkan/src/pipeline/private_state.rs (logic_operation); crates/metal2vulkan/src/pipeline/private_state.rs (refused)
  • feature::ExtendedRangeBlend: crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused); crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output); crates/metal2vulkan/src/lower/fragment/fetch.rs (plan, 3 sites)
  • feature::ProgramScopeBinding: crates/metal2vulkan-air/src/abi/module.rs (decode); crates/metal2vulkan/src/error/mod.rs (from)
  • feature::GenericPointer: crates/metal2vulkan-air/src/canon/generic.rs (refuse); crates/metal2vulkan-air/src/canon/generic.rs (refused)
  • feature::SeqCstFence: crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)
  • feature::PostDepthCoverage: crates/metal2vulkan/src/lower/stage_io/plan.rs (param)
  • feature::WideLines: crates/metal2vulkan/src/pipeline/link/band.rs (plan, 3 sites)
  • bind::DescriptorRangeExceeded: crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)
  • bind::TexelBufferTooLarge: crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges)
  • bind::HeapTooLarge: crates/metal2vulkan/src/bind/heap.rs (directory_bytes); crates/metal2vulkan/src/bind/heap.rs (heap_elements); crates/metal2vulkan/src/bind/heap.rs (listed_sampler_tables); crates/metal2vulkan/src/bind/heap.rs (new, 3 sites); crates/metal2vulkan/src/bind/heap.rs (placed)
  • bind::TessellationFactorRange: crates/metal2vulkan/src/bind/graphics.rs (patch_binding)
  • bind::PatchIndexRange: crates/metal2vulkan/src/bind/graphics.rs (patch_binding)
  • bind::ControlPointIndexRange: crates/metal2vulkan/src/bind/graphics.rs (patch_binding)
  • bind::MissingStageInRegion: crates/metal2vulkan/src/bind/dispatch.rs (instantiate)
  • bind::UniformViewAliased: crates/metal2vulkan/src/bind/instantiate.rs (check_uniform_aliasing)
  • bind::MissingDeviceAddress: crates/metal2vulkan/src/bind/plan/slots.rs (plan_buffer); crates/metal2vulkan/src/bind/replay/draws.rs (parent_entries)
  • limit::InlinedInstructions: crates/metal2vulkan-air/src/canon/inline.rs (inline); crates/metal2vulkan-air/src/canon/inline.rs (u32_of); crates/metal2vulkan-air/src/canon/inline.rs (usize_of)
  • limit::OutputBlocks: crates/metal2vulkan/src/structurize/irreducible.rs (round); crates/metal2vulkan/src/structurize/mod.rs (structure_loops); crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (output_cap_is_checked_before_allocating); crates/metal2vulkan/src/structurize/structurizer_properties/trees.rs (the_output_cap_is_checked_before_emission)
  • limit::IrreducibleDepth: crates/metal2vulkan-air/src/graph/loops.rs (compute_in); crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (check_within_depth); crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (irreducible_nesting_beyond_the_cap_is_refused, 2 sites)
  • limit::SpirvWords: crates/metal2vulkan/src/lower/estimate.rs (check); crates/metal2vulkan/src/lower/estimate.rs (check_emitted)
  • limit::WorkUnits: crates/metal2vulkan-air/src/budget/mod.rs (counted)
  • limit::LedgerBytes: crates/metal2vulkan-air/src/bitstream/mod.rs (count); crates/metal2vulkan-air/src/budget/mod.rs (charge); crates/metal2vulkan-air/src/budget/mod.rs (grow, 2 sites); crates/metal2vulkan-air/src/budget/mod.rs (reserve); crates/metal2vulkan-air/src/budget/mod.rs (reserve_exact, 2 sites); crates/metal2vulkan-air/src/graph/mod.rs (grow); crates/metal2vulkan/src/spirv/verify/mod.rs (with_capacity)
  • limit::TypeCount: crates/metal2vulkan-air/src/bitcode/types.rs (decode); crates/metal2vulkan-air/src/ir/types.rs (intern)
  • limit::MetadataNodes: crates/metal2vulkan-air/src/bitcode/function.rs (metadata); crates/metal2vulkan-air/src/bitcode/metadata.rs (push); crates/metal2vulkan-air/src/bitcode/metadata.rs (strings)
  • limit::BitstreamNesting: crates/metal2vulkan-air/src/bitstream/mod.rs (enter_block)
  • limit::InstructionCount: crates/metal2vulkan-air/src/bitcode/function.rs (call); crates/metal2vulkan-air/src/bitcode/function.rs (constants); crates/metal2vulkan-air/src/bitcode/function.rs (count_record, 2 sites); crates/metal2vulkan-air/src/bitcode/function.rs (decode); crates/metal2vulkan-air/src/bitcode/function.rs (forward); crates/metal2vulkan-air/src/bitcode/function.rs (push, 2 sites)
  • limit::LayoutNesting: crates/metal2vulkan-air/src/abi/structs.rs (finish); crates/metal2vulkan-air/src/abi/structs.rs (open); crates/metal2vulkan/src/bind/argument_buffer.rs (layout)
  • limit::ConstructNesting: crates/metal2vulkan/src/structurize/emit.rs (check_tree); crates/metal2vulkan/src/structurize/emit/predicate.rs (facts_of)
  • limit::PrivateArenaBytes: crates/metal2vulkan/src/lower/access/local.rs (device_arena); crates/metal2vulkan/src/lower/access/local.rs (use_arena); crates/metal2vulkan/src/memory/plan.rs (place_allocas, 2 sites)
  • limit::CallStackBytes: crates/metal2vulkan-air/src/canon/recursion.rs (metal_stack)
  • ratemap::ScreenExtent: crates/metal2vulkan/src/bind/rate_map.rs (new)
  • ratemap::LayerCount: crates/metal2vulkan/src/bind/rate_map.rs (new)
  • ratemap::DenseSamples: crates/metal2vulkan/src/bind/rate_map.rs (new)
  • ratemap::SampleOutOfRange: crates/metal2vulkan/src/bind/rate_map.rs (new)
  • ratemap::SampleCount: crates/metal2vulkan/src/bind/rate_map.rs (new)
  • budget::Time: crates/metal2vulkan-air/src/budget/mod.rs (counted)
  • floor::Version: crates/metal2vulkan-runtime/src/floor.rs (decide)
  • floor::Extension: crates/metal2vulkan-runtime/src/floor.rs (decide)
  • floor::Feature: crates/metal2vulkan-runtime/src/floor.rs (decide)
  • floor::Limit: crates/metal2vulkan-runtime/src/floor.rs (decide, 2 sites)
  • floor::QueueFamily: crates/metal2vulkan-runtime/src/floor.rs (decide)
  • floor::MemoryType: crates/metal2vulkan-runtime/src/floor.rs (choose)
  • floor::TimeDomain: crates/metal2vulkan-runtime/src/floor.rs (decide)
  • floor::SetLayout: crates/metal2vulkan-runtime/src/arrays.rs (supported)
  • rt:Refusal::EmptyBuffer: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer); crates/metal2vulkan-runtime/src/buffer.rs (placed_buffer)
  • rt:Refusal::BufferTooLong: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer); crates/metal2vulkan-runtime/src/buffer.rs (placed_buffer)
  • rt:Refusal::BufferPastBlock: crates/metal2vulkan-runtime/src/buffer.rs (placed)
  • rt:Refusal::HeapBufferPlace: crates/metal2vulkan-runtime/src/buffer.rs (new_heap_buffer)
  • rt:Refusal::ManagedBlockPrivate: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer)
  • rt:Refusal::ManagedCopyMissing: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer)
  • rt:Refusal::ManagedCopyOnUnified: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer)
  • rt:Refusal::ManagedCopyNotPrivate: crates/metal2vulkan-runtime/src/buffer.rs (new_managed_buffer)
  • rt:Refusal::ZeroRangePastBlock: crates/metal2vulkan-runtime/src/buffer.rs (zero_block_range)
  • rt:Refusal::ZeroRangeShared: crates/metal2vulkan-runtime/src/buffer.rs (zero_block_range)
  • rt:Refusal::NotExported: crates/metal2vulkan-runtime/src/blit.rs (release_to_external); crates/metal2vulkan-runtime/src/export.rs (external_writes_done)
  • rt:Refusal::SurfacePlanes: crates/metal2vulkan-runtime/src/d3d11.rs (import_d3d11_surface); crates/metal2vulkan-runtime/src/surface.rs (new_exported_surface, 2 sites)
  • rt:Refusal::ModifiedRange: crates/metal2vulkan-runtime/src/buffer.rs (did_modify_range)
  • rt:Refusal::Committed: crates/metal2vulkan-runtime/src/command.rs (open)
  • rt:Refusal::InScheduledHandler: crates/metal2vulkan-runtime/src/command.rs (not_in_scheduled_handler)
  • rt:Refusal::WaitOnOwnThread: crates/metal2vulkan-runtime/src/command.rs (wait_until_completed); crates/metal2vulkan-runtime/src/command.rs (wait_until_scheduled); crates/metal2vulkan-runtime/src/event.rs (wait_until_signaled_value); crates/metal2vulkan-runtime/src/queue.rs (command_buffer)
  • rt:Refusal::OtherDevice: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy); crates/metal2vulkan-runtime/src/blit.rs (copy_from_buffer_to_buffer); crates/metal2vulkan-runtime/src/blit.rs (copy_from_texture); crates/metal2vulkan-runtime/src/blit.rs (fill_buffer); crates/metal2vulkan-runtime/src/blit.rs (generate_mipmaps); crates/metal2vulkan-runtime/src/blit.rs (release_surface_to_external); crates/metal2vulkan-runtime/src/blit.rs (release_to_external); crates/metal2vulkan-runtime/src/blit.rs (synchronize_resource); crates/metal2vulkan-runtime/src/command.rs (check); crates/metal2vulkan-runtime/src/command.rs (present_drawable); crates/metal2vulkan-runtime/src/device.rs (release_block); crates/metal2vulkan-runtime/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer); crates/metal2vulkan-runtime/src/encoder.rs (set_buffer); crates/metal2vulkan-runtime/src/encoder.rs (set_compute_pipeline_state); crates/metal2vulkan-runtime/src/encoder.rs (set_sampler_state); crates/metal2vulkan-runtime/src/encoder.rs (set_texture); crates/metal2vulkan-runtime/src/encoder.rs (use_resource, 2 sites); crates/metal2vulkan-runtime/src/fence.rs (check); crates/metal2vulkan-runtime/src/pass.rs (check, 2 sites); crates/metal2vulkan-runtime/src/pass.rs (resolve); crates/metal2vulkan-runtime/src/render_encoder.rs (draw); crates/metal2vulkan-runtime/src/render_encoder.rs (set_buffer); crates/metal2vulkan-runtime/src/render_encoder.rs (set_depth_stencil_state); crates/metal2vulkan-runtime/src/render_encoder.rs (set_render_pipeline_state); crates/metal2vulkan-runtime/src/render_encoder.rs (set_sampler_state); crates/metal2vulkan-runtime/src/render_encoder.rs (set_tessellation_factor_buffer); crates/metal2vulkan-runtime/src/render_encoder.rs (set_texture); crates/metal2vulkan-runtime/src/render_encoder.rs (use_resource, 2 sites); crates/metal2vulkan-runtime/src/texture.rs (new_managed_texture)
  • rt:Refusal::NoCommandBuffers: crates/metal2vulkan-runtime/src/queue.rs (new_command_queue)
  • rt:Refusal::EncoderOpen: crates/metal2vulkan-runtime/src/command.rs (open)
  • rt:Refusal::NoPipeline: crates/metal2vulkan-runtime/src/encoder.rs (dispatch); crates/metal2vulkan-runtime/src/render_encoder.rs (draw); crates/metal2vulkan-runtime/src/render_encoder.rs (draw_reaches)
  • rt:Refusal::PatchDraw: crates/metal2vulkan-runtime/src/render_encoder.rs (draw)
  • rt:Refusal::NoTessellationFactorBuffer: crates/metal2vulkan-runtime/src/render_encoder.rs (draw)
  • rt:Refusal::PointSizeTopology: crates/metal2vulkan-runtime/src/render.rs (of)
  • rt:Refusal::BufferIndex: crates/metal2vulkan-runtime/src/encoder.rs (slot); crates/metal2vulkan-runtime/src/render_encoder.rs (slot)
  • rt:Refusal::TextureArgumentIndex: crates/metal2vulkan-runtime/src/encoder.rs (set_texture); crates/metal2vulkan-runtime/src/render_encoder.rs (set_texture)
  • rt:Refusal::SamplerArgumentIndex: crates/metal2vulkan-runtime/src/encoder.rs (set_sampler_state); crates/metal2vulkan-runtime/src/render_encoder.rs (set_sampler_state)
  • rt:Refusal::SamplerIds: crates/metal2vulkan-runtime/src/pipeline.rs (number_samplers)
  • rt:Refusal::NoBufferAtIndex: crates/metal2vulkan-runtime/src/encoder.rs (set_buffer_offset); crates/metal2vulkan-runtime/src/render_encoder.rs (find); crates/metal2vulkan-runtime/src/render_encoder.rs (set_buffer_offset)
  • rt:Refusal::ThreadgroupSize: crates/metal2vulkan-runtime/src/encoder.rs (dispatch); crates/metal2vulkan-runtime/src/encoder.rs (size_checked)
  • rt:Refusal::IndirectOffset: crates/metal2vulkan-runtime/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)
  • rt:Refusal::BufferOffsetAlignment: crates/metal2vulkan-runtime/src/encoder.rs (check_alignment)
  • rt:Refusal::IndicesGranted: crates/metal2vulkan-runtime/src/arrays.rs (grant)
  • rt:Refusal::IndicesNotGranted: crates/metal2vulkan-runtime/src/arrays.rs (place); crates/metal2vulkan-runtime/src/arrays.rs (release)
  • rt:Refusal::IndicesInUse: crates/metal2vulkan-runtime/src/arrays.rs (release)
  • rt:Refusal::TextureIndex: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture); crates/metal2vulkan-runtime/src/texture.rs (surface_texture); crates/metal2vulkan-runtime/src/texture.rs (texture); crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Refusal::TextureZeroExtent: crates/metal2vulkan-runtime/src/texture.rs (shape)
  • rt:Refusal::TextureExtentForType: crates/metal2vulkan-runtime/src/texture.rs (shape)
  • rt:Refusal::TextureCubeNotSquare: crates/metal2vulkan-runtime/src/texture.rs (shape)
  • rt:Refusal::TextureArrayLength: crates/metal2vulkan-runtime/src/texture.rs (shape, 2 sites)
  • rt:Refusal::TextureLevelCount: crates/metal2vulkan-runtime/src/texture.rs (shape)
  • rt:Refusal::TextureSampleCount: crates/metal2vulkan-runtime/src/texture.rs (shape)
  • rt:Refusal::TextureSwizzleWithWrites: crates/metal2vulkan-runtime/src/texture.rs (own_checks)
  • rt:Refusal::TextureBytesPrivate: crates/metal2vulkan-runtime/src/texture.rs (copy)
  • rt:Refusal::TextureRegion: crates/metal2vulkan-runtime/src/texture.rs (place)
  • rt:Refusal::TextureBytesLayout: crates/metal2vulkan-runtime/src/texture.rs (copy)
  • rt:Refusal::BufferCopyLayout: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy)
  • rt:Refusal::FillRange: crates/metal2vulkan-runtime/src/blit.rs (fill_range)
  • rt:Refusal::TextureViewRange: crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Refusal::TextureViewSlices: crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Refusal::TextureViewFormat: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane); crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Refusal::MipmapFormat: crates/metal2vulkan-runtime/src/blit.rs (generate_mipmaps)
  • rt:Refusal::TextureCopyMismatch: crates/metal2vulkan-runtime/src/blit.rs (texture_copy)
  • rt:Refusal::ManagedTextureBytes: crates/metal2vulkan-runtime/src/texture.rs (check_places); crates/metal2vulkan-runtime/src/texture.rs (named); crates/metal2vulkan-runtime/src/texture.rs (named_host); crates/metal2vulkan-runtime/src/texture.rs (upload_region, 2 sites)
  • rt:Refusal::BufferTextureLayout: crates/metal2vulkan-runtime/src/texture.rs (check_over)
  • rt:Refusal::HeapTexturePlace: crates/metal2vulkan-runtime/src/texture.rs (make)
  • rt:Refusal::DrawableDescriptor: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture)
  • rt:Refusal::DrawableFormat: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture)
  • rt:Refusal::DrawableUsage: crates/metal2vulkan-runtime/src/texture.rs (new_drawable_texture)
  • rt:Refusal::NotDrawable: crates/metal2vulkan-runtime/src/texture.rs (drawable_acquired); crates/metal2vulkan-runtime/src/texture.rs (present_turn)
  • rt:Refusal::DrawableAcquired: crates/metal2vulkan-runtime/src/texture.rs (drawable_acquired)
  • rt:Refusal::DrawableNotAcquired: crates/metal2vulkan-runtime/src/texture.rs (present_turn)
  • rt:Refusal::DrawableSemaphoreRepeated: crates/metal2vulkan-runtime/src/command.rs (present_drawable)
  • rt:Refusal::BufferCopyRange: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer)
  • rt:Refusal::BufferCopyUnaligned: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer)
  • rt:Refusal::BufferCopyOverlap: crates/metal2vulkan-runtime/src/blit.rs (buffer_to_buffer)
  • rt:Refusal::AttachmentUsage: crates/metal2vulkan-runtime/src/texture.rs (attachment)
  • rt:Refusal::ResolveTexture: crates/metal2vulkan-runtime/src/pass.rs (resolving); crates/metal2vulkan-runtime/src/render_encoder.rs (later_store)
  • rt:Refusal::ResolveFormat: crates/metal2vulkan-runtime/src/pass.rs (check)
  • rt:Refusal::AttachmentPlace: crates/metal2vulkan-runtime/src/texture.rs (attachment_view, 2 sites)
  • rt:Refusal::AttachmentFormat: crates/metal2vulkan-runtime/src/pass.rs (check, 3 sites)
  • rt:Refusal::VertexBufferOffset: crates/metal2vulkan-runtime/src/render_encoder.rs (find)
  • rt:Refusal::IndexBufferOffset: crates/metal2vulkan-runtime/src/render_encoder.rs (draw)
  • rt:Refusal::TessellationFactorOffset: crates/metal2vulkan-runtime/src/render_encoder.rs (set_tessellation_factor_buffer)
  • rt:Refusal::ArgumentPlace: crates/metal2vulkan-runtime/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer); crates/metal2vulkan-runtime/src/render_encoder.rs (draw)
  • rt:Refusal::ViewportNotFinite: crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewport)
  • rt:Refusal::StencilAttachment: crates/metal2vulkan-runtime/src/render_encoder.rs (draw)
  • rt:Limit::BlockLen: crates/metal2vulkan-runtime/src/import.rs (check_len); crates/metal2vulkan-runtime/src/memory.rs (round); crates/metal2vulkan-runtime/src/surface.rs (copy_form); crates/metal2vulkan-runtime/src/surface.rs (dma_buf_in_place)
  • rt:Limit::BlockIds: crates/metal2vulkan-runtime/src/memory.rs (allocation_number); crates/metal2vulkan-runtime/src/memory.rs (number)
  • rt:Limit::ThreadgroupMemory: crates/metal2vulkan-runtime/src/encoder.rs (threadgroup_memory)
  • rt:Limit::ThreadgroupThreads: crates/metal2vulkan-runtime/src/encoder.rs (size_checked)
  • rt:Limit::BytesLength: crates/metal2vulkan-runtime/src/encoder.rs (set_bytes); crates/metal2vulkan-runtime/src/render_encoder.rs (set_bytes)
  • rt:Limit::IndexRange: crates/metal2vulkan-runtime/src/arrays.rs (grant)
  • rt:Limit::TextureSize: crates/metal2vulkan-runtime/src/texture.rs (plan)
  • rt:Limit::DeviceSamplers: crates/metal2vulkan-runtime/src/sampler.rs (take)
  • rt:Limit::MemoryAllocations: crates/metal2vulkan-runtime/src/memory.rs (allocate)
  • rt:Limit::AllocationNotMapped: crates/metal2vulkan-runtime/src/memory.rs (own)
  • rt:Limit::NoImport: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane); crates/metal2vulkan-runtime/src/d3d11.rs (import_d3d11_surface); crates/metal2vulkan-runtime/src/import.rs (import_dma_buf); crates/metal2vulkan-runtime/src/import.rs (import_dma_bufs); crates/metal2vulkan-runtime/src/import.rs (import_host_memory); crates/metal2vulkan-runtime/src/import.rs (surface_import)
  • rt:Limit::ImportType: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane); crates/metal2vulkan-runtime/src/import.rs (import_dma_buf); crates/metal2vulkan-runtime/src/import.rs (import_dma_bufs); crates/metal2vulkan-runtime/src/import.rs (import_host_memory)
  • rt:Limit::ImportAlignment: crates/metal2vulkan-runtime/src/import.rs (check_len); crates/metal2vulkan-runtime/src/import.rs (check_size); crates/metal2vulkan-runtime/src/import.rs (import_dma_bufs); crates/metal2vulkan-runtime/src/import.rs (import_host_memory)
  • rt:Limit::SparseAddressSpace: crates/metal2vulkan-runtime/src/import.rs (reserve)
  • rt:Limit::NoExport: crates/metal2vulkan-runtime/src/export.rs (handle, 2 sites); crates/metal2vulkan-runtime/src/export.rs (new_exported_block); crates/metal2vulkan-runtime/src/surface.rs (dma_buf_in_place); crates/metal2vulkan-runtime/src/surface.rs (new_exported_surface)
  • rt:Limit::ExportType: crates/metal2vulkan-runtime/src/export.rs (new_exported_block); crates/metal2vulkan-runtime/src/import.rs (surface_import); crates/metal2vulkan-runtime/src/memory.rs (export); crates/metal2vulkan-runtime/src/memory.rs (surface_view); crates/metal2vulkan-runtime/src/surface.rs (dma_buf_in_place); crates/metal2vulkan-runtime/src/surface.rs (new_exported_surface)
  • rt:Limit::TextureSamples: crates/metal2vulkan-runtime/src/texture.rs (plan)
  • rt:Gap::IndirectCommandBuffers: crates/metal2vulkan-runtime/src/pipeline.rs (compute_pipeline_state); crates/metal2vulkan-runtime/src/render.rs (refuse)
  • rt:Gap::KernelInput: crates/metal2vulkan-runtime/src/pipeline.rs (gap)
  • rt:Gap::ImageblockLength: crates/metal2vulkan-runtime/src/pipeline.rs (imageblock_memory_length_for_dimensions); crates/metal2vulkan-runtime/src/render.rs (imageblock_sample_length)
  • rt:Gap::PartialSimdgroups: crates/metal2vulkan-runtime/src/encoder.rs (decide)
  • rt:Gap::PartialThreadgroups: crates/metal2vulkan-runtime/src/encoder.rs (decide)
  • rt:Gap::NoStageInRegion: crates/metal2vulkan-runtime/src/encoder.rs (dispatch)
  • rt:Gap::IndirectPrivateArena: crates/metal2vulkan-runtime/src/encoder.rs (dispatch)
  • rt:Gap::MemorylessTexture: crates/metal2vulkan-runtime/src/texture.rs (checked)
  • rt:Gap::TextureBuffer: crates/metal2vulkan-runtime/src/texture.rs (shape, 2 sites)
  • rt:Gap::CubeArrayTexture: crates/metal2vulkan-runtime/src/texture.rs (checked); crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Gap::TextureFormat: crates/metal2vulkan-runtime/src/texture.rs (attachment_view); crates/metal2vulkan-runtime/src/texture.rs (form); crates/metal2vulkan-runtime/src/texture.rs (plan)
  • rt:Gap::MipmapFilter: crates/metal2vulkan-runtime/src/blit.rs (generate_mipmaps)
  • rt:Gap::CubicSampler: crates/metal2vulkan-runtime/src/sampler.rs (new_sampler_state)
  • rt:Gap::LodClamps: crates/metal2vulkan-runtime/src/sampler.rs (clamps_at_bind)
  • rt:Gap::TextureBytes: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy); crates/metal2vulkan-runtime/src/blit.rs (with_option); crates/metal2vulkan-runtime/src/texture.rs (check_places); crates/metal2vulkan-runtime/src/texture.rs (copy)
  • rt:Gap::FloatDepthUpload: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy); crates/metal2vulkan-runtime/src/texture.rs (replace_region); crates/metal2vulkan-runtime/src/texture.rs (upload_region)
  • rt:Gap::TextureCopy: crates/metal2vulkan-runtime/src/blit.rs (texture_copy)
  • rt:Gap::TextureOverBuffer: crates/metal2vulkan-runtime/src/texture.rs (check_over); crates/metal2vulkan-runtime/src/texture.rs (error); crates/metal2vulkan-runtime/src/texture.rs (over_texel)
  • rt:Gap::HeapTexture: crates/metal2vulkan-runtime/src/texture.rs (heap_fit); crates/metal2vulkan-runtime/src/texture.rs (heap_source)
  • rt:Gap::SurfaceUsage: crates/metal2vulkan-runtime/src/d3d11.rs (d3d11_plane); crates/metal2vulkan-runtime/src/surface.rs (plane); crates/metal2vulkan-runtime/src/texture.rs (surface_texture)
  • rt:Gap::D3d11SurfaceBuffer: crates/metal2vulkan-runtime/src/surface.rs (buffer)
  • rt:Gap::BufferCopyAlignment: crates/metal2vulkan-runtime/src/blit.rs (buffer_copy)
  • rt:Gap::FillAlignment: crates/metal2vulkan-runtime/src/blit.rs (fill_range)
  • rt:Gap::RenderPipeline: crates/metal2vulkan-runtime/src/render.rs (draw_input); crates/metal2vulkan-runtime/src/render.rs (of, 3 sites); crates/metal2vulkan-runtime/src/render.rs (refuse)
  • rt:Gap::SwizzledReadWrite: crates/metal2vulkan-runtime/src/encoder.rs (dispatch); crates/metal2vulkan-runtime/src/render_encoder.rs (find)
  • rt:Gap::StorageElement: crates/metal2vulkan-runtime/src/encoder.rs (dispatch, 2 sites); crates/metal2vulkan-runtime/src/render_encoder.rs (find, 2 sites)
  • rt:Gap::BicubicTexels: crates/metal2vulkan-runtime/src/encoder.rs (dispatch); crates/metal2vulkan-runtime/src/render_encoder.rs (find)
  • rt:Gap::TextureView: crates/metal2vulkan-runtime/src/texture.rs (view)
  • rt:Gap::RenderPass: crates/metal2vulkan-runtime/src/pass.rs (check); crates/metal2vulkan-runtime/src/pass.rs (ops); crates/metal2vulkan-runtime/src/pass.rs (resolve); crates/metal2vulkan-runtime/src/render_encoder.rs (later_store); crates/metal2vulkan-runtime/src/texture.rs (attachment_view); crates/metal2vulkan-runtime/src/texture.rs (resolve_attachment)
  • rt:Gap::Draw: crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites); crates/metal2vulkan-runtime/src/render_encoder.rs (draw); crates/metal2vulkan-runtime/src/render_encoder.rs (draw_patches); crates/metal2vulkan-runtime/src/render_encoder.rs (set_depth_clip_mode); crates/metal2vulkan-runtime/src/render_encoder.rs (set_scissor_rects); crates/metal2vulkan-runtime/src/render_encoder.rs (set_triangle_fill_mode); crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewport); crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewports); crates/metal2vulkan-runtime/src/render_encoder.rs (set_visibility_result_mode); crates/metal2vulkan-runtime/src/render_encoder.rs (shadow_copies)
  • rt:Gap::LinearPlanePass: crates/metal2vulkan-runtime/src/pass.rs (check)