The steps this packet landed as, in order: - Hold the fresh-pages test to the runtime's per-class rule - Re-derive the generated documents for the ledger edits Content: the tree of `development` at 2be69bf102, unchanged.
519 lines
137 KiB
Markdown
519 lines
137 KiB
Markdown
# 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`, never the tables). Metal's own validation errors (`Invalid`, `InvalidDescriptor`, malformed input) are misuse, not refusals, and are not listed. [`METAL-COVERAGE.md`](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**: construction sites (file:line, the first two). "via a helper" counts the places that hand the feature to a function that builds the refusal; "family audit only" is a gap no call refuses, only `supportsFamily:`'s audit (the API is missing: see the coverage map); 0 is a variant nothing builds today.
|
|
- **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.
|
|
|
|
Generated at `198c0d7d1`.
|
|
|
|
## Totals
|
|
|
|
| Kind | Variants | With a site | Reach system | Reach app | Reach rare | Reach none | Unassessed |
|
|
|---|---|---|---|---|---|---|---|
|
|
| Translator and front-end refusals | 126 | 126 | 6 | 33 | 70 | 17 | 0 |
|
|
| Runtime gaps | 64 | 64 | 1 | 8 | 41 | 14 | 0 |
|
|
| Apple-only calls | 5 | 5 | 0 | 0 | 0 | 5 | 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 |
|
|
|
|
## 1. Translator and front-end refusals (`Unsupported`: a `Feature` and its `Needs`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `LibraryKind` | A metallib that is not an executable library (dynamic library, companion) | - | via a helper: 2: `crates/metal2vulkan-air/src/container/mtlb.rs:253`, `crates/metal2vulkan/src/error/mod.rs:244` | `none`: a metallib that is not an executable library, loaded as one |
|
|
| `Stage` | A function stage the model does not cover | - | via a helper: 2: `crates/metal2vulkan-air/src/abi/check.rs:579`, `crates/metal2vulkan/src/error/mod.rs:245` | `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 and the... | every device (not implemented) | 2: `crates/metal2vulkan-air/src/ir/types.rs:191`, `crates/metal2vulkan/src/memory/plan.rs:2061` | `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:343`, `crates/metal2vulkan-air/src/bitcode/module.rs:435` (+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:1010`, `crates/metal2vulkan-air/src/bitcode/function.rs:1057` (+9) | `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:184`, `crates/metal2vulkan-air/src/bitcode/types.rs:206` (+2) | `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:1354`, `crates/metal2vulkan-air/src/bitcode/module.rs:499` (+1) | `none`: LLVM calling conventions AIR does not use |
|
|
| `UnknownIntrinsic` | An intrinsic outside the closed set | every device (not implemented) | 2: `crates/metal2vulkan-air/src/error.rs:621`, `crates/metal2vulkan/src/lower/select.rs:1006` | `rare`: AIR from a newer compiler (macOS 27 AIR 2.9) |
|
|
| `AgxUnmodeled` | An AGX intrinsic whose semantics are not modeled | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/simd/agx.rs:62` | `rare`: Apple's own libraries' AGX intrinsics |
|
|
| `StaticInitializer` | A static initializer that cannot be evaluated | every device (not implemented) | 1: `crates/metal2vulkan-air/src/error.rs:627` | `none`: LLVM initializers AIR does not emit |
|
|
| `Recursion` | Recursion (one variant) | every device (not implemented) | 4: `crates/metal2vulkan-air/src/canon/mod.rs:1052`, `crates/metal2vulkan-air/src/canon/mod.rs:1062` (+2) | `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) | 9: `crates/metal2vulkan-air/src/canon/devirt.rs:1851`, `crates/metal2vulkan-air/src/canon/devirt.rs:447` (+7) | `rare`: function pointers and function tables |
|
|
| `Linking` | Linkage signatures / stitching / dynamic libraries | every device (not implemented) | 3: `crates/metal2vulkan-air/src/canon/link.rs:249`, `crates/metal2vulkan-air/src/canon/mod.rs:1289` (+1) | `rare`: dynamic libraries and linked functions |
|
|
| `SimdWidth` | Simdgroup width 32 is not achievable for this usage, stage, and device | devices without VkProperty::MetalFragmentSimdgroups; devices without a capability the site computes (`width_needs(stage, st)`) | 2: `crates/metal2vulkan/src/device/subgroup.rs:377`, `crates/metal2vulkan/src/lower/simd/mod.rs:382` | `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) | 1: `crates/metal2vulkan/src/bind/dispatch.rs:475` | `app`: a threadgroup size past a smaller device's limit |
|
|
| `IrreducibleConvergent` | An irreducible region containing a convergent instruction | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/structurize/irreducible.rs:108` | `rare`: irreducible loops around barriers or simd operations |
|
|
| `ComputeDerivativesWithSimd` | Compute derivatives in a flattened simd tier | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/lower/dispatch.rs:485` | `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) | 4: `crates/metal2vulkan/src/bind/dispatch.rs:320`, `crates/metal2vulkan/src/lower/sync/barrier.rs:486` (+2) | `rare`: derivatives in a kernel |
|
|
| `QuadOperations` | Quad operations in a stage without quad support | devices without VkLimit::MinSubgroupSize; devices without VkProperty::SubgroupQuadOperationsInAllStages | 2: `crates/metal2vulkan/src/device/subgroup.rs:371`, `crates/metal2vulkan/src/device/subgroup.rs:405` | `app`: quad shuffles in kernels on devices without quad operations there |
|
|
| `SimdgroupMatrix` | Simdgroup matrix operations | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/simd/matrix.rs:83` | `rare`: simdgroup matrix kernels |
|
|
| `ArgumentBufferPointers` | Argument buffers holding buffer pointers (dynamic roots) | devices without buffer device addresses (`addressed_needs`) | 1: `crates/metal2vulkan/src/device/metal.rs:236` | `app`: argument buffers holding buffer pointers |
|
|
| `ArgumentBufferTextures` | Argument buffers holding textures or samplers (handle domain) | devices short of a device limit the site names; devices without a capability the site computes (`gaps`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`needs`); every device (not implemented) | 17: `crates/metal2vulkan-runtime/src/families/features.rs:1655`, `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036` (+15) | `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) | 5: `crates/metal2vulkan/src/lower/access/encode.rs:446`, `crates/metal2vulkan/src/lower/access/encode.rs:496` (+3) | `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) | 4: `crates/metal2vulkan/src/lower/access/dynamic.rs:407`, `crates/metal2vulkan/src/lower/access/local.rs:774` (+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:347` | `rare`: pointer to integer casts |
|
|
| `PointerCompare` | Comparing pointers with different roots | - | via a helper: 1: `crates/metal2vulkan/src/lower/access/copy.rs:717` | `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) | 6: `crates/metal2vulkan/src/lower/access/handle.rs:311`, `crates/metal2vulkan/src/lower/access/handle.rs:393` (+4) | `rare`: resource handles used as byte pointers |
|
|
| `ConstantGlobalEscaping` | A constant global whose address escapes | every device (not implemented) | 2: `crates/metal2vulkan/src/memory/plan.rs:1124`, `crates/metal2vulkan/src/memory/plan.rs:1265` | `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) | 3: `crates/metal2vulkan/src/bind/plan/compute.rs:714`, `crates/metal2vulkan/src/memory/arena.rs:170` (+1) | `rare`: threadgroup memory past a smaller device's limit |
|
|
| `CoherentMemory` | `coherent(device)` accesses (Vulkan memory model) | devices short of a Vulkan feature the site names | 1: `crates/metal2vulkan/src/lower/sync/memory_model.rs:207` | `rare`: coherent(device) accesses |
|
|
| `Int64Atomics` | 64-bit atomics | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`) | 2: `crates/metal2vulkan/src/lower/access/atomic.rs:624`, `crates/metal2vulkan/src/lower/access/atomic.rs:633` | `rare`: 64-bit atomics |
|
|
| `ImageAtomics` | Image atomics beyond 32-bit integers | devices without a capability the site computes (`gaps`); every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/families/formats.rs:466`, `crates/metal2vulkan-runtime/src/families/formats.rs:470` (+1) | `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 | 3: `crates/metal2vulkan/src/lower/access/mod.rs:1688`, `crates/metal2vulkan/src/lower/select.rs:1641` (+1) | `app`: many textures or buffers in one stage on a smaller device |
|
|
| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 7: `crates/metal2vulkan-runtime/src/function_table.rs:569`, `crates/metal2vulkan/src/bind/graphics.rs:3839` (+5) | `app`: a buffer window past a device's descriptor range |
|
|
| `Int64Arithmetic` | 64-bit integer arithmetic | devices without VkFeature::ShaderInt64 | 2: `crates/metal2vulkan/src/lower/arith/legal.rs:582`, `crates/metal2vulkan/src/lower/select.rs:1133` | `rare`: 64-bit integers on a device without shaderInt64 |
|
|
| `Float64Arithmetic` | 64-bit float arithmetic | devices without VkFeature::ShaderFloat64 | 2: `crates/metal2vulkan/src/device/metal.rs:230`, `crates/metal2vulkan/src/lower/arith/legal.rs:587` | `rare`: doubles (MSL has none outside Apple's own code) |
|
|
| `Format` | A pixel format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes; 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) | 120: `crates/metal2vulkan-runtime/src/binding_view.rs:146`, `crates/metal2vulkan-runtime/src/blit_plan.rs:523` (+118) | `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) | 1: `crates/metal2vulkan/src/lower/sampler/select.rs:352` | `app`: implicit-LOD sampling through a dynamically chosen texture |
|
|
| `ImplicitLodOutsideFragment` | Implicit-LOD sampling outside fragment | every device (not implemented) | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:136`, `crates/metal2vulkan/src/lower/sampler/select.rs:229` (+1) | `rare`: implicit-LOD sampling outside fragment functions |
|
|
| `MinLodClamp` | `min_lod_clamp` without `shaderResourceMinLod` | devices without VkFeature::ShaderResourceMinLod; every device (not implemented) | 2: `crates/metal2vulkan/src/lower/sampler/select.rs:1572`, `crates/metal2vulkan/src/lower/sampler/select.rs:973` | `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) | 2: `crates/metal2vulkan/src/lower/sampler/select.rs:725`, `crates/metal2vulkan/src/lower/sampler/select.rs:905` | `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:776` | `rare`: gathers with dynamic offsets or components |
|
|
| `StorageImageMultisample` | Multisampled storage images | - | via a helper: 1: `crates/metal2vulkan/src/lower/texture/slot.rs:1067` | `rare`: writable multisampled textures |
|
|
| `StorageTextureInVertexStage` | Storage images in the vertex stage | - | via a helper: 1: `crates/metal2vulkan/src/lower/texture/slot.rs:669` | `rare`: writable textures in vertex functions |
|
|
| `CubeArray` | Cube arrays | devices without VkFeature::ImageCubeArray | 2: `crates/metal2vulkan/src/lower/sampler/select.rs:1475`, `crates/metal2vulkan/src/lower/texture/slot.rs:456` | `rare`: cube arrays on a device without imageCubeArray |
|
|
| `SamplerAnisotropy` | Sampler anisotropy an argument buffer lists, on a device without `samplerAnisotropy` | devices without VkFeature::SamplerAnisotropy | 1: `crates/metal2vulkan/src/metal/sampler.rs:282` | `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) | 4: `crates/metal2vulkan/src/metal/sampler.rs:664`, `crates/metal2vulkan/src/metal/sampler.rs:673` (+2) | `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) | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:258`, `crates/metal2vulkan/src/lower/sampler/constexpr.rs:265` (+1) | `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 | 1: `crates/metal2vulkan/src/metal/sampler.rs:260` | `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) | 1: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:115` | `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) | 3: `crates/metal2vulkan/src/bind/instantiate.rs:882`, `crates/metal2vulkan/src/bind/instantiate.rs:888` (+1) | `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) | 4: `crates/metal2vulkan/src/device/metal.rs:242`, `crates/metal2vulkan/src/lower/fragment/rog.rs:151` (+2) | `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; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`capability`); devices without a capability the site computes (`missing`); devices without a format's usage; drivers with a defect; every device (not implemented) | 24: `crates/metal2vulkan-runtime/src/families/features.rs:1025`, `crates/metal2vulkan-runtime/src/render.rs:5955` (+22) | `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) | 3: `crates/metal2vulkan-runtime/src/families/features.rs:1134`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:3211` (+1) | `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:2601` | `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) | 5: `crates/metal2vulkan/src/bind/graphics.rs:4180`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312` (+3) | `rare`: vertex amplification |
|
|
| `LayeredRendering` | Layered rendering (`render_target_array_index`, `viewport_array_index`) | devices without VkFeature::ImageView2DOn3DImage; devices without VkFeature::MultiViewport; devices without VkFeature::ShaderOutputLayer; devices without VkFeature::ShaderOutputViewportIndex; devices without a capability the site computes (`needs`); every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/render_pass.rs:1672`, `crates/metal2vulkan-runtime/src/render_state.rs:1121` (+5) | `rare`: layered rendering on a device without its features |
|
|
| `ClipDistance` | Clip or cull distances | devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances | 2: `crates/metal2vulkan/src/lower/mesh/mod.rs:960`, `crates/metal2vulkan/src/lower/mesh/mod.rs:968` | `rare`: clip distances on a device without them |
|
|
| `DualSourceBlending` | Dual-source blending | devices without VkFeature::DualSrcBlend; devices without VkLimit::MaxFragmentDualSrcAttachments | 5: `crates/metal2vulkan-runtime/src/families/formats.rs:387`, `crates/metal2vulkan/src/metal/state.rs:37` (+3) | `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`); drivers with a defect; every device (not implemented) | 5: `crates/metal2vulkan/src/device/metal.rs:263`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1924` (+3) | `rare`: barycentric coordinates |
|
|
| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | 6: `crates/metal2vulkan-runtime/src/families/features.rs:1121`, `crates/metal2vulkan/src/bind/graphics.rs:2752` (+4) | `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) | 3: `crates/metal2vulkan/src/pipeline/link/graphics.rs:847`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:849` (+1) | `rare`: per-sample shading |
|
|
| `SamplePositions` | A render pass's custom sample positions (`setSamplePositions:count:`) on a device that takes no custom sample locations at the pass's sample... | devices without VkProperty::SampleLocationSampleCount | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs:192` | `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 | drivers with a defect; every device (no Vulkan mechanism); every device (not implemented) | 3: `crates/metal2vulkan/src/lower/fragment/coverage.rs:310`, `crates/metal2vulkan/src/lower/simd/mod.rs:754` (+1) | `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 | 4: `crates/metal2vulkan/src/pipeline/compile/color_group.rs:202`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:316` (+2) | `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) | 3: `crates/metal2vulkan/src/pipeline/link/varyings.rs:318`, `crates/metal2vulkan/src/pipeline/link/varyings.rs:537` (+1) | `none`: a Metal link error |
|
|
| `KernelStageIn` | Kernel `[[stage_in]]` | every device (not implemented) | 3: `crates/metal2vulkan-runtime/src/indirect_execute.rs:376`, `crates/metal2vulkan/src/bind/dispatch.rs:871` (+1) | `rare`: kernel stage-in combinations Metal leaves unestablished |
|
|
| `Tessellation` | Tessellation | devices without VkLimit::MaxPushConstantsSize; devices without VkLimit::MaxStorageBufferRange; devices without VkLimit::MaxTessellationGenerationLevel; every device (not implemented) | 13: `crates/metal2vulkan-air/src/canon/mod.rs:1256`, `crates/metal2vulkan-air/src/canon/mod.rs:1347` (+11) | `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) | 7: `crates/metal2vulkan/src/bind/graphics.rs:1663`, `crates/metal2vulkan/src/bind/graphics.rs:3131` (+5) | `rare`: mesh pipelines |
|
|
| `TileShading` | | devices without VkLimit::MaxStorageBufferRange; devices without a format's usage; every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:520`, `crates/metal2vulkan/src/bind/plan/compute.rs:237` (+3) | `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`); drivers with a defect; every device (not implemented) | 10: `crates/metal2vulkan/src/lower/access/imageblock.rs:98`, `crates/metal2vulkan/src/lower/access/mod.rs:908` (+8) | `rare`: imageblocks (Apple GPU families) |
|
|
| `RayTracing` | | devices without a capability the site computes (`missing`); every device (no Vulkan mechanism); every device (not implemented) | 12: `crates/metal2vulkan/src/bind/acceleration.rs:202`, `crates/metal2vulkan/src/bind/acceleration.rs:216` (+10) | `rare`: ray tracing (out of scope by ruling) |
|
|
| `Tensors` | | every device (not implemented) | 2: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs:32`, `crates/metal2vulkan/src/lower/select.rs:903` | `rare`: shader tensors |
|
|
| `RasterizationRateMap` | | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/fragment/mod.rs:952` | `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) | 17: `crates/metal2vulkan/src/bind/replay.rs:556`, `crates/metal2vulkan/src/bind/replay.rs:796` (+15) | `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 | 2: `crates/metal2vulkan/src/ash_interop/query.rs:928`, `crates/metal2vulkan/src/device/derive.rs:105` | `none`: a device below Vulkan 1.2 |
|
|
| `Constant` | A bitcode constant record outside the typed model (block address, inline asm, `select` and other constant expressions the IR has no form for) | - | via a helper: 3: `crates/metal2vulkan-air/src/bitcode/constants.rs:210`, `crates/metal2vulkan-air/src/bitcode/constants.rs:268` (+1) | `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:493`, `crates/metal2vulkan/src/error/mod.rs:257` | `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: 7: `crates/metal2vulkan-air/src/bitcode/attrs.rs:337`, `crates/metal2vulkan-air/src/bitcode/function.rs:572` (+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:1255`, `crates/metal2vulkan/src/error/mod.rs:259` | `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; devices without VkProperty::SubgroupStage | 4: `crates/metal2vulkan-runtime/src/families/features.rs:1720`, `crates/metal2vulkan/src/lower/simd/mod.rs:407` (+2) | `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) | 1: `crates/metal2vulkan-air/src/canon/mod.rs:1319` | `rare`: variadic or byval calls the inliner cannot take |
|
|
| `WideSwitchLiteral` | A switch case literal wider than 32 bits | every device (not implemented) | 1: `crates/metal2vulkan/src/structurize/emit.rs:207` | `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) | 35: `crates/metal2vulkan/src/bind/plan/resources.rs:762`, `crates/metal2vulkan/src/lower/access/handle.rs:1062` (+33) | `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) | 2: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:176`, `crates/metal2vulkan/src/metal/sampler.rs:251` | `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 | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs:293` | `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 | 1: `crates/metal2vulkan/src/lower/access/tile_memory.rs:72` | `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... | devices short of a Vulkan feature the site names; every device (not implemented) | 2: `crates/metal2vulkan-air/src/canon/interface.rs:899`, `crates/metal2vulkan/src/lower/access/absent.rs:100` | `rare`: a function-constant-removed argument read |
|
|
| `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | 5: `crates/metal2vulkan/src/bind/heap.rs:997`, `crates/metal2vulkan/src/bind/plan/resources.rs:1876` (+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) | 5: `crates/metal2vulkan/src/bind/dispatch.rs:379`, `crates/metal2vulkan/src/bind/dispatch.rs:455` (+3) | `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) | 9: `crates/metal2vulkan/src/bind/acceleration.rs:177`, `crates/metal2vulkan/src/bind/acceleration.rs:183` (+7) | `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 | 2: `crates/metal2vulkan-runtime/src/render.rs:2201`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:1020` | `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 short of a Vulkan property the site names; devices without a capability the site computes | 2: `crates/metal2vulkan-runtime/src/families/limits.rs:1063`, `crates/metal2vulkan/src/pipeline/graphics.rs:573` | `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:358` | `app`: wireframe on a device without fillModeNonSolid |
|
|
| `DepthClipClamp` | The render encoder's `MTLDepthClipModeClamp` (`depthClampEnable`) on a device without `depthClamp` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:374` | `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:474` | `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 | 1: `crates/metal2vulkan/src/metal/state.rs:176` | `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:583`, `crates/metal2vulkan/src/bind/plan/slots.rs:607` | `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... | devices short of a device limit the site names | 1: `crates/metal2vulkan-runtime/src/image_plan.rs:1165` | `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 | devices short of a Vulkan property the site names; devices without VkFeature::MultisampleArrayImage; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/image_plan.rs:1213`, `crates/metal2vulkan-runtime/src/image_plan.rs:567` (+1) | `app`: a sample count a device lacks for the texture |
|
|
| `TextureView` | A texture view Vulkan cannot make exactly on this image | every device (no Vulkan mechanism); every device (not implemented) | 9: `crates/metal2vulkan-runtime/src/binding_view.rs:156`, `crates/metal2vulkan-runtime/src/texture.rs:5231` (+7) | `app`: a texture view Vulkan cannot make exactly |
|
|
| `TextureSwizzle` | A texture swizzle whose Metal behavior is not measured | devices short of a Vulkan feature the site names; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/binding_view.rs:167`, `crates/metal2vulkan-runtime/src/texture.rs:999` (+5) | `app`: texture swizzles whose Metal behaviour is unmeasured |
|
|
| `MipmapGeneration` | `generateMipmapsForTexture:` where the device's filter is not shown to give Metal's answer | devices without VkFeature::ShaderInt64; devices without a format's usage; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/blit_texture.rs:1890`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37` (+5) | `app`: generateMipmapsForTexture: where the device's filter is not Metal's |
|
|
| `HostMemory` | A buffer over the caller's host memory without a copy (`newBufferWithBytesNoCopy:`) | devices without VkExtension::ExtExternalMemoryHost; every device (no Vulkan mechanism); every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/host_memory.rs:430`, `crates/metal2vulkan-runtime/src/host_memory.rs:470` (+3) | `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) | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2936` | `rare`: GPU times on a queue without timestamps |
|
|
| `CountingVisibility` | A `Counting` visibility result (`MTLVisibilityResultModeCounting`) on a device without `occlusionQueryPrecise` | devices without VkFeature::OcclusionQueryPrecise | 1: `crates/metal2vulkan-runtime/src/visibility.rs:452` | `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... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/view_plan.rs:573` | `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,... | - | via a helper: 7: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:188`, `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:294` (+5) | `rare`: separate multisampled depth and stencil textures |
|
|
| `PixelCoverage` | The fragment's coverage (`[[sample_mask]]` read) in a fragment function of a pipeline of more than one sample that runs once per pixel | drivers with a defect | 2: `crates/metal2vulkan-runtime/src/families/features.rs:1232`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:786` | `rare`: coverage reads at pixel rate in a multisampled pipeline |
|
|
| `CentroidVarying` | A centroid varying (`[[centroid_perspective]]`, `[[centroid_no_perspective]]`) in a fragment function of a pipeline of more than one sample | drivers with a defect | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs:804` | `rare`: centroid varyings in a multisampled pipeline |
|
|
| `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... | - | via a helper: 1: `crates/metal2vulkan/src/lower/select.rs:1171` | `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 | devices without the capability the site names; every device (not implemented) | 2: `crates/metal2vulkan-runtime/src/sparse/texture.rs:60`, `crates/metal2vulkan-runtime/src/sparse/texture.rs:65` | `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... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/device/create.rs:1115` | `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) | 10: `crates/metal2vulkan-runtime/src/pipeline/texture_access.rs:131`, `crates/metal2vulkan/src/bind/argument_buffer.rs:626` (+8) | `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... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:632` | `app`: textures in Shared heaps on a device whose optimal images take no host memory |
|
|
| `ViewportDepthRange` | A viewport depth range past `[0, 1]` (`setViewport:`), which Metal takes and the runtime draws natively (`VK_EXT_depth_range_unrestricted`) or... | drivers with a defect | 1: `crates/metal2vulkan-runtime/src/render_state.rs:1230` | `rare`: viewport depth outside [0, 1] |
|
|
| `UndeclaredTextureUsage` | A shader write to a texture made without `ShaderWrite` (or `ShaderAtomic`), or a read of one made without `ShaderRead`, which plain Metal runs,... | every device (not implemented) | 2: `crates/metal2vulkan-runtime/src/binding_view.rs:141`, `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:72` | `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`,... | devices short of a device limit the site names | 1: `crates/metal2vulkan-runtime/src/render_pass.rs:1275` | `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) | 1: `crates/metal2vulkan/src/lower/access/encode.rs:568` | `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) | 1: `crates/metal2vulkan/src/lower/select.rs:912` | `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::LogicOp; every device (not implemented) | 7: `crates/metal2vulkan/src/bind/heap.rs:1300`, `crates/metal2vulkan/src/bind/plan/resources.rs:887` (+5) | `none`: Apple-private pipeline fields of OpenGL on Metal (no public header) |
|
|
| `ExtendedRangeBlend` | Metal's blend into an extended-range attachment (`BGRA10_XR`, `BGR10_XR`, `RGB10A8_2P_XR10` and their `_sRGB` twins), which the function computes... | every device (not implemented) | 4: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:305`, `crates/metal2vulkan/src/lower/fragment/fetch.rs:1654` (+2) | `system`: the parts of a blend into an extended-range (XR10) attachment the measured model does not hold (second-source factors, the color blend color difference, a one-color-channel mask, float4 and sRGB outside the measured forms); the consumer's guests blend RGB10A8_2P_XR10 attachments |
|
|
| `TileReach` | The tiles a render pass's primitives reach, binned on the device ([`tile_reach_module`](crate::bind::tile_reach_module)), on a device without what... | devices short of a Vulkan feature the site names; devices without a capability the site computes (`vec![int64]`); every device (not implemented) | 3: `crates/metal2vulkan/src/bind/tile_reach.rs:270`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:2517` (+1) | `app`: the tiles a pass's draws reach, binned on a device without shaderInt64 |
|
|
| `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:77`, `crates/metal2vulkan/src/error/mod.rs:268` | `app`: MSL 3.2 program-scope buffer bindings (macOS 15 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 | 1: `crates/metal2vulkan/src/lower/sync/barrier.rs:443` | `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; devices without VkExtension::ExtPostDepthCoverage | 2: `crates/metal2vulkan-runtime/src/families/features.rs:1226`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:783` | `rare`: the coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage |
|
|
|
|
## 2. Runtime gaps (`Error::NotImplemented(RuntimeGap)`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `Textures` | Textures and texture buffers | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs:163`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:1605` (+7) | `rare`: texture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views) |
|
|
| `ResourceHeap` | The resource-ID heap, descriptor set 1 | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1982` | `rare`: the resource-ID heap's remaining forms |
|
|
| `SparseHeaps` | Sparse heaps and their textures | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:442`, `crates/metal2vulkan-runtime/src/texture.rs:1684` (+1) | `rare`: sparse heaps |
|
|
| `SparseTileMaps` | What the runtime's emulation of sparse textures does not build yet | every device (runtime piece not built) | 4: `crates/metal2vulkan-runtime/src/binding.rs:562`, `crates/metal2vulkan-runtime/src/sparse/texture.rs:43` (+2) | `rare`: sparse texture emulation's unbuilt pieces |
|
|
| `HeapPastMaxBufferSize` | A heap larger than the device's `maxBufferSize`, which the device can allocate | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/heap.rs:714` | `rare`: a heap past maxBufferSize |
|
|
| `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (256 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:1073` | `rare`: a heap texture needing more than 256 KiB alignment |
|
|
| `HeapTextureMemory` | A heap texture whose image the heap's memory type does not take | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/texture/heap.rs:1511`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1518` (+3) | `app`: a heap texture the heap's memory type does not take |
|
|
| `FunctionTablePastMaxBufferLength` | A visible-function table of more entries than one buffer of the device's `max_buffer_length` holds words for, or than its size word holds | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/function_table.rs:622` | `none`: a function table past one buffer |
|
|
| `IndirectCommandBufferPastMaxBufferLength` | An indirect command buffer of more commands than one buffer of the device's `max_buffer_length` holds the records of | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:523` | `none`: an ICB past one buffer |
|
|
| `IndirectRenderCommands` | What indirect command buffers lack of their render commands | every device (runtime piece not built) | 15: `crates/metal2vulkan-runtime/src/compute.rs:1317`, `crates/metal2vulkan-runtime/src/compute.rs:1402` (+13) | `rare`: indirect render commands' remaining pieces |
|
|
| `IndirectImageblockSize` | An indirect compute command's imageblock side past 65535, which Metal keeps | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3601` | `none`: an imageblock side past 65535 |
|
|
| `CommandReplay` | The device replay of indirect command buffers | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/binding.rs:723`, `crates/metal2vulkan-runtime/src/binding.rs:726` | `rare`: the device replay of indirect command buffers |
|
|
| `RenderAttachments` | Render attachments and their binding forms | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1794` | `rare`: render attachment forms not built |
|
|
| `AccelerationStructures` | Acceleration structures | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1797` | `rare`: ray tracing (out of scope by ruling) |
|
|
| `FeatureEnable` | A feature a created device would enable that the runtime's feature chain has no member for, or whose structure no enabled extension exposes | devices without the feature or extension it names | 1: `crates/metal2vulkan-runtime/src/enables.rs:1167` | `none`: device creation with a feature the runtime's chain lacks |
|
|
| `ExtensionEnable` | An extension a created device would enable that the device lists under none of the names the runtime knows for it | devices without the feature or extension it names | 1: `crates/metal2vulkan-runtime/src/enables.rs:1158` | `none`: device creation with an extension under an unknown name |
|
|
| `Render` | Render pipelines, passes and draws | every device (runtime piece not built) | 23: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404`, `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:461` (+21) | `system`: render pass, resolve and attachment forms not built (20 sites: see the appendix) |
|
|
| `TexelsPastBufferLength` | A 2D array over a buffer whose texels run past the buffer's length, which Metal makes over bytes its buffer's allocation has past the length, or a... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/buffer_texture.rs:260`, `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:105` | `rare`: a 2D array over a buffer past its length |
|
|
| `OverlappingSurfaceRows` | A texture of an IOSurface plane (`Buffer::new_texture_with_iosurface_plane`, the stand-in for `newTextureWithDescriptor:iosurface:plane:`) whose... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs:262` | `rare`: an IOSurface plane whose rows overlap |
|
|
| `SamplePositionsAtBegin` | A render pass whose custom sample positions Vulkan takes only through what the runtime does not build | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:145`, `crates/metal2vulkan-runtime/src/render_pass.rs:1864` (+1) | `rare`: custom sample positions Vulkan takes only at begin |
|
|
| `SharedEventAcrossDevices` | A shared event handle opened on a device other than its event's | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/event.rs:385` | `rare`: a shared event opened on another device |
|
|
| `ViewportDepthRange` | A viewport depth range past `[0, 1]`, which Metal takes, on a device without the features to take it natively or by the vertex stage's... | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/render/draw_shape.rs:341`, `crates/metal2vulkan-runtime/src/render_state.rs:1053` (+5) | `rare`: viewport depth outside [0, 1] without the device features |
|
|
| `NonFiniteDepthBias` | NaN or infinite depth bias factors whose effect differs between flat and sloped triangles, or a draw whose bias adds a clamp that moves a... | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/render_state.rs:1617`, `crates/metal2vulkan-runtime/src/render_state.rs:1620` (+3) | `rare`: NaN or infinite depth bias |
|
|
| `DepthNeverWithoutAttachment` | A draw under a depth compare of `Never` in a pass without a depth attachment, which fails every fragment, whose fragment function writes color... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147` | `rare`: depth compare Never with no depth attachment |
|
|
| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564`, `crates/metal2vulkan-runtime/src/render.rs:6678` | `app`: a depth-stencil state using depth or stencil the pass lacks |
|
|
| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs:102`, `crates/metal2vulkan-runtime/src/render.rs:3331` (+3) | `rare`: indirect draws whose arguments the CPU must read |
|
|
| `DepthStencilResolve` | A depth/stencil resolve no Vulkan resolve mode of the device states | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441`, `crates/metal2vulkan-runtime/src/resolve.rs:1392` (+5) | `rare`: depth/stencil resolve modes a device lacks |
|
|
| `TileAtSampleCount` | The tile memory of a render pass of a sample count Apple's GPUs lack (theirs are 1, 2 and 4), which a Vulkan device may have | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render_pass.rs:1614`, `crates/metal2vulkan-runtime/src/render_pass.rs:937` | `none`: tile memory at a sample count Apple's GPUs lack |
|
|
| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:7449`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929` | `rare`: imageblocks of mixed sizes in one pass |
|
|
| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/render.rs:7441`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796` (+1) | `rare`: explicit imageblocks shared by tile and fragment functions |
|
|
| `Metal4Api` | Metal 4's API (`MTL4CommandQueue`, `MTL4CommandBuffer`, `MTL4ArgumentTable`, `MTL4Compiler` and the rest), with the features only its programming... (not scheduled) | every device (runtime piece not built) | family audit only: 3: `crates/metal2vulkan-runtime/src/families/features.rs:1494`, `crates/metal2vulkan-runtime/src/families/limits.rs:1026` (+1) | `app`: Metal 4 (the API is missing: METAL-COVERAGE.md) |
|
|
| `CounterSampleBuffers` | Counter sample buffers (`MTLCounterSampleBuffer`) and the commands that sample into them (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/limits.rs:1017` | `app`: GPU counters and timestamps by sample buffer (missing API) |
|
|
| `ResidencySets` | Residency sets (`MTLResidencySet`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1476`, `crates/metal2vulkan-runtime/src/families/limits.rs:1019` | `app`: residency sets (missing API) |
|
|
| `TextureAccessCounters` | A sparse texture's access counters (`getTextureAccessCounters:...` and `resetTextureAccessCounters:...` of a blit encoder) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1463`, `crates/metal2vulkan-runtime/src/families/features.rs:1468` | `rare`: sparse texture access counters |
|
|
| `IoCommandQueues` | Fast resource loading (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1473`, `crates/metal2vulkan-runtime/src/families/limits.rs:1024` | `rare`: fast resource loading (missing API) |
|
|
| `TextureViewPools` | Texture view pools (`MTLTextureViewPool`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1477`, `crates/metal2vulkan-runtime/src/families/limits.rs:1025` | `rare`: texture view pools (missing API) |
|
|
| `ColorAttachmentMapping` | Color attachment mapping (`MTLLogicalToPhysicalColorAttachmentMap`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1478` | `rare`: color attachment mapping (missing API) |
|
|
| `LossyTextureCompression` | Lossy texture compression (`MTLTextureCompressionTypeLossy`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1472` | `rare`: lossy texture compression |
|
|
| `ShaderValidation` | Per-pipeline shader validation (`MTLShaderValidation`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1474` | `rare`: per-pipeline shader validation |
|
|
| `ShaderLogging` | Shader logging (`MTLLogState`, a shader's `os_log`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1475` | `rare`: shader os_log |
|
|
| `DeviceNotifications` | Device notifications (`MTLCopyAllDevicesWithObserver`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1479` | `rare`: device hotplug notifications (deprecated) |
|
|
| `RateMapRegions` | A draw in a rate-mapped pass that the region path does not draw, for the compile layer's reason (`rate_mapped_pass.rs`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:479` | `rare`: draws in rate-mapped passes the region path does not draw |
|
|
| `LayeredPass` | A layered render pass (`renderTargetArrayLength` 2 or more) that needs a step of one layer | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/color_resolve.rs:928` | `rare`: layered passes needing a per-layer color resolve |
|
|
| `OverlappingTextureCopies` | A blit copy between overlapping regions of one texture's texels (`copyFromTexture:...` with the source's region meeting the destination's, through... (not scheduled) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs:1340` | `rare`: overlapping texture copies (Metal races) |
|
|
| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer with a live texture over its bytes, given memory at another offset in its page than the old | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637`, `crates/metal2vulkan-runtime/src/texture/heap.rs:2742` (+3) | `none`: a runtime extension's rebind with a live texture |
|
|
| `PvrtcBlockOrder` | A PVRTC texture's blocks in a Metal block order the runtime does not lay out | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5896` | `rare`: PVRTC regions off whole levels |
|
|
| `DecodedHeapTexture` | A heap's or a sparse heap's texture of an ASTC format on a device without that ASTC format (`astc.rs`), or a sparse heap's texture of an ETC2 or... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/texture.rs:1692`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1375` | `app`: an ASTC texture in a heap on a device without ASTC |
|
|
| `VertexFetchPast4GiB` | A draw (`drawPrimitives:` and its forms, or an indirect command buffer's command) that may read a vertex attribute the pipeline fetches in its... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72` | `rare`: vertex fetch past 4 GiB of a bind offset |
|
|
| `StageInFetchPast4GiB` | A dispatch (`dispatchThreads:threadsPerThreadgroup:` and its forms, or an indirect command buffer's command) whose kernel may read a... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126` | `rare`: stage-in fetch past 4 GiB of a bind offset |
|
|
| `MappedTextureSampling` | A command that would sample a texture of an address-mode map (`TextureDescriptor::address_mode_map`) where the runtime cannot map it at bind... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/address_map.rs:158` | `none`: a runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path |
|
|
| `LibrarySource` | A library compiled from Metal Shading Language source | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/library.rs:108` | `app`: a library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR |
|
|
| `RestartedStrip` | An indexed strip after `set_primitive_restart_enabled` with an index Vulkan does not restart at, which the runtime draws as a list an index... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/restart.rs:71` | `none`: a strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws |
|
|
| `PrivatePrimitives` | A draw of one of Metal's private primitive types (`DrawPrimitiveType` | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:8174`, `crates/metal2vulkan-runtime/src/render/restart.rs:72` | `none`: a draw of an Apple-private primitive type (OpenGL on Metal's quads and kin) whose list cannot draw as Metal draws: a list past a u32 or one storage range, indices or arguments an unordered earlier draw wrote |
|
|
| `ProvokingVertex` | A draw under Apple's last provoking vertex (`setProvokingVertexMode:` 1) on a device without `VK_EXT_provoking_vertex`'s last vertex, which the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/restart.rs:73` | `none`: a draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws |
|
|
| `PrimitiveIdIndices` | An indexed draw (`drawIndexedPrimitives:`) of a pipeline whose fragment function reads `[[primitive_id]]` on a device whose fragment stage cannot... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render.rs:8185` | `rare`: an indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier |
|
|
| `RotatedTexture` | A rotated texture (`TextureDescriptor::rotation`) where the runtime does not build what Metal does | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs:1669`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:735` (+7) | `rare`: a rotated drawable's views, blits with images over overlapping rows, rows past its buffer |
|
|
| `DetachTextures` | A texture over a no-copy buffer's or heap's bytes (a heap's texture, or a texture over the buffer or over one of the heap's buffers) that no... | every device (runtime piece not built) | 8: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:641`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:638` (+6) | `none`: a runtime extension's detach with a texture no stand-in presents exactly |
|
|
| `TextureBufferLevels` | A texture buffer of more than one level (`TextureDescriptor::mipmap_level_count`, up to its width's full chain) from the device's, a heap's or the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:548` | `rare`: a texture buffer of more than one level (public, unusual) |
|
|
| `WriteSwizzle` | A texture of `TextureDescriptor::write_swizzle_enabled` whose swizzle is not the default, with `ShaderWrite` or `RenderTarget` usage, from the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:555` | `none`: Apple-private writeSwizzleEnabled with a swizzle that writes |
|
|
| `DetachedTexelAccess` | `Texture::replace_region` or `get_bytes` of a texture whose bytes (a no-copy buffer's or heap's) are detached (`detach_backing`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5019` | `none`: CPU texel access while a runtime extension detached the bytes |
|
|
| `SurfaceDepthStencil` | A use of a texture of a depth or stencil format (`Depth16Unorm`, `Depth32Float`, `Depth32Float_Stencil8`, `Stencil8`, `X32_Stencil8`) over a plane... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs:269`, `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:57` | `rare`: a blit of the stencil of a Depth32Float_Stencil8 texture over a plane of an IOSurface with planes, or a pass on an X32_Stencil8 one's view as Depth32Float_Stencil8 |
|
|
| `MultisampledBufferCopy` | A blit copy between a buffer and a multisampled texture (`copyFromBuffer:...toTexture:` into, or `copyFromTexture:...toBuffer:` out of, a texture... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs:536`, `crates/metal2vulkan-runtime/src/blit_texture.rs:693` | `rare`: a buffer<->multisampled-texture copy on a device without sample-rate shading, an integer multisample attachment at the count, or the copy format's storage; and, where maintenance8's depth/colour copies are missing or wrong, what the sample-rate draws cannot move: a 16-bit depth on a driver whose codes the fragment-depth draw is not measured to keep, or a depth or stencil texture they cannot sample or render to (emulated elsewhere; the consumer's Maps pans and screensaver make the copy) |
|
|
| `MultisampledBufferLayout` | A blit copy between a buffer and a multisampled texture (as for `MultisampledBufferCopy`) in one of two buffer layouts that plain Metal copies by... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/sample_interleave.rs:1029` | `rare`: a buffer<->multisampled-texture copy at a bytesPerRow of 0 from an offset that is a multiple of 16, or of pixels of 32 bytes or more at a pitch below a row or off the pixel: Metal copies these by rules not yet reduced, and its API validation rejects them |
|
|
| `ColorAttachmentGroups` | What a render pass the device draws in color groups does not build | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/color_groups.rs:106` | `app`: in a render pass of more color attachments than the device draws at once (five or more on a device of four), or one at an index past them: a pipeline state of other colors, a tile state, an execution of render commands, a draw reading another group's attachment |
|
|
|
|
## 3. Apple-only calls (`Error::AppleOnly`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `ProtectedContent` | Protection options whose answer on Metal is not measured (`command_buffer/protection.rs`) | every device (Apple-private, Metal's answer not measured) | 3: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2467`, `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126` (+1) | `none`: Apple-private (no public header) |
|
|
| `LineWidth` | A line width other than 1 (`setLineWidth:`) | every device (Apple-private, Metal's answer not measured) | 1: `crates/metal2vulkan-runtime/src/apple_only.rs:190` | `none`: Apple-private (no public header) |
|
|
| `ViewportTransformDisabled` | The viewport transform turned off (`setViewportTransformEnabled:NO`) | every device (Apple-private, Metal's answer not measured) | 1: `crates/metal2vulkan-runtime/src/apple_only.rs:192` | `none`: Apple-private (no public header) |
|
|
| `VertexAmplificationMode` | `setVertexAmplificationMode:value:` of a count (the value's set bits in mode 1, else the value) of 0, whose copies change from run to run on... | every device (Apple-private, Metal's answer not measured) | 2: `crates/metal2vulkan-runtime/src/apple_only.rs:196`, `crates/metal2vulkan-runtime/src/apple_only.rs:321` | `none`: Apple-private (no public header) |
|
|
| `SurfaceClientDirection` | A texture over an IOSurface made with `kIOSurfaceClientDirection` (`newTextureWithDescriptor:iosurface:plane:` of such a surface) | every device (Apple-private, Metal's answer not measured) | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs:422` | `none`: an IOSurface key in no public header |
|
|
|
|
## 4. Binder refusals at a device limit (`BindError`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `DescriptorRangeExceeded` | A descriptor-form slot's window exceeds the descriptor range limit (Profile F) | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:655` | `app`: a buffer window past a device's descriptor range |
|
|
| `TexelBufferTooLarge` | A texel buffer exceeds `maxTexelBufferElements` | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:894` | `rare`: a texture buffer past maxTexelBufferElements |
|
|
| `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 | 7: `crates/metal2vulkan/src/bind/heap.rs:1014`, `crates/metal2vulkan/src/bind/heap.rs:1748` (+5) | `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 | 1: `crates/metal2vulkan/src/bind/graphics.rs:3834` | `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 | 1: `crates/metal2vulkan/src/bind/graphics.rs:3878` | `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 | 1: `crates/metal2vulkan/src/bind/graphics.rs:3916` | `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 | 1: `crates/metal2vulkan/src/bind/dispatch.rs:796` | `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 | 1: `crates/metal2vulkan/src/bind/instantiate.rs:609` | `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 | 1: `crates/metal2vulkan/src/bind/plan/slots.rs:133` | `rare`: a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
|
|
|
|
## 5. Translation caps (`Error::LimitExceeded(Limit)`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `InlinedInstructions` | Instructions after inlining | every device (a deterministic cap) | 3: `crates/metal2vulkan-air/src/canon/inline.rs:330`, `crates/metal2vulkan-air/src/canon/inline.rs:334` (+1) | `rare`: very large shaders after inlining |
|
|
| `OutputBlocks` | Structurizer output blocks, `4(n+e)+1024` | every device (a deterministic cap) | 4: `crates/metal2vulkan/src/structurize/irreducible.rs:90`, `crates/metal2vulkan/src/structurize/mod.rs:187` (+2) | `rare`: very large control flow |
|
|
| `IrreducibleDepth` | Irreducible nesting depth | every device (a deterministic cap) | 4: `crates/metal2vulkan-air/src/graph/loops.rs:176`, `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs:226` (+2) | `none`: deeply nested irreducible loops |
|
|
| `SpirvWords` | Emitted SPIR-V words | every device (a deterministic cap) | 2: `crates/metal2vulkan/src/lower/estimate.rs:46`, `crates/metal2vulkan/src/lower/estimate.rs:57` | `rare`: very large output modules |
|
|
| `WorkUnits` | Deterministic work units of one attempt | every device (a deterministic cap) | 1: `crates/metal2vulkan-air/src/budget/mod.rs:264` | `rare`: very large shaders |
|
|
| `LedgerBytes` | Ledger bytes of one attempt | every device (a deterministic cap) | 9: `crates/metal2vulkan-air/src/bitstream/mod.rs:557`, `crates/metal2vulkan-air/src/budget/mod.rs:288` (+7) | `rare`: very large shaders |
|
|
| `TypeCount` | Types in the bitcode type table | every device (a deterministic cap) | 2: `crates/metal2vulkan-air/src/bitcode/types.rs:159`, `crates/metal2vulkan-air/src/ir/types.rs:239` | `none`: a type table past the cap |
|
|
| `MetadataNodes` | Metadata nodes | every device (a deterministic cap) | 3: `crates/metal2vulkan-air/src/bitcode/function.rs:334`, `crates/metal2vulkan-air/src/bitcode/metadata.rs:192` (+1) | `none`: metadata past the cap |
|
|
| `BitstreamNesting` | Bitstream block nesting | every device (a deterministic cap) | 1: `crates/metal2vulkan-air/src/bitstream/mod.rs:267` | `none`: malformed nesting |
|
|
| `InstructionCount` | Instructions of the decoded module | every device (a deterministic cap) | 8: `crates/metal2vulkan-air/src/bitcode/function.rs:1462`, `crates/metal2vulkan-air/src/bitcode/function.rs:180` (+6) | `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) | 3: `crates/metal2vulkan-air/src/abi/structs.rs:147`, `crates/metal2vulkan-air/src/abi/structs.rs:160` (+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) | 2: `crates/metal2vulkan/src/structurize/emit.rs:216`, `crates/metal2vulkan/src/structurize/emit/predicate.rs:151` | `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) | 3: `crates/metal2vulkan/src/lower/access/local.rs:650`, `crates/metal2vulkan/src/memory/plan.rs:1880` (+1) | `none`: a private arena past 4 GiB |
|
|
| `CallStackBytes` | Bytes of a kernel's call stack | every device (a deterministic cap) | 1: `crates/metal2vulkan-air/src/canon/recursion.rs:118` | `rare`: deep visible-function call stacks |
|
|
|
|
## 6. Rate maps the compile layer does not compile (`Error::RateMap(UnpinnedCompile)`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `ScreenExtent` | A screen extent above 16384 | every device (this crate's bound: Apple's compile unmeasured or crashing there) | 2: `crates/metal2vulkan-runtime/src/rate_map.rs:449`, `crates/metal2vulkan/src/bind/rate_map.rs:523` | `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:527` | `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:544` | `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:552` | `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:560` | `rare`: a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
|
|
|
|
## 7. The translation deadline (`Error::Budget`; the runtime's `Error::Compile(Budget)`)
|
|
|
|
| Variant | What it blocks | Where | Sites | Reach |
|
|
|---|---|---|---|---|
|
|
| `Time` | The attempt's deadline passed | every device (the attempt's deadline, 20 seconds by default) | 1: `crates/metal2vulkan-air/src/budget/mod.rs:275` | `none`: a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
|
|
|
|
## Appendix: every site
|
|
|
|
Each refusal's sites, with the function that builds it.
|
|
|
|
- `feature::LibraryKind`: `crates/metal2vulkan-air/src/container/mtlb.rs:253 (parse)`; `crates/metal2vulkan/src/error/mod.rs:244 (from)`
|
|
- `feature::Stage`: `crates/metal2vulkan-air/src/abi/check.rs:579 (unsupported_stage)`; `crates/metal2vulkan/src/error/mod.rs:245 (from)`
|
|
- `feature::AddressSpace`: `crates/metal2vulkan-air/src/ir/types.rs:191 (from_raw)`; `crates/metal2vulkan/src/memory/plan.rs:2061 (reprs)`
|
|
- `feature::ModuleRecord`: `crates/metal2vulkan-air/src/bitcode/module.rs:343 (record)`; `crates/metal2vulkan-air/src/bitcode/module.rs:435 (global)`; `crates/metal2vulkan-air/src/bitcode/module.rs:514 (function)`; `crates/metal2vulkan/src/error/mod.rs:247 (from)`
|
|
- `feature::Instruction`: `crates/metal2vulkan-air/src/bitcode/function.rs:1010 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1057 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1078 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1135 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1209 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1217 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1233 (record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1338 (call)`; `crates/metal2vulkan-air/src/bitcode/function.rs:1380 (call)`; `crates/metal2vulkan-air/src/bitcode/function.rs:823 (record)`; `crates/metal2vulkan/src/error/mod.rs:248 (from)`
|
|
- `feature::Type`: `crates/metal2vulkan-air/src/bitcode/types.rs:184 (decode)`; `crates/metal2vulkan-air/src/bitcode/types.rs:206 (decode)`; `crates/metal2vulkan-air/src/bitcode/types.rs:232 (decode)`; `crates/metal2vulkan/src/error/mod.rs:249 (from)`
|
|
- `feature::CallingConvention`: `crates/metal2vulkan-air/src/bitcode/function.rs:1354 (call)`; `crates/metal2vulkan-air/src/bitcode/module.rs:499 (function)`; `crates/metal2vulkan/src/error/mod.rs:250 (from)`
|
|
- `feature::UnknownIntrinsic`: `crates/metal2vulkan-air/src/error.rs:621 (from)`; `crates/metal2vulkan/src/lower/select.rs:1006 (route)`
|
|
- `feature::AgxUnmodeled`: `crates/metal2vulkan/src/lower/simd/agx.rs:62 (unmodeled)`
|
|
- `feature::StaticInitializer`: `crates/metal2vulkan-air/src/error.rs:627 (from)`
|
|
- `feature::Recursion`: `crates/metal2vulkan-air/src/canon/mod.rs:1052 (recursion)`; `crates/metal2vulkan-air/src/canon/mod.rs:1062 (recursion)`; `crates/metal2vulkan-air/src/canon/recursion.rs:2143 (dynamic_alloca)`; `crates/metal2vulkan-air/src/canon/static_init.rs:399 (run)`
|
|
- `feature::DynamicCall`: `crates/metal2vulkan-air/src/canon/devirt.rs:1851 (site)`; `crates/metal2vulkan-air/src/canon/devirt.rs:447 (record)`; `crates/metal2vulkan-air/src/canon/devirt.rs:569 (unfolded_decl)`; `crates/metal2vulkan-air/src/canon/mod.rs:1332 (post_check)`; `crates/metal2vulkan-air/src/canon/prune.rs:128 (prune_in)`; `crates/metal2vulkan/src/bind/heap.rs:1731 (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs:1761 (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs:1774 (directory_bytes)`; `crates/metal2vulkan/src/lower/select.rs:892 (route_air)`
|
|
- `feature::Linking`: `crates/metal2vulkan-air/src/canon/link.rs:249 (not_implemented)`; `crates/metal2vulkan-air/src/canon/mod.rs:1289 (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs:426 (specialize_dynamic)`
|
|
- `feature::SimdWidth`: `crates/metal2vulkan/src/device/subgroup.rs:377 (subgroup_tier)`; `crates/metal2vulkan/src/lower/simd/mod.rs:382 (finish)`
|
|
- `feature::LocalSize`: `crates/metal2vulkan/src/bind/dispatch.rs:475 (regions)`
|
|
- `feature::IrreducibleConvergent`: `crates/metal2vulkan/src/structurize/irreducible.rs:108 (refuse_tangled)`
|
|
- `feature::ComputeDerivativesWithSimd`: `crates/metal2vulkan/src/lower/dispatch.rs:485 (plan_kernel)`
|
|
- `feature::ComputeDerivatives`: `crates/metal2vulkan/src/bind/dispatch.rs:320 (check_local)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:486 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:495 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:499 (select_derivative)`
|
|
- `feature::QuadOperations`: `crates/metal2vulkan/src/device/subgroup.rs:371 (subgroup_tier)`; `crates/metal2vulkan/src/device/subgroup.rs:405 (subgroup_tier)`
|
|
- `feature::SimdgroupMatrix`: `crates/metal2vulkan/src/lower/simd/matrix.rs:83 (not_implemented)`
|
|
- `feature::ArgumentBufferPointers`: `crates/metal2vulkan/src/device/metal.rs:236 (unsupported_features)`
|
|
- `feature::ArgumentBufferTextures`: `crates/metal2vulkan-runtime/src/families/features.rs:1655 (tier2)`; `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036 (create_set_layout)`; `crates/metal2vulkan-runtime/src/resource_ids.rs:1256 (check_capacity)`; `crates/metal2vulkan/src/bind/heap.rs:1325 (array)`; `crates/metal2vulkan/src/bind/heap.rs:415 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:423 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:467 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:472 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:485 (member_view)`; `crates/metal2vulkan/src/lower/access/handle.rs:708 (select)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2366 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:308 (select_sampling)`; `crates/metal2vulkan/src/lower/sampler/select.rs:469 (select_heap_sampling)`; `crates/metal2vulkan/src/lower/texture/atomic.rs:140 (select)`; `crates/metal2vulkan/src/lower/texture/slot.rs:465 (declare_heap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:534 (declare_heap)`; `crates/metal2vulkan/src/pipeline/link.rs:977 (heap_set)`
|
|
- `feature::ArgumentBufferObjects`: `crates/metal2vulkan/src/lower/access/encode.rs:446 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:496 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:624 (select_command)`; `crates/metal2vulkan/src/memory/provenance.rs:2185 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2547 (access)`
|
|
- `feature::DereferenceLoadedPointer`: `crates/metal2vulkan/src/lower/access/dynamic.rs:407 (plan_misses)`; `crates/metal2vulkan/src/lower/access/local.rs:774 (access_ptr)`; `crates/metal2vulkan/src/lower/access/local.rs:796 (threadgroup_constant_refusal)`; `crates/metal2vulkan/src/memory/plan.rs:593 (analyze)`
|
|
- `feature::PointerToInteger`: `crates/metal2vulkan/src/lower/access/dynamic.rs:347 (require_addresses)`
|
|
- `feature::PointerCompare`: `crates/metal2vulkan/src/lower/access/copy.rs:717 (addressed)`
|
|
- `feature::HandleAsPointer`: `crates/metal2vulkan/src/lower/access/handle.rs:311 (domain_kind)`; `crates/metal2vulkan/src/lower/access/handle.rs:393 (element)`; `crates/metal2vulkan/src/lower/access/handle.rs:400 (element)`; `crates/metal2vulkan/src/memory/plan.rs:2016 (reprs)`; `crates/metal2vulkan/src/memory/provenance.rs:2219 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2439 (seed)`
|
|
- `feature::ConstantGlobalEscaping`: `crates/metal2vulkan/src/memory/plan.rs:1124 (blob_nodes)`; `crates/metal2vulkan/src/memory/plan.rs:1265 (serialize)`
|
|
- `feature::ThreadgroupMemorySize`: `crates/metal2vulkan/src/bind/plan/compute.rs:714 (plan)`; `crates/metal2vulkan/src/memory/arena.rs:170 (check)`; `crates/metal2vulkan/src/memory/plan.rs:494 (too_large)`
|
|
- `feature::CoherentMemory`: `crates/metal2vulkan/src/lower/sync/memory_model.rs:207 (check)`
|
|
- `feature::Int64Atomics`: `crates/metal2vulkan/src/lower/access/atomic.rs:624 (select)`; `crates/metal2vulkan/src/lower/access/atomic.rs:633 (select)`
|
|
- `feature::ImageAtomics`: `crates/metal2vulkan-runtime/src/families/formats.rs:466 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:470 (atomic_gap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:900 (atomic_format)`
|
|
- `feature::DescriptorCount`: `crates/metal2vulkan/src/lower/access/mod.rs:1688 (accept_placement)`; `crates/metal2vulkan/src/lower/select.rs:1641 (finish)`; `crates/metal2vulkan/src/pipeline/link.rs:1135 (limit_error)`
|
|
- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:569 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:3839 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3883 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3921 (patch_binding)`; `crates/metal2vulkan/src/bind/instantiate.rs:661 (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs:226 (select)`; `crates/metal2vulkan/src/lower/access/mod.rs:1184 (place_slots)`
|
|
- `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs:582 (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs:1133 (selector_form)`
|
|
- `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs:230 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs:587 (check_scalar)`
|
|
- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs:146 (binding_view)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:523 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:530 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:545 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:602 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:694 (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:2206 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:524 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:598 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:630 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:893 (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs:172 (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:219 (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:247 (copy_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:293 (copy_unit)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:346 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:526 (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs:1632 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1630 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:228 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:272 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:292 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:307 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:354 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:393 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:476 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:510 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:524 (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs:639 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:756 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:876 (plan_held)`; `crates/metal2vulkan-runtime/src/render.rs:2321 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1031 (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1372 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1712 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1805 (attachment_format)`; `crates/metal2vulkan-runtime/src/resolve.rs:418 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/resolve.rs:620 (color)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:182 (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:210 (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs:303 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:673 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:680 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:2083 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3641 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:498 (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:534 (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1950 (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:80 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:190 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:456 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:565 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:150 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:381 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:394 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:401 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:413 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:423 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:309 (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:184 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1134 (plain_texture)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1814 (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs:193 (require_filter_features)`; `crates/metal2vulkan/src/bind/plan/resources.rs:959 (plain_texture)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:304 (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:328 (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs:259 (shadow_copy_in_module)`; `crates/metal2vulkan/src/bind/unused_bits.rs:687 (unused_bits_module)`; `crates/metal2vulkan/src/lower/access/tile.rs:1029 (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs:160 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:166 (select_param)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1263 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1284 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1290 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1296 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1321 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1498 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1971 (select_read)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2078 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2105 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2124 (select_output)`; `crates/metal2vulkan/src/lower/sampler/select.rs:1093 (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs:691 (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs:77 (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2355 (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:896 (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs:83 (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2366 (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3008 (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3180 (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3350 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3387 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3720 (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1035 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1048 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1054 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:739 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:742 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:753 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:771 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:791 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:815 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:826 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:873 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:908 (atomic_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:917 (atomic_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1786 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1788 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1918 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2887 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2905 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2913 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:3010 (held_storage_choice)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1103 (extended_write_mask)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:477 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:549 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:972 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:993 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:449 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:593 (alpha_in_red_blend)`
|
|
- `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs:352 (select_sampling)`
|
|
- `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:136 (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs:229 (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs:255 (query_min_level)`
|
|
- `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs:1572 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:973 (min_lod)`
|
|
- `feature::TexelOffset`: `crates/metal2vulkan/src/lower/sampler/select.rs:725 (offset)`; `crates/metal2vulkan/src/lower/sampler/select.rs:905 (in_device_range)`
|
|
- `feature::GatherExtended`: `crates/metal2vulkan/src/lower/sampler/select.rs:776 (dynamic_offset)`
|
|
- `feature::StorageImageMultisample`: `crates/metal2vulkan/src/lower/texture/slot.rs:1067 (declare_slot)`
|
|
- `feature::StorageTextureInVertexStage`: `crates/metal2vulkan/src/lower/texture/slot.rs:669 (stage_stores)`
|
|
- `feature::CubeArray`: `crates/metal2vulkan/src/lower/sampler/select.rs:1475 (select_one)`; `crates/metal2vulkan/src/lower/texture/slot.rs:456 (declare_heap)`
|
|
- `feature::SamplerAnisotropy`: `crates/metal2vulkan/src/metal/sampler.rs:282 (check_argument_sampler)`
|
|
- `feature::SamplerBorderColor`: `crates/metal2vulkan/src/metal/sampler.rs:664 (border_read)`; `crates/metal2vulkan/src/metal/sampler.rs:673 (border_read)`; `crates/metal2vulkan/src/metal/sampler.rs:701 (border_read)`; `crates/metal2vulkan/src/metal/sampler.rs:705 (border_read)`
|
|
- `feature::SamplerLodBias`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:258 (constexpr_desc)`; `crates/metal2vulkan/src/lower/sampler/constexpr.rs:265 (constexpr_desc)`; `crates/metal2vulkan/src/lower/sampler/constexpr.rs:271 (constexpr_desc)`
|
|
- `feature::SamplerCompare`: `crates/metal2vulkan/src/metal/sampler.rs:260 (check_sampler)`
|
|
- `feature::PixelSamplerCompare`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:115 (lowered)`
|
|
- `feature::TexelBuffer`: `crates/metal2vulkan/src/bind/instantiate.rs:882 (texel_ranges)`; `crates/metal2vulkan/src/bind/instantiate.rs:888 (texel_ranges)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1147 (plain_texture)`
|
|
- `feature::RasterOrderGroups`: `crates/metal2vulkan/src/device/metal.rs:242 (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:151 (mode)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:172 (mode)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs:158 (finish)`
|
|
- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/families/features.rs:1025 (state)`; `crates/metal2vulkan-runtime/src/render.rs:5955 (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:120 (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:147 (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:518 (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:190 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/sample_planes.rs:477 (finish)`; `crates/metal2vulkan/src/device/metal.rs:252 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1218 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1236 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1250 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1281 (srgb8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1330 (packed16)`; `crates/metal2vulkan/src/lower/fragment/color.rs:215 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:279 (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:195 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:272 (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:318 (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1148 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1239 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1276 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1925 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:836 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs:164 (storage_attachments)`
|
|
- `feature::PrimitiveId`: `crates/metal2vulkan-runtime/src/families/features.rs:1134 (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:3211 (finish)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:240 (check_primitive_id)`
|
|
- `feature::PrivatePrimitives`: `crates/metal2vulkan/src/lower/stage_io/plan.rs:2601 (indices_feature)`
|
|
- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs:4180 (multiview_instances)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312 (own_index_store)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:718 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:269 (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:228 (control_plan)`
|
|
- `feature::LayeredRendering`: `crates/metal2vulkan-runtime/src/render_pass.rs:1672 (target)`; `crates/metal2vulkan-runtime/src/render_state.rs:1121 (needs_viewports)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:800 (target_index)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:819 (target_index)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1313 (own_index_store)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:150 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:172 (refused)`
|
|
- `feature::ClipDistance`: `crates/metal2vulkan/src/lower/mesh/mod.rs:960 (select)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:968 (select)`
|
|
- `feature::DualSourceBlending`: `crates/metal2vulkan-runtime/src/families/formats.rs:387 (answers)`; `crates/metal2vulkan/src/metal/state.rs:37 (blend_factor)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1160 (check_outputs)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:463 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:538 (rotated_blend)`
|
|
- `feature::Barycentrics`: `crates/metal2vulkan/src/device/metal.rs:263 (unsupported_features)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1924 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:745 (param)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:148 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:170 (refused)`
|
|
- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs:1121 (state)`; `crates/metal2vulkan/src/bind/graphics.rs:2752 (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:157 (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:168 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:55 (shadow_stencil)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:73 (shadow_stencil)`
|
|
- `feature::SampleRateShading`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:847 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:849 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:931 (sample_invocations)`
|
|
- `feature::SamplePositions`: `crates/metal2vulkan-runtime/src/sample_positions.rs:192 (refusal_error)`
|
|
- `feature::PixelCoverageAtSampleRate`: `crates/metal2vulkan/src/lower/fragment/coverage.rs:310 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:754 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:882 (sample_invocations)`
|
|
- `feature::InterfaceComponents`: `crates/metal2vulkan/src/pipeline/compile/color_group.rs:202 (refusal)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:316 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:409 (assign)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:90 (limit_error)`
|
|
- `feature::UnmatchedVarying`: `crates/metal2vulkan/src/pipeline/link/varyings.rs:318 (mesh_fragment)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:537 (varyings)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:548 (varyings)`
|
|
- `feature::KernelStageIn`: `crates/metal2vulkan-runtime/src/indirect_execute.rs:376 (record)`; `crates/metal2vulkan/src/bind/dispatch.rs:871 (instantiate)`; `crates/metal2vulkan/src/lower/stage_io/stage_in.rs:143 (select)`
|
|
- `feature::Tessellation`: `crates/metal2vulkan-air/src/canon/mod.rs:1256 (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs:1347 (post_check)`; `crates/metal2vulkan/src/bind/graphics.rs:4037 (tessellation_dispatch)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:527 (select)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1508 (primitive_id_output)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1794 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:828 (param)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:150 (not_implemented)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:489 (plan_entry)`; `crates/metal2vulkan/src/metal/vertex.rs:219 (fetch_as)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:212 (control_plan)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:292 (check_fragment)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:316 (push_offset)`
|
|
- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs:1663 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:3131 (mesh_limit)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:521 (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:560 (plan_entry)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:594 (plan_entry)`; `crates/metal2vulkan/src/memory/plan.rs:2056 (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs:102 (records)`
|
|
- `feature::TileShading`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:520 (scratch)`; `crates/metal2vulkan/src/bind/plan/compute.rs:237 (tile_memory)`; `crates/metal2vulkan/src/lower/access/tile.rs:151 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:275 (tile_shading)`; `crates/metal2vulkan/src/pipeline/compile/api.rs:702 (tile_pipeline)`
|
|
- `feature::Imageblocks`: `crates/metal2vulkan/src/lower/access/imageblock.rs:98 (imageblocks)`; `crates/metal2vulkan/src/lower/access/mod.rs:908 (select_param)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:104 (require)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:412 (reach)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:554 (plan_tests)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:578 (plan_tests)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:86 (not_implemented)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2376 (select)`; `crates/metal2vulkan/src/lower/texture/slice.rs:139 (imageblocks)`; `crates/metal2vulkan/src/pipeline/link/imageblock.rs:50 (fragment_imageblock)`
|
|
- `feature::RayTracing`: `crates/metal2vulkan/src/bind/acceleration.rs:202 (instance_record)`; `crates/metal2vulkan/src/bind/acceleration.rs:216 (instance_record)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1087 (primitive_data_read)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1202 (instance_count)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1245 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1257 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1282 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1297 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1312 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:344 (slot_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:385 (select_param)`; `crates/metal2vulkan/src/lower/select.rs:899 (route_air)`
|
|
- `feature::Tensors`: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs:32 (refuse)`; `crates/metal2vulkan/src/lower/select.rs:903 (route_air)`
|
|
- `feature::RasterizationRateMap`: `crates/metal2vulkan/src/lower/fragment/mod.rs:952 (select)`
|
|
- `feature::GpuEncodedIndirectCommands`: `crates/metal2vulkan/src/bind/replay.rs:556 (preprocess)`; `crates/metal2vulkan/src/bind/replay.rs:796 (replay_preprocess_module)`; `crates/metal2vulkan/src/bind/replay/draws.rs:280 (draw_replay_preprocess)`; `crates/metal2vulkan/src/bind/replay/draws.rs:482 (draw_replay_module)`; `crates/metal2vulkan/src/bind/replay/flat.rs:247 (flat_dispatch_module)`; `crates/metal2vulkan/src/bind/replay/merged.rs:242 (draw_merge_module)`; `crates/metal2vulkan/src/lower/access/encode.rs:394 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:410 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:527 (select_command)`; `crates/metal2vulkan/src/lower/access/mod.rs:1540 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1566 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1569 (plan_replay)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2707 (merged)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2763 (finish_merged)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:458 (param)`; `crates/metal2vulkan/src/pipeline/compile.rs:2173 (plan_one)`; `crates/metal2vulkan/src/pipeline/compile.rs:2178 (plan_one)`
|
|
- `feature::VulkanVersion`: `crates/metal2vulkan/src/ash_interop/query.rs:928 (query)`; `crates/metal2vulkan/src/device/derive.rs:105 (with_deviations)`
|
|
- `feature::Constant`: `crates/metal2vulkan-air/src/bitcode/constants.rs:210 (record)`; `crates/metal2vulkan-air/src/bitcode/constants.rs:268 (record)`; `crates/metal2vulkan/src/error/mod.rs:256 (from)`
|
|
- `feature::Attribute`: `crates/metal2vulkan-air/src/bitcode/attrs.rs:493 (known)`; `crates/metal2vulkan/src/error/mod.rs:257 (from)`
|
|
- `feature::BitcodeRecord`: `crates/metal2vulkan-air/src/bitcode/attrs.rs:337 (decode_lists)`; `crates/metal2vulkan-air/src/bitcode/function.rs:572 (symtab)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:130 (decode)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:157 (decode)`; `crates/metal2vulkan-air/src/bitcode/module.rs:727 (check_bodies)`; `crates/metal2vulkan-air/src/bitcode/module.rs:872 (symtab)`; `crates/metal2vulkan/src/error/mod.rs:258 (from)`
|
|
- `feature::SyncScope`: `crates/metal2vulkan-air/src/bitcode/function.rs:1255 (atomic)`; `crates/metal2vulkan/src/error/mod.rs:259 (from)`
|
|
- `feature::SubgroupOperations`: `crates/metal2vulkan-runtime/src/families/features.rs:1720 (simd)`; `crates/metal2vulkan/src/lower/simd/mod.rs:407 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:466 (full_quads)`; `crates/metal2vulkan/src/lower/simd/mod.rs:990 (select_group)`
|
|
- `feature::DirectCall`: `crates/metal2vulkan-air/src/canon/mod.rs:1319 (post_check)`
|
|
- `feature::WideSwitchLiteral`: `crates/metal2vulkan/src/structurize/emit.rs:207 (check_tree)`
|
|
- `feature::Lowering`: `crates/metal2vulkan/src/bind/plan/resources.rs:762 (level_views)`; `crates/metal2vulkan/src/lower/access/handle.rs:1062 (texture_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:1073 (sampler_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:318 (domain_kind)`; `crates/metal2vulkan/src/lower/access/imageblock.rs:175 (operand)`; `crates/metal2vulkan/src/lower/access/mod.rs:571 (not_lowered)`; `crates/metal2vulkan/src/lower/access/pulled.rs:76 (share)`; `crates/metal2vulkan/src/lower/arith/legal.rs:53 (not_lowered)`; `crates/metal2vulkan/src/lower/dispatch.rs:117 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:144 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:653 (plan)`; `crates/metal2vulkan/src/lower/fragment/mod.rs:123 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs:168 (finish)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:153 (not_lowered)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:126 (not_lowered)`; `crates/metal2vulkan/src/lower/sampler/mod.rs:212 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:30 (refuse)`; `crates/metal2vulkan/src/lower/select.rs:829 (not_lowered)`; `crates/metal2vulkan/src/lower/select.rs:918 (route_air)`; `crates/metal2vulkan/src/lower/simd/mod.rs:136 (not_lowered)`; `crates/metal2vulkan/src/lower/simd/mod.rs:747 (select_param)`; `crates/metal2vulkan/src/lower/simd/workgroup.rs:353 (check)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:96 (not_lowered)`; `crates/metal2vulkan/src/lower/stage_io/mod.rs:182 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:72 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:269 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:310 (select)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:146 (not_lowered)`; `crates/metal2vulkan/src/lower/texture/mod.rs:185 (refuse)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3689 (select_write)`; `crates/metal2vulkan/src/memory/alloca.rs:54 (not_lowered)`; `crates/metal2vulkan/src/memory/leaf.rs:183 (not_lowered)`; `crates/metal2vulkan/src/memory/plan.rs:490 (not_lowered)`; `crates/metal2vulkan/src/memory/provenance.rs:665 (not_lowered)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:96 (patch_fetch_projection)`
|
|
- `feature::SamplerAddressMode`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:176`; `crates/metal2vulkan/src/metal/sampler.rs:251 (check_sampler)`
|
|
- `feature::AlphaToOne`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:293 (graphics_state)`
|
|
- `feature::StageStoresAndAtomics`: `crates/metal2vulkan/src/lower/access/tile_memory.rs:72 (written)`
|
|
- `feature::FunctionConstantArgument`: `crates/metal2vulkan-air/src/canon/interface.rs:899 (absent_values)`; `crates/metal2vulkan/src/lower/access/absent.rs:100 (require)`
|
|
- `feature::SamplerBicubicFilter`: `crates/metal2vulkan/src/bind/heap.rs:997 (new)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1876 (bicubic_texels)`; `crates/metal2vulkan/src/bind/plan/slots.rs:503 (cubic_variant)`; `crates/metal2vulkan/src/lower/sampler/bicubic.rs:120 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:35 (bicubic_refused)`
|
|
- `feature::GroupCount`: `crates/metal2vulkan/src/bind/dispatch.rs:379 (product)`; `crates/metal2vulkan/src/bind/dispatch.rs:455`; `crates/metal2vulkan/src/bind/dispatch.rs:953 (instantiate)`; `crates/metal2vulkan/src/bind/graphics.rs:3426 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:3483 (emulated_draw)`
|
|
- `feature::IntersectionFunctionTable`: `crates/metal2vulkan/src/bind/acceleration.rs:177 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:183 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:188 (geometry_table_offset)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1222 (null_table)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1251 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1272 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:406 (table_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:422 (select_table)`; `crates/metal2vulkan/src/lower/select.rs:885 (route_air)`
|
|
- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:2201 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1020 (uniform_blend)`
|
|
- `feature::RasterSampleCount`: `crates/metal2vulkan-runtime/src/families/limits.rs:1063 (sample_count)`; `crates/metal2vulkan/src/pipeline/graphics.rs:573 (sample_count_properties)`
|
|
- `feature::TriangleFillLines`: `crates/metal2vulkan/src/metal/state.rs:358 (polygon_mode)`
|
|
- `feature::DepthClipClamp`: `crates/metal2vulkan/src/metal/state.rs:374 (depth_clamp_enable)`
|
|
- `feature::DepthBiasClamp`: `crates/metal2vulkan/src/metal/state.rs:474 (depth_bias)`
|
|
- `feature::ConstantAlphaBlendFactor`: `crates/metal2vulkan/src/metal/state.rs:176 (check_constant_alpha)`
|
|
- `feature::SparseTexture`: `crates/metal2vulkan/src/bind/plan/slots.rs:583 (check_sparse_textures)`; `crates/metal2vulkan/src/bind/plan/slots.rs:607 (check_sparse_textures)`
|
|
- `feature::TextureSize`: `crates/metal2vulkan-runtime/src/image_plan.rs:1165 (check_image_limits)`
|
|
- `feature::TextureSampleCount`: `crates/metal2vulkan-runtime/src/image_plan.rs:1213 (check_image_limits)`; `crates/metal2vulkan-runtime/src/image_plan.rs:567 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:577 (plan_held)`
|
|
- `feature::TextureView`: `crates/metal2vulkan-runtime/src/binding_view.rs:156 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:5231 (view)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:1427 (make_second_twin)`; `crates/metal2vulkan-runtime/src/texture/view_shadow.rs:298 (apart_refusal)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:303 (converted_view)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:377 (luma_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs:434 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:486 (check_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs:508 (check_view)`
|
|
- `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs:167 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:999 (may_view)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1102 (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2591 (select_one)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3415 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3762 (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs:307 (select)`
|
|
- `feature::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1890 (mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37 (pick_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:262 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:270 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:275 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:304 (plan_mipmaps)`; `crates/metal2vulkan/src/bind/mipmap_filter.rs:973 (mipmap_filter_module)`
|
|
- `feature::HostMemory`: `crates/metal2vulkan-runtime/src/host_memory.rs:430 (not_importable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:470 (refuse_unwritable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:689 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:694 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:712 (new)`
|
|
- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2936 (gpu_times)`
|
|
- `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs:452 (check_mode)`
|
|
- `feature::ViewFormatReinterpretation`: `crates/metal2vulkan-runtime/src/view_plan.rs:573 (reinterpretation_refused)`
|
|
- `feature::SeparateMultisampledDepthStencil`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:188 (sampled_candidate)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:294 (by_draws)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:336 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:376 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:777 (plan)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:658 (nan_write)`; `crates/metal2vulkan-runtime/src/texture/signed_depth.rs:191 (sample_strip)`
|
|
- `feature::PixelCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs:1232 (state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:786 (split_pixel_fragments)`
|
|
- `feature::CentroidVarying`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:804 (split_pixel_fragments)`
|
|
- `feature::PrivateMemory`: `crates/metal2vulkan/src/lower/select.rs:1171 (function_storage)`
|
|
- `feature::SparseTextures`: `crates/metal2vulkan-runtime/src/sparse/texture.rs:60 (sparse_refusal)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs:65 (sparse_refusal)`
|
|
- `feature::TimelineSemaphores`: `crates/metal2vulkan-runtime/src/device/create.rs:1115 (timeline_difference)`
|
|
- `feature::Reflection`: `crates/metal2vulkan-runtime/src/pipeline/texture_access.rs:131 (at)`; `crates/metal2vulkan/src/bind/argument_buffer.rs:626 (unmeasured)`; `crates/metal2vulkan/src/reflection/derive.rs:182 (specialized_reads)`; `crates/metal2vulkan/src/reflection/derive.rs:216 (read_attributes)`; `crates/metal2vulkan/src/reflection/derive.rs:243 (gap_at)`; `crates/metal2vulkan/src/reflection/function.rs:172 (unmeasured)`; `crates/metal2vulkan/src/reflection/function.rs:366 (attribute)`; `crates/metal2vulkan/src/reflection/function.rs:437 (module_constants)`; `crates/metal2vulkan/src/reflection/linked.rs:125 (function)`; `crates/metal2vulkan/src/reflection/mod.rs:254 (stage)`
|
|
- `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs:632 (tiling_refusal)`
|
|
- `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs:1230 (depth_ranges_refused)`
|
|
- `feature::UndeclaredTextureUsage`: `crates/metal2vulkan-runtime/src/binding_view.rs:141 (binding_view)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:72 (refused)`
|
|
- `feature::RenderTargetSize`: `crates/metal2vulkan-runtime/src/render_pass.rs:1275 (framebuffer_fits)`
|
|
- `feature::IndirectRenderState`: `crates/metal2vulkan/src/lower/access/encode.rs:568 (select_command)`
|
|
- `feature::GlobalBuiltinInFragment`: `crates/metal2vulkan/src/lower/select.rs:912 (route_air)`
|
|
- `feature::PrivateRenderState`: `crates/metal2vulkan/src/bind/heap.rs:1300 (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs:887 (write_rounding)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2715 (clamps_reference)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:3445 (alpha_test_refused)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2926 (mode_rounded_write)`; `crates/metal2vulkan/src/pipeline/private_state.rs:115 (refused)`; `crates/metal2vulkan/src/pipeline/private_state.rs:449 (logic_operation)`
|
|
- `feature::ExtendedRangeBlend`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:305 (refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1654 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1699 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1756 (plan)`
|
|
- `feature::TileReach`: `crates/metal2vulkan/src/bind/tile_reach.rs:270 (tile_reach_module)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2517 (capture)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2543 (capture)`
|
|
- `feature::ProgramScopeBinding`: `crates/metal2vulkan-air/src/abi/module.rs:77 (decode)`; `crates/metal2vulkan/src/error/mod.rs:268 (from)`
|
|
- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs:443 (require_seq_cst)`
|
|
- `feature::PostDepthCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs:1226 (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:783 (param)`
|
|
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs:163 (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:1605 (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1625 (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1464 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:2257 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3086 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4136 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5807 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:207 (new_surface_planes_texture)`
|
|
- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs:1982 (descriptor)`
|
|
- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:442 (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs:1684 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4921 (make_aliasable)`
|
|
- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs:562 (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs:43 (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs:1742 (sparse_zeroing)`; `crates/metal2vulkan-runtime/src/texture.rs:1746 (sparse_zeroing)`
|
|
- `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs:714 (heap_size)`
|
|
- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1073 (check_heap_base)`
|
|
- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1511 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1518 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2060 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2292 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:556 (memory_refusal)`
|
|
- `gap::FunctionTablePastMaxBufferLength`: `crates/metal2vulkan-runtime/src/function_table.rs:622 (past_limit)`
|
|
- `gap::IndirectCommandBufferPastMaxBufferLength`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:523 (new_indirect_command_buffer)`
|
|
- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1317 (execute_range)`; `crates/metal2vulkan-runtime/src/compute.rs:1402 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:4631 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:518 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1632 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:7295 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7879 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8337 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8891 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1127 (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2942 (record_forms)`; `crates/metal2vulkan-runtime/src/render/executions.rs:393 (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:461 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:476 (execute_indirect_range)`
|
|
- `gap::IndirectImageblockSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3601 (set_imageblock_size)`
|
|
- `gap::CommandReplay`: `crates/metal2vulkan-runtime/src/binding.rs:723 (bind_into)`; `crates/metal2vulkan-runtime/src/binding.rs:726 (bind_into)`
|
|
- `gap::RenderAttachments`: `crates/metal2vulkan-runtime/src/binding.rs:1794 (unexpected)`
|
|
- `gap::AccelerationStructures`: `crates/metal2vulkan-runtime/src/binding.rs:1797 (unexpected)`
|
|
- `gap::FeatureEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1167 (of)`
|
|
- `gap::ExtensionEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1158 (of)`
|
|
- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:461 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:685 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:840 (attachment_twin)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:283 (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs:138 (settle)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs:293 (settle)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs:1181 (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs:2251 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:6001 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:7973 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:516 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1317 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1679 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1733 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1794 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:2027 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1039 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:1107 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:1154 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1171 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1236 (destination)`
|
|
- `gap::TexelsPastBufferLength`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:260 (refusal_error)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:105 (surface_depth_twin)`
|
|
- `gap::OverlappingSurfaceRows`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:262 (refusal_error)`
|
|
- `gap::SamplePositionsAtBegin`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:145 (stencil_scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1864 (positioned_stand_in)`; `crates/metal2vulkan-runtime/src/sample_positions.rs:196 (refusal_error)`
|
|
- `gap::SharedEventAcrossDevices`: `crates/metal2vulkan-runtime/src/event.rs:385 (new_shared_event_with_handle)`
|
|
- `gap::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render/draw_shape.rs:341 (settings)`; `crates/metal2vulkan-runtime/src/render_state.rs:1053`; `crates/metal2vulkan-runtime/src/render_state.rs:1222 (depth_ranges_refused)`; `crates/metal2vulkan-runtime/src/render_state.rs:1589 (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs:1608 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:541 (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs:769 (compensation)`
|
|
- `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs:1617 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:1620 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:379 (set_depth_bias)`; `crates/metal2vulkan-runtime/src/render_state.rs:477 (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs:619 (compensation)`
|
|
- `gap::DepthNeverWithoutAttachment`: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147 (failing_draw)`
|
|
- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:6678 (hidden_depth_stencil)`
|
|
- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:102 (new)`; `crates/metal2vulkan-runtime/src/render.rs:3331 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:7624 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7761 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7792 (draw_resident)`
|
|
- `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441 (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs:1392 (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs:791 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:889 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:909 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:950 (split_steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:962 (split_steps)`
|
|
- `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render_pass.rs:1614 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:937`
|
|
- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:7449 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929 (dispatch_tiles_resident)`
|
|
- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:7441 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796 (dispatch_tiles_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:921 (dispatch_tiles_resident)`
|
|
- `gap::Metal4Api`: `crates/metal2vulkan-runtime/src/families/features.rs:1494 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1026 (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs:362 (audit)`
|
|
- `gap::CounterSampleBuffers`: `crates/metal2vulkan-runtime/src/families/limits.rs:1017 (state)`
|
|
- `gap::ResidencySets`: `crates/metal2vulkan-runtime/src/families/features.rs:1476 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1019 (state)`
|
|
- `gap::TextureAccessCounters`: `crates/metal2vulkan-runtime/src/families/features.rs:1463 (state)`; `crates/metal2vulkan-runtime/src/families/features.rs:1468 (state)`
|
|
- `gap::IoCommandQueues`: `crates/metal2vulkan-runtime/src/families/features.rs:1473 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1024 (state)`
|
|
- `gap::TextureViewPools`: `crates/metal2vulkan-runtime/src/families/features.rs:1477 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1025 (state)`
|
|
- `gap::ColorAttachmentMapping`: `crates/metal2vulkan-runtime/src/families/features.rs:1478 (state)`
|
|
- `gap::LossyTextureCompression`: `crates/metal2vulkan-runtime/src/families/features.rs:1472 (state)`
|
|
- `gap::ShaderValidation`: `crates/metal2vulkan-runtime/src/families/features.rs:1474 (state)`
|
|
- `gap::ShaderLogging`: `crates/metal2vulkan-runtime/src/families/features.rs:1475 (state)`
|
|
- `gap::DeviceNotifications`: `crates/metal2vulkan-runtime/src/families/features.rs:1479 (state)`
|
|
- `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:479 (refusal)`
|
|
- `gap::LayeredPass`: `crates/metal2vulkan-runtime/src/color_resolve.rs:928 (plan)`
|
|
- `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1340 (texture_copies_of_bytes)`
|
|
- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2742 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2757 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2768 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2811 (dma_buf_heap_images_again)`
|
|
- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5896 (host_copy)`
|
|
- `gap::DecodedHeapTexture`: `crates/metal2vulkan-runtime/src/texture.rs:1692 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1375 (heap_plan)`
|
|
- `gap::VertexFetchPast4GiB`: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72 (check_vertex_reach)`
|
|
- `gap::StageInFetchPast4GiB`: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126 (check_stage_in_reach)`
|
|
- `gap::MappedTextureSampling`: `crates/metal2vulkan-runtime/src/address_map.rs:158 (resolve)`
|
|
- `gap::LibrarySource`: `crates/metal2vulkan-runtime/src/library.rs:108 (new_library_with_source)`
|
|
- `gap::RestartedStrip`: `crates/metal2vulkan-runtime/src/render/restart.rs:71 (gap)`
|
|
- `gap::PrivatePrimitives`: `crates/metal2vulkan-runtime/src/render.rs:8174 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/restart.rs:72 (gap)`
|
|
- `gap::ProvokingVertex`: `crates/metal2vulkan-runtime/src/render/restart.rs:73 (gap)`
|
|
- `gap::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs:8185 (draw_resident)`
|
|
- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1669 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:735 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:185 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:201 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:667 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5189 (view)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:100 (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:322 (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:238 (new_usage_shadow)`
|
|
- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:641 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:638 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:186 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2951 (heap_texture_at)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:143 (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:253 (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:303 (stand_ins)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:309 (stand_ins)`
|
|
- `gap::TextureBufferLevels`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:548 (check_made)`
|
|
- `gap::WriteSwizzle`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:555 (check_made)`
|
|
- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs:5019 (refuse_detached_texels)`
|
|
- `gap::SurfaceDepthStencil`: `crates/metal2vulkan-runtime/src/blit_texture.rs:269 (unit)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:57 (surface_depth_twin)`
|
|
- `gap::MultisampledBufferCopy`: `crates/metal2vulkan-runtime/src/blit_texture.rs:536 (copy_from_buffer_to_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:693 (copy_from_texture_to_buffer)`
|
|
- `gap::MultisampledBufferLayout`: `crates/metal2vulkan-runtime/src/sample_interleave.rs:1029 (plan)`
|
|
- `gap::ColorAttachmentGroups`: `crates/metal2vulkan-runtime/src/render/color_groups.rs:106 (gap)`
|
|
- `apple::ProtectedContent`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2467 (commit_now)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126 (refuse_protected_state_encoder)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:52 (set)`
|
|
- `apple::LineWidth`: `crates/metal2vulkan-runtime/src/apple_only.rs:190 (check)`
|
|
- `apple::ViewportTransformDisabled`: `crates/metal2vulkan-runtime/src/apple_only.rs:192 (check)`
|
|
- `apple::VertexAmplificationMode`: `crates/metal2vulkan-runtime/src/apple_only.rs:196 (check)`; `crates/metal2vulkan-runtime/src/apple_only.rs:321 (set_vertex_amplification_mode)`
|
|
- `apple::SurfaceClientDirection`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:422 (new_texture_with_iosurface_plane)`
|
|
- `bind::DescriptorRangeExceeded`: `crates/metal2vulkan/src/bind/instantiate.rs:655 (bind_buffers)`
|
|
- `bind::TexelBufferTooLarge`: `crates/metal2vulkan/src/bind/instantiate.rs:894 (texel_ranges)`
|
|
- `bind::HeapTooLarge`: `crates/metal2vulkan/src/bind/heap.rs:1014 (new)`; `crates/metal2vulkan/src/bind/heap.rs:1748 (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs:1863 (listed_sampler_tables)`; `crates/metal2vulkan/src/bind/heap.rs:1913 (placed)`; `crates/metal2vulkan/src/bind/heap.rs:2069 (heap_elements)`; `crates/metal2vulkan/src/bind/heap.rs:949 (new)`; `crates/metal2vulkan/src/bind/heap.rs:965 (new)`
|
|
- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs:3834 (patch_binding)`
|
|
- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3878 (patch_binding)`
|
|
- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3916 (patch_binding)`
|
|
- `bind::MissingStageInRegion`: `crates/metal2vulkan/src/bind/dispatch.rs:796 (instantiate)`
|
|
- `bind::UniformViewAliased`: `crates/metal2vulkan/src/bind/instantiate.rs:609 (check_uniform_aliasing)`
|
|
- `bind::MissingDeviceAddress`: `crates/metal2vulkan/src/bind/plan/slots.rs:133 (plan_buffer)`
|
|
- `limit::InlinedInstructions`: `crates/metal2vulkan-air/src/canon/inline.rs:330 (u32_of)`; `crates/metal2vulkan-air/src/canon/inline.rs:334 (usize_of)`; `crates/metal2vulkan-air/src/canon/inline.rs:61 (inline)`
|
|
- `limit::OutputBlocks`: `crates/metal2vulkan/src/structurize/irreducible.rs:90 (round)`; `crates/metal2vulkan/src/structurize/mod.rs:187 (structure_prepared)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs:423 (output_cap_is_checked_before_allocating)`; `crates/metal2vulkan/src/structurize/structurizer_properties/trees.rs:232 (the_output_cap_is_checked_before_emission)`
|
|
- `limit::IrreducibleDepth`: `crates/metal2vulkan-air/src/graph/loops.rs:176 (compute_in)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs:226 (check_within_depth)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs:381 (irreducible_nesting_beyond_the_cap_is_refused)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs:386 (irreducible_nesting_beyond_the_cap_is_refused)`
|
|
- `limit::SpirvWords`: `crates/metal2vulkan/src/lower/estimate.rs:46 (check)`; `crates/metal2vulkan/src/lower/estimate.rs:57 (check_emitted)`
|
|
- `limit::WorkUnits`: `crates/metal2vulkan-air/src/budget/mod.rs:264 (tick)`
|
|
- `limit::LedgerBytes`: `crates/metal2vulkan-air/src/bitstream/mod.rs:557 (count)`; `crates/metal2vulkan-air/src/budget/mod.rs:288 (charge)`; `crates/metal2vulkan-air/src/budget/mod.rs:305 (reserve)`; `crates/metal2vulkan-air/src/budget/mod.rs:324 (reserve_exact)`; `crates/metal2vulkan-air/src/budget/mod.rs:330 (reserve_exact)`; `crates/metal2vulkan-air/src/budget/mod.rs:355 (grow)`; `crates/metal2vulkan-air/src/budget/mod.rs:362 (grow)`; `crates/metal2vulkan-air/src/graph/mod.rs:175 (grow)`; `crates/metal2vulkan/src/spirv/verify/mod.rs:328 (with_capacity)`
|
|
- `limit::TypeCount`: `crates/metal2vulkan-air/src/bitcode/types.rs:159 (decode)`; `crates/metal2vulkan-air/src/ir/types.rs:239 (intern)`
|
|
- `limit::MetadataNodes`: `crates/metal2vulkan-air/src/bitcode/function.rs:334 (metadata)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:192 (push)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:221 (strings)`
|
|
- `limit::BitstreamNesting`: `crates/metal2vulkan-air/src/bitstream/mod.rs:267 (enter_block)`
|
|
- `limit::InstructionCount`: `crates/metal2vulkan-air/src/bitcode/function.rs:1462 (call)`; `crates/metal2vulkan-air/src/bitcode/function.rs:180 (decode)`; `crates/metal2vulkan-air/src/bitcode/function.rs:320 (constants)`; `crates/metal2vulkan-air/src/bitcode/function.rs:590 (forward)`; `crates/metal2vulkan-air/src/bitcode/function.rs:681 (push)`; `crates/metal2vulkan-air/src/bitcode/function.rs:692 (push)`; `crates/metal2vulkan-air/src/bitcode/function.rs:722 (count_record)`; `crates/metal2vulkan-air/src/bitcode/function.rs:726 (count_record)`
|
|
- `limit::LayoutNesting`: `crates/metal2vulkan-air/src/abi/structs.rs:147 (open)`; `crates/metal2vulkan-air/src/abi/structs.rs:160 (finish)`; `crates/metal2vulkan/src/bind/argument_buffer.rs:713 (layout)`
|
|
- `limit::ConstructNesting`: `crates/metal2vulkan/src/structurize/emit.rs:216 (check_tree)`; `crates/metal2vulkan/src/structurize/emit/predicate.rs:151 (facts)`
|
|
- `limit::PrivateArenaBytes`: `crates/metal2vulkan/src/lower/access/local.rs:650 (use_arena)`; `crates/metal2vulkan/src/memory/plan.rs:1880 (place_allocas)`; `crates/metal2vulkan/src/memory/plan.rs:1887 (place_allocas)`
|
|
- `limit::CallStackBytes`: `crates/metal2vulkan-air/src/canon/recursion.rs:118 (metal_stack)`
|
|
- `ratemap::ScreenExtent`: `crates/metal2vulkan-runtime/src/rate_map.rs:449 (compile_over)`; `crates/metal2vulkan/src/bind/rate_map.rs:523 (new)`
|
|
- `ratemap::LayerCount`: `crates/metal2vulkan/src/bind/rate_map.rs:527 (new)`
|
|
- `ratemap::DenseSamples`: `crates/metal2vulkan/src/bind/rate_map.rs:544 (new)`
|
|
- `ratemap::SampleOutOfRange`: `crates/metal2vulkan/src/bind/rate_map.rs:552 (new)`
|
|
- `ratemap::SampleCount`: `crates/metal2vulkan/src/bind/rate_map.rs:560 (new)`
|
|
- `budget::Time`: `crates/metal2vulkan-air/src/budget/mod.rs:275 (tick)`
|
|
|