What: Surface::buffer() answers a Buffer over the surface's memory, of the export's size, at the layout the SurfaceExport states. In place it is made at the first call, never at the surface's make: of an opaque handle, a buffer bound at the first byte of the one allocation the planes are bound in (memory::surface_view; the allocation now takes device addresses, which the buffer's binding needs); of a dma-buf, a buffer on one more import of the dma-buf (import::surface_import) into the memory type the planes' imports took, through a duplicate of an fd the surface keeps, attempted only where the device's buffers import a dma-buf and the fd's query and the buffer's requirements list that type. The copy form answers its block's buffer. The first call records the buffer's acquire from the other API's queue family; external_writes_done acquires it with the planes and release_surface_to_external releases it with them, writing back the copies of textures over it first. The surface, its planes and their views, and its buffer are one unit in the hazard sets: the planes take a HeapId::unit at the make and the buffer takes the same one, so a kernel's write through the buffer orders the next kernel's read through a plane as a heap's resources do. Counted in the new Gauges::surface_buffers (a dma-buf's also in surface_imports); refused with Limit::ExportType, Limit::NoImport and the new Error::Fd (no duplicate of the fd). The doc comment quotes Vulkan 12.11 Memory Aliasing and the fd import's multiple-import sentence, and names the same-instance reading the dma-buf form takes. Test: every_device_carries_each_form_of_surface gains the buffer round (two pictures the second device wrote read through the buffer, one at its make and one after external_writes_done, with a one-byte-off negative control; a picture blitted into the buffer read through the planes and the handle) and, on 1080p with llvm-as, the compute round (a kernel writes through the buffer, the next reads plane 0 through a view; texels exact, and in place one barrier more than a control whose first kernel writes a buffer of its own). Each device prints whether its buffers import a dma-buf. Not yet run. docs/REFUSALS.md and api_signatures.tsv regenerated; the rt guide states the contract.
1351 lines
360 KiB
Markdown
1351 lines
360 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` and the refusals' own doc comments, never the tables). Sections 8 and 9 are the other half: what a call did wrong, each row a claim that Metal itself refuses an input, with the basis of that claim; section 9 holds the problem enums a `Problem` forwards to, where most of those claims live. Section 10 is the new runtime's floor: a device below it is refused when the device is made, with every item it lacks named. The sections after it are the new runtime's own typed refusals, one for each enum its `Error` carries, every row with its declared basis. Malformed input of no Metal call at all is misuse and is not listed. [`METAL-COVERAGE.md`](METAL-COVERAGE.md) lists the Metal API the runtime has no counterpart for at all.
|
|
|
|
Columns:
|
|
|
|
- **What it blocks**: the variant's doc comment, first sentence, and "not scheduled" where the doc says so.
|
|
- **Where**: the device condition, from the constructor at its sites: `NotImplemented` and `NotRepresentable` refuse on every device; `needs` names the Vulkan feature, extension, property or limit a device lacks; a driver defect or deviation names the driver. A site that computes its capability says so.
|
|
- **Sites**: how many construction sites, then the first two as `file (function)`, with the count where one function builds more than one. "via a helper" counts the places that hand the feature to a function that builds the refusal; "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.
|
|
- **Basis**: where the belief that this input must be refused comes from. Derived from the construction site where the site says it (`device`, `ours`), declared as a last `Basis:` line in the refusal's own doc comment where the claim is about Metal itself, and `-` where neither says it yet:
|
|
- `metal-measured`: Metal itself refuses the input, and a run of ours on a named device or release says so;
|
|
- `metal-documented`: Metal itself refuses it, and Apple's own words say so: a quoted assertion, `NSError` or validation message, a header, or Apple's documentation;
|
|
- `metal-takes`: measured: plain Metal **takes** this input, so the refusal reaches past Metal. An open defect, recorded here rather than left unsaid;
|
|
- `device`: the mechanism is absent: from this Vulkan device, from its driver, or from every Vulkan device;
|
|
- `ours`: this crate's own gap, cap or deadline, or the misuse of a runtime extension Metal has no counterpart for;
|
|
- `unknown`: not established: the refusal stands, and why Metal is believed to refuse this has not been settled;
|
|
- `delegated`: the variant forwards to another problem enum, whose own variants carry the claims. Those enums are read too: each is a family of section 9, named in the row, and a variant of one whose basis is absent or malformed fails the check as a `Problem`'s does. A family whose forwarding variant states a basis of its own instead (a runtime extension Metal has no counterpart for) carries that value in section 9, cited to the variant it comes from.
|
|
- **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.
|
|
Metal's own refusals (sections 8 and 9) carry no reach mark: every one of them is an argument of a public call. Nor do the floor (section 10), which turns on the device whatever the program, and the new runtime's refusals after it, each an argument of a public call.
|
|
|
|
## Totals
|
|
|
|
| Kind | Variants | With a site | Reach system | Reach app | Reach rare | Reach none | Unassessed |
|
|
|---|---|---|---|---|---|---|---|
|
|
| Translator and front-end refusals | 135 | 135 | 8 | 33 | 74 | 20 | 0 |
|
|
| Runtime gaps | 80 | 80 | 1 | 10 | 46 | 23 | 0 |
|
|
| Apple-only calls | 4 | 4 | 0 | 0 | 0 | 4 | 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 |
|
|
| What a call did wrong | 73 | 73 | 0 | 0 | 0 | 0 | 0 |
|
|
| What a call did wrong, in detail | 174 | 157 | 0 | 0 | 0 | 0 | 0 |
|
|
| Devices below the new runtime's floor | 8 | 8 | 0 | 0 | 0 | 0 | 0 |
|
|
| The new runtime's `Refusal` | 72 | 72 | 0 | 0 | 0 | 0 | 0 |
|
|
| The new runtime's `Limit` | 16 | 16 | 0 | 0 | 0 | 0 | 0 |
|
|
| The new runtime's `Gap` | 27 | 27 | 0 | 0 | 0 | 0 | 0 |
|
|
|
|
## Totals by basis
|
|
|
|
| Kind | `metal-measured` | `metal-documented` | `metal-takes` | `device` | `ours` | `unknown` | `delegated` | `-` |
|
|
|---|---|---|---|---|---|---|---|---|
|
|
| Translator and front-end refusals | 0 | 0 | 0 | 51 | 61 | 0 | 0 | 23 |
|
|
| Runtime gaps | 0 | 0 | 0 | 0 | 80 | 0 | 0 | 0 |
|
|
| Apple-only calls | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
|
|
| Binder refusals at a device limit | 0 | 0 | 0 | 9 | 0 | 0 | 0 | 0 |
|
|
| Translation caps | 0 | 0 | 0 | 0 | 14 | 0 | 0 | 0 |
|
|
| Rate maps the compile layer does not compile | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
|
|
| The translation deadline | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
|
|
| What a call did wrong | 22 | 3 | 5 | 0 | 18 | 8 | 17 | 0 |
|
|
| What a call did wrong, in detail | 60 | 26 | 23 | 0 | 39 | 26 | 0 | 0 |
|
|
| Devices below the new runtime's floor | 0 | 0 | 0 | 8 | 0 | 0 | 0 | 0 |
|
|
| The new runtime's `Refusal` | 20 | 16 | 0 | 0 | 36 | 0 | 0 | 0 |
|
|
| The new runtime's `Limit` | 0 | 0 | 0 | 12 | 4 | 0 | 0 | 0 |
|
|
| The new runtime's `Gap` | 0 | 0 | 0 | 1 | 26 | 0 | 0 | 0 |
|
|
|
|
## 1. Translator and front-end refusals (`Unsupported`: a `Feature` and its `Needs`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `LibraryKind` | A metallib of a kind the container does not read | - | `-` | via a helper: 2: `crates/metal2vulkan-air/src/container/mtlb.rs (parse)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: a metallib file type Apple's toolchain is not seen to write |
|
|
| `Stage` | A function stage the model does not cover | - | `-` | via a helper: 2: `crates/metal2vulkan-air/src/abi/check.rs (unsupported_stage)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: a stage outside AIR's public stages |
|
|
| `AddressSpace` | An LLVM address space the typed model does not define (it defines AIR's `thread` 0 through `threadgroup_imageblock` 4, `object_data` 6, the mesh... | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/ir/types.rs (from_raw)`, `crates/metal2vulkan/src/memory/plan.rs (reprs)` | `none`: Apple's AGX library address spaces |
|
|
| `ModuleRecord` | A module-level record outside the accepted subset (alias, ifunc, comdat, …) | - | `-` | via a helper: 4: `crates/metal2vulkan-air/src/bitcode/module.rs (function)`, `crates/metal2vulkan-air/src/bitcode/module.rs (global)` (+2) | `none`: LLVM constructs AIR does not emit |
|
|
| `Instruction` | An instruction record outside the closed instruction set | - | `-` | via a helper: 11: `crates/metal2vulkan-air/src/bitcode/function.rs (call, 2 sites)`, `crates/metal2vulkan-air/src/bitcode/function.rs (record, 8 sites)` (+1) | `none`: LLVM instructions AIR does not emit |
|
|
| `Type` | A type outside the typed model | - | `-` | via a helper: 4: `crates/metal2vulkan-air/src/bitcode/types.rs (decode, 3 sites)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: LLVM types AIR does not emit |
|
|
| `CallingConvention` | A calling convention other than AIR's | - | `-` | via a helper: 3: `crates/metal2vulkan-air/src/bitcode/function.rs (call)`, `crates/metal2vulkan-air/src/bitcode/module.rs (function)` (+1) | `none`: LLVM calling conventions AIR does not use |
|
|
| `UnknownIntrinsic` | An intrinsic outside the closed set | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/error.rs (from)`, `crates/metal2vulkan/src/lower/select.rs (route)` | `rare`: AIR from a newer compiler (macOS 27 AIR 2.9) |
|
|
| `AgxUnmodeled` | An AGX intrinsic whose semantics are not modeled | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/simd/agx.rs (unmodeled)` | `rare`: Apple's own libraries' AGX intrinsics |
|
|
| `StaticInitializer` | A static initializer that cannot be evaluated | every device (not implemented) | `ours` | 1: `crates/metal2vulkan-air/src/error.rs (from)` | `none`: LLVM initializers AIR does not emit |
|
|
| `Recursion` | Recursion (one variant) | every device (not implemented) | `ours` | 4: `crates/metal2vulkan-air/src/canon/mod.rs (recursion, 2 sites)`, `crates/metal2vulkan-air/src/canon/recursion.rs (dynamic_alloca)` (+1) | `rare`: recursion through visible functions |
|
|
| `DynamicCall` | Indirect calls, function pointers, visible/intersection function tables (one variant) | every device (no Vulkan mechanism); every device (not implemented) | `ours` | 9: `crates/metal2vulkan-air/src/canon/devirt.rs (record)`, `crates/metal2vulkan-air/src/canon/devirt.rs (site)` (+5) | `rare`: function pointers and function tables |
|
|
| `InlineAsm` | A call to inline assembly (`asm`) that an entry reaches, other than the empty `asm sideeffect "", ""` decode drops | every device (not implemented) | `ours` | 1: `crates/metal2vulkan-air/src/canon/mod.rs (post_check)` | `none`: inline assembly other than the empty asm("") decode drops, which MSL refuses to compile |
|
|
| `Linking` | Linkage signatures / stitching / dynamic libraries | every device (not implemented) | `ours` | 3: `crates/metal2vulkan-air/src/canon/link.rs (not_implemented)`, `crates/metal2vulkan-air/src/canon/mod.rs (post_check)` (+1) | `rare`: dynamic libraries and linked functions |
|
|
| `SimdWidth` | Simdgroup width 32 is not achievable for this usage, stage, and device | devices without VkProperty::MetalFragmentSimdgroups; devices without a capability the site computes (`width_needs(stage, st)`) | `device` | 2: `crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier)`, `crates/metal2vulkan/src/lower/simd/mod.rs (finish)` | `app`: simdgroup functions on a device whose subgroups cannot run 32 wide for the use |
|
|
| `LocalSize` | A local size beyond a device limit on this axis (`None` | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/bind/dispatch.rs (regions)` | `app`: a threadgroup size past a smaller device's limit |
|
|
| `IrreducibleConvergent` | An irreducible region containing a convergent instruction | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/structurize/irreducible.rs (refuse_tangled)` | `rare`: irreducible loops around barriers or simd operations |
|
|
| `ComputeDerivativesWithSimd` | Compute derivatives in a flattened simd tier | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/lower/dispatch.rs (plan_kernel)` | `rare`: derivatives in a kernel |
|
|
| `ComputeDerivatives` | Derivatives outside fragment without compute-derivative support | devices without VkFeature::ComputeDerivativeGroupLinear; every device (no Vulkan mechanism); every device (not implemented) | `ours` | 4: `crates/metal2vulkan/src/bind/dispatch.rs (check_local)`, `crates/metal2vulkan/src/lower/sync/barrier.rs (select_derivative, 3 sites)` | `rare`: derivatives in a kernel |
|
|
| `QuadOperations` | Quad operations in a stage without quad support | devices without VkLimit::MinSubgroupSize; devices without VkProperty::SubgroupQuadOperationsInAllStages | `device` | 2: `crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier, 2 sites)` | `app`: quad shuffles in kernels on devices without quad operations there |
|
|
| `SimdgroupMatrix` | Simdgroup matrix operations | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/simd/matrix.rs (not_implemented)` | `rare`: simdgroup matrix kernels |
|
|
| `SimdgroupMatrix16x16x16` | A 16x16x16 simdgroup matrix product (`air.simdgroup_matrix_16x16x16_[widening_]multiply_accumulate`), in any stage | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/simd/matrix.rs (select)` | `rare`: 16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later) |
|
|
| `ArgumentBufferPointers` | Argument buffers holding buffer pointers (dynamic roots) | devices without buffer device addresses (`addressed_needs`) | `device` | 1: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)` | `app`: argument buffers holding buffer pointers |
|
|
| `ArgumentBufferTextures` | Argument buffers holding textures or samplers (handle domain) | devices 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) | `ours` | 20: `crates/metal2vulkan-runtime/src/families/features.rs (tier2)`, `crates/metal2vulkan-runtime/src/pipeline/objects.rs (create_set_layout)` (+11) | `app`: argument buffers holding textures and samplers (bindless) |
|
|
| `ArgumentBufferObjects` | Argument-buffer members that are pipeline states, ICBs, function tables, or acceleration structures | every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/lower/access/encode.rs (select_command, 3 sites)`, `crates/metal2vulkan/src/memory/provenance.rs (access)` (+1) | `rare`: pipeline states and ICBs in argument buffers |
|
|
| `DereferenceLoadedPointer` | Dereferencing a pointer loaded from memory or made from an integer | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | `device` | 4: `crates/metal2vulkan/src/lower/access/dynamic.rs (plan_misses)`, `crates/metal2vulkan/src/lower/access/local.rs (access_ptr)` (+2) | `app`: pointers loaded from argument buffers |
|
|
| `PointerToInteger` | Storing a pointer or converting it to an integer | - | `-` | via a helper: 1: `crates/metal2vulkan/src/lower/access/dynamic.rs (require_addresses)` | `rare`: pointer to integer casts |
|
|
| `PointerCompare` | Comparing pointers with different roots | - | `-` | via a helper: 1: `crates/metal2vulkan/src/lower/access/copy.rs (addressed)` | `rare`: comparing pointers of different roots |
|
|
| `HandleAsPointer` | A resource handle used as a byte pointer, or conflicting handle provenance | every device (no Vulkan mechanism); every device (not implemented) | `ours` | 6: `crates/metal2vulkan/src/lower/access/handle.rs (domain_kind)`, `crates/metal2vulkan/src/lower/access/handle.rs (element, 2 sites)` (+3) | `rare`: resource handles used as byte pointers |
|
|
| `ConstantGlobalEscaping` | A constant global whose address escapes | every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/memory/plan.rs (blob_nodes)`, `crates/metal2vulkan/src/memory/plan.rs (serialize)` | `rare`: a constant global whose address escapes |
|
|
| `ThreadgroupMemorySize` | Threadgroup memory above the device limit | devices short of a device limit the site names; devices without VkLimit::MaxComputeSharedMemorySize; every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan/src/bind/plan/compute.rs (plan)`, `crates/metal2vulkan/src/memory/arena.rs (check)` (+1) | `rare`: threadgroup memory past a smaller device's limit |
|
|
| `CoherentMemory` | `coherent(device)` accesses (Vulkan memory model) | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/lower/sync/memory_model.rs (check)` | `rare`: coherent(device) accesses |
|
|
| `Int64Atomics` | 64-bit atomics | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`) | `device` | 2: `crates/metal2vulkan/src/lower/access/atomic.rs (select, 2 sites)` | `rare`: 64-bit atomics |
|
|
| `ImageAtomics` | Image atomics beyond 32-bit integers | devices without a capability the site computes (`gaps`); every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan-runtime/src/families/formats.rs (atomic_gap, 2 sites)`, `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format)` | `rare`: texture atomics beyond 32-bit integers |
|
|
| `DescriptorCount` | Too many descriptors of one kind in a stage or pipeline | devices short of a device limit the site names; devices without VkLimit::MaxUniformBufferRange | `device` | 3: `crates/metal2vulkan/src/lower/access/mod.rs (accept_placement)`, `crates/metal2vulkan/src/lower/select.rs (finish)` (+1) | `app`: many textures or buffers in one stage on a smaller device |
|
|
| `StageSize` | A stage module heavier than the translator hands the device's driver | devices whose plan writes the stage past the stage bound; drivers with a defect | `device` | 2: `crates/metal2vulkan/src/pipeline/compile/stage_bound.rs (refused, 2 sites)` | `rare`: a kernel heavier than the heaviest stage measured to compile within host-sized memory, as the device's plan writes it (from_queries), or too large for a driver measured to corrupt one past its bound or to outgrow host memory below it |
|
|
| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | `device` | 8: `crates/metal2vulkan-runtime/src/function_table.rs (past_storage_buffer_range)`, `crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites)` (+4) | `app`: a buffer window past a device's descriptor range |
|
|
| `Int64Arithmetic` | 64-bit integer arithmetic | devices without VkFeature::ShaderInt64 | `device` | 2: `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`, `crates/metal2vulkan/src/lower/select.rs (selector_form)` | `rare`: 64-bit integers on a device without shaderInt64 |
|
|
| `Float64Arithmetic` | 64-bit float arithmetic | devices without VkFeature::ShaderFloat64 | `device` | 2: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`, `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)` | `rare`: doubles (MSL has none outside Apple's own code) |
|
|
| `Format` | A pixel or vertex format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`routes`); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) | `ours` | 129: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view, 2 sites)`, `crates/metal2vulkan-runtime/src/blit_fill.rs (fill)` (+84) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
|
|
| `DivergentImplicitLod` | Divergent implicit-LOD sampling or LOD query through a multi-candidate handle | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/sampler/select.rs (tangled)` | `app`: implicit-LOD sampling through a dynamically chosen texture |
|
|
| `ImplicitLodOutsideFragment` | Implicit-LOD sampling outside fragment | every device (not implemented) | `ours` | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level)`, `crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured)` (+1) | `rare`: implicit-LOD sampling outside fragment functions |
|
|
| `MinLodClamp` | `min_lod_clamp` without `shaderResourceMinLod` | devices without VkFeature::ShaderResourceMinLod; every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/sampler/select.rs (min_lod)`, `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)` | `rare`: min_lod_clamp on a device without shaderResourceMinLod |
|
|
| `TexelOffset` | A texel offset the device cannot apply | devices short of a device limit the site names; every device (no Vulkan mechanism) | `device` | 2: `crates/metal2vulkan/src/lower/sampler/select.rs (in_device_range)`, `crates/metal2vulkan/src/lower/sampler/select.rs (offset)` | `app`: texel offsets a device cannot apply |
|
|
| `GatherExtended` | Gather with non-constant offsets or components | - | `-` | via a helper: 1: `crates/metal2vulkan/src/lower/sampler/select.rs (dynamic_offset)` | `rare`: gathers with dynamic offsets or components |
|
|
| `StorageImageMultisample` | Multisampled storage images | - | `-` | via a helper: 1: `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot)` | `rare`: writable multisampled textures |
|
|
| `StorageTextureInVertexStage` | Storage images in the vertex stage | - | `-` | via a helper: 1: `crates/metal2vulkan/src/lower/texture/slot.rs (stage_stores)` | `rare`: writable textures in vertex functions |
|
|
| `CubeArray` | Cube arrays | devices without VkFeature::ImageCubeArray | `device` | 2: `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`, `crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap)` | `rare`: cube arrays on a device without imageCubeArray |
|
|
| `SamplerAnisotropy` | Sampler anisotropy an argument buffer lists, on a device without `samplerAnisotropy` | devices without VkFeature::SamplerAnisotropy | `device` | 1: `crates/metal2vulkan/src/metal/sampler.rs (check_argument_sampler)` | `app`: anisotropic samplers an argument buffer lists, on a device without samplerAnisotropy |
|
|
| `SamplerBorderColor` | Sampler border colors Vulkan cannot express | devices without a capability the site computes (`missing`); devices without a capability the site computes (`need`); devices without a capability the site computes (`vec![need]`); every device (not implemented) | `ours` | 4: `crates/metal2vulkan/src/metal/sampler.rs (border_read, 4 sites)` | `app`: border colors a device cannot express |
|
|
| `SamplerLodBias` | Sampler LOD bias | devices short of a Vulkan feature the site names; devices without VkLimit::MaxSamplerLodBias; every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (constexpr_desc, 3 sites)` | `app`: constexpr samplers with an LOD bias |
|
|
| `SamplerCompare` | Sampler compare functions outside what Vulkan allows for the image | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/metal/sampler.rs (check_sampler)` | `app`: compare samplers a device cannot apply to the image |
|
|
| `PixelSamplerCompare` | A constexpr sampler with pixel coordinates and a compare function, which Apple's compiler rejects ("invalid values combination in sampler... | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered)` | `none`: Apple's compiler rejects it |
|
|
| `TexelBuffer` | Texture buffers beyond the device's texel-buffer limits | devices without a format's usage; every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites)`, `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)` | `app`: texture buffers past a device's texel-buffer limits |
|
|
| `RasterOrderGroups` | Raster order groups without fragment shader interlock | devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::FragmentShaderSampleInterlock; devices without a capability the site computes (`alternatives`); every device (not implemented) | `ours` | 4: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`, `crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites)` (+1) | `rare`: raster order groups |
|
|
| `FramebufferFetch` | Framebuffer fetch without an ordered form on the device (rasterization-order attachment access, or the pixel interlock's storage form where the... | devices short of a Vulkan property the site names; devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; devices without a capability the site computes; 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) | `ours` | 24: `crates/metal2vulkan-runtime/src/render.rs (next_instance)`, `crates/metal2vulkan-runtime/src/sample_planes.rs (lacks)` (+19) | `system`: programmable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots) |
|
|
| `PrimitiveId` | `[[primitive_id]]` in a fragment function | devices without a capability the site computes; every device (not implemented) | `ours` | 3: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (finish)` (+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 (indices_feature)` | `rare`: a private primitive type drawn in the pulled list form (a vertex function that writes memory or the primitive_id varying, a vertex start past 2^31) on a device without device addresses |
|
|
| `VertexAmplification` | Vertex amplification | devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; devices without a capability the site computes (`needs`); every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/bind/graphics.rs (multiview_instances)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store)` (+3) | `rare`: vertex amplification |
|
|
| `LayeredRendering` | Layered rendering (`render_target_array_index`, `viewport_array_index`) | devices without VkFeature::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) | `ours` | 7: `crates/metal2vulkan-runtime/src/render_pass.rs (target)`, `crates/metal2vulkan-runtime/src/render_state.rs (needs_viewports)` (+4) | `rare`: layered rendering on a device without its features |
|
|
| `ClipDistance` | Clip or cull distances | devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances | `device` | 2: `crates/metal2vulkan/src/lower/mesh/mod.rs (select, 2 sites)` | `rare`: clip distances on a device without them |
|
|
| `DualSourceBlending` | Dual-source blending | devices without VkFeature::DualSrcBlend; devices without VkLimit::MaxFragmentDualSrcAttachments | `device` | 5: `crates/metal2vulkan-runtime/src/families/formats.rs (answers)`, `crates/metal2vulkan/src/metal/state.rs (blend_factor)` (+2) | `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) | `ours` | 5: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (input_builtin)` (+3) | `rare`: barycentric coordinates |
|
|
| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | `ours` | 6: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan/src/bind/graphics.rs (shadow_stencil_words)` (+3) | `rare`: stencil from the shader |
|
|
| `SampleRateShading` | Per-sample shading | devices without VkFeature::SampleRateShading; devices without a capability the site computes (`needs`); every device (not implemented) | `ours` | 3: `crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations, 3 sites)` | `rare`: per-sample shading |
|
|
| `PullModelInterpolation` | Metal's pull-model interpolation (`interpolant` fragment inputs and their `interpolate_at_center`, `_centroid`, `_sample` and `_offset` functions)... | devices without VkProperty::InterpolateAtOffsetCentered; devices without VkProperty::InterpolateAtOffsetFromSevenSixteenths; devices without a capability the site computes (`lacks`); drivers with workaround InterpolationNeedsTheWholeQuad; every device (not implemented) | `ours` | 6: `crates/metal2vulkan/src/lower/fragment/interpolate.rs (select, 2 sites)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant, 2 sites)` (+1) | `rare`: interpolant inputs read at the centroid, a sample or an offset |
|
|
| `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 | `device` | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)` | `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) | `ours` | 3: `crates/metal2vulkan/src/lower/fragment/coverage.rs (finish)`, `crates/metal2vulkan/src/lower/simd/mod.rs (select_param)` (+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 | `device` | 4: `crates/metal2vulkan/src/pipeline/compile/color_group.rs (refusal)`, `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state)` (+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) | `device` | 3: `crates/metal2vulkan/src/pipeline/link/varyings.rs (mesh_fragment)`, `crates/metal2vulkan/src/pipeline/link/varyings.rs (varyings, 2 sites)` | `none`: a Metal link error |
|
|
| `KernelStageIn` | Kernel `[[stage_in]]` | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-runtime/src/indirect_execute.rs (dispatch)`, `crates/metal2vulkan/src/lower/stage_io/stage_in.rs (select)` | `rare`: kernel stage-in combinations Metal leaves unestablished |
|
|
| `VertexStepRate` | A vertex buffer layout stepped per instance at a rate above 1, on a profile that fetches every attribute in fixed function (the identity domains,... | devices without a capability the site computes (`needs`) | `device` | 1: `crates/metal2vulkan/src/metal/vertex.rs (divided)` | `app`: instanced vertex layouts stepped at a rate above 1 |
|
|
| `VertexInputLayout` | A vertex attribute whose layout fixed-function input cannot fetch, on a profile that fetches every attribute in fixed function (the identity... | devices without a capability the site computes (`limit`); every device (not implemented) | `ours` | 4: `crates/metal2vulkan/src/pipeline/link/vertex.rs (resolve, 4 sites)` | `rare`: vertex offsets or strides off their format's alignment, or past a device's limits |
|
|
| `Tessellation` | Tessellation | devices without VkLimit::MaxStorageBufferRange; devices without VkLimit::MaxTessellationGenerationLevel; every device (not implemented) | `ours` | 13: `crates/metal2vulkan-air/src/canon/mod.rs (post_check, 2 sites)`, `crates/metal2vulkan/src/bind/graphics.rs (tessellation_dispatch)` (+9) | `rare`: tessellation |
|
|
| `MeshShading` | | devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (`missing`); every device (not implemented) | `ours` | 7: `crates/metal2vulkan/src/bind/graphics.rs (mesh_limit)`, `crates/metal2vulkan/src/bind/graphics.rs (plan)` (+4) | `rare`: mesh pipelines |
|
|
| `TileShading` | | devices without VkLimit::MaxStorageBufferRange; devices without a format's usage; every device (not implemented) | `ours` | 5: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (scratch)`, `crates/metal2vulkan/src/bind/plan/compute.rs (tile_memory)` (+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) | `ours` | 10: `crates/metal2vulkan/src/lower/access/imageblock.rs (imageblocks)`, `crates/metal2vulkan/src/lower/access/mod.rs (select_param)` (+7) | `rare`: imageblocks (Apple GPU families) |
|
|
| `RayTracing` | | devices without a capability the site computes (`missing`); every device (no Vulkan mechanism); every device (not implemented) | `ours` | 12: `crates/metal2vulkan/src/bind/acceleration.rs (instance_record, 2 sites)`, `crates/metal2vulkan/src/lower/raytracing/mod.rs (instance_count)` (+5) | `rare`: ray tracing (out of scope by ruling) |
|
|
| `Tensors` | | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs (refuse)`, `crates/metal2vulkan/src/lower/select.rs (route_air)` | `rare`: shader tensors |
|
|
| `RasterizationRateMap` | | devices without VkFeature::MultiViewport; devices without VkFeature::ShaderDrawParameters; devices without VkFeature::ShaderOutputViewportIndex; devices without VkLimit::MaxGeometryTotalOutputComponents; devices without a capability the site computes; devices without a capability the site computes (`vec![Capability::Feature(lacks)]`); every device (not implemented) | `ours` | 10: `crates/metal2vulkan/src/lower/stage_io/plan.rs (region_copy, 3 sites)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (region_viewport, 2 sites)` (+3) | `rare`: rasterization rate maps |
|
|
| `GpuEncodedIndirectCommands` | | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism); every device (not implemented) | `ours` | 21: `crates/metal2vulkan/src/bind/replay.rs (preprocess)`, `crates/metal2vulkan/src/bind/replay.rs (replay_preprocess_module)` (+13) | `rare`: indirect command buffers encoded by a kernel |
|
|
| `VulkanVersion` | The device's Vulkan version is below the 1.2 floor | devices without ApiVersion::V1_2 | `device` | 2: `crates/metal2vulkan/src/ash_interop/query.rs (query)`, `crates/metal2vulkan/src/device/derive.rs (derived)` | `none`: a device below Vulkan 1.2 |
|
|
| `IdentityDomains` | The identity pointer and handle domains (`PointerDomain::Identity`, `HandleDomain::Identity`) | devices without VkLimit::MaxPushConstantsSize; devices without a capability the site computes (`all`); every device (not implemented) | `ours` | 7: `crates/metal2vulkan/src/device/derive.rs (identity_domains)`, `crates/metal2vulkan/src/lower/access/mod.rs (place_slots)` (+5) | `none`: the identity domains, which the new runtime alone takes and which lower only kernels over buffer slots, textures in slots or argument buffers, and runtime samplers, so far |
|
|
| `Constant` | A constants-block record LLVM defines that the typed model has no form for (a block address, a `select` and the other constant expressions of... | - | `-` | via a helper: 3: `crates/metal2vulkan-air/src/bitcode/constants.rs (record, 2 sites)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: LLVM constant forms AIR does not emit |
|
|
| `Attribute` | An LLVM attribute kind that changes the calling ABI and that AIR does not use (`inalloca`, `preallocated`, `byref`, `nest`, the `swift*` kinds) | - | `-` | via a helper: 2: `crates/metal2vulkan-air/src/bitcode/attrs.rs (known)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: LLVM ABI attributes AIR does not use |
|
|
| `BitcodeRecord` | A bitcode record LLVM defines in `block` that the typed model does not cover and that has no more specific variant (legacy spellings predating... | - | `-` | via a helper: 8: `crates/metal2vulkan-air/src/bitcode/attrs.rs (decode_lists)`, `crates/metal2vulkan-air/src/bitcode/function.rs (symtab)` (+5) | `none`: bitcode records AIR does not emit |
|
|
| `SyncScope` | An atomic access or fence in a synchronization scope other than LLVM's built-in `singlethread` and system scopes | - | `-` | via a helper: 2: `crates/metal2vulkan-air/src/bitcode/function.rs (atomic)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `none`: synchronization scopes AIR does not use |
|
|
| `SubgroupOperations` | Simdgroup operations of a class the stage's subgroups do not support (the stage is not in `subgroupSupportedStages`, or an operation class is... | devices without VkFeature::ShaderQuadControl; devices without VkFeature::ShaderSubgroupExtendedTypes; devices without VkProperty::SubgroupStage | `device` | 4: `crates/metal2vulkan-runtime/src/families/features.rs (simd)`, `crates/metal2vulkan/src/lower/simd/mod.rs (finish)` (+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) | `ours` | 1: `crates/metal2vulkan-air/src/canon/mod.rs (post_check)` | `rare`: variadic or byval calls the inliner cannot take |
|
|
| `WideSwitchLiteral` | A switch case literal wider than 32 bits | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/structurize/emit.rs (check_tree)` | `rare`: 64-bit switch literals |
|
|
| `Lowering` | An instruction, intrinsic, or interface element of a lowering family whose lowering has not landed yet (each family narrows its refusals as it lands) | devices short of a device limit the site names; devices without VkFeature::ShaderDemoteToHelperInvocation; every device (not implemented) | `ours` | 37: `crates/metal2vulkan/src/bind/plan/resources.rs (level_views)`, `crates/metal2vulkan/src/lower/access/handle.rs (domain_kind)` (+34) | `system`: the catch-all of lowering families not landed: any shader can meet one |
|
|
| `SamplerAddressMode` | A sampler address mode the device lacks (`MirrorClampToEdge`) | devices without VkFeature::SamplerMirrorClampToEdge; every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/sampler/constexpr.rs`, `crates/metal2vulkan/src/metal/sampler.rs (check_sampler)` | `app`: mirror-clamp-to-edge on a device without it |
|
|
| `AlphaToOne` | `alphaToOneEnabled` on a device without Vulkan's `alphaToOne` feature, the exact counterpart... | devices without VkFeature::AlphaToOne | `device` | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state)` | `rare`: alphaToOneEnabled on a device without alphaToOne |
|
|
| `StageStoresAndAtomics` | Buffer or image stores or atomics in a vertex or fragment function without the stage's store feature (`vertexPipelineStoresAndAtomics`,... | devices without VkFeature::FragmentStoresAndAtomics | `device` | 1: `crates/metal2vulkan/src/lower/access/tile_memory.rs (written)` | `app`: stores or atomics in vertex or fragment functions on a device without the feature |
|
|
| `FunctionConstantArgument` | An observed read of a pointer entry argument that a function-constant predicate removes, other than an absent buffer (which reads as null) or an... | devices short of a Vulkan feature the site names; every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/canon/interface.rs (absent_values)`, `crates/metal2vulkan/src/lower/access/absent.rs (require)` | `rare`: a function-constant-removed argument read |
|
|
| `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/bind/heap.rs (new)`, `crates/metal2vulkan/src/bind/plan/resources.rs (bicubic_texels)` (+3) | `system`: bicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused |
|
|
| `GroupCount` | A dispatch whose threadgroup count on `axis` exceeds `maxComputeWorkGroupCount` by more than the binder splits into regions (`None` | every device (no Vulkan mechanism) | `device` | 7: `crates/metal2vulkan/src/bind/dispatch.rs (2 sites)`, `crates/metal2vulkan/src/bind/dispatch.rs (instantiate)` (+4) | `rare`: more threadgroups than a device dispatches, past the binder's split |
|
|
| `IntersectionFunctionTable` | A ray intersection through intersection functions | every device (no Vulkan mechanism); every device (not implemented) | `ours` | 9: `crates/metal2vulkan/src/bind/acceleration.rs (geometry_table_offset, 3 sites)`, `crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 2 sites)` (+4) | `rare`: ray tracing (out of scope by ruling) |
|
|
| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | `device` | 2: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`, `crates/metal2vulkan/src/pipeline/link/graphics.rs (uniform_blend)` | `rare`: per-attachment blending on a device without independentBlend |
|
|
| `RasterSampleCount` | A `rasterSampleCount` outside the device's framebuffer sample counts for the pipeline's attachments (`framebuffer*SampleCounts`), and, for a color... | devices short of a Vulkan property the site names; devices without a capability the site computes | `device` | 2: `crates/metal2vulkan-runtime/src/families/limits.rs (sample_count)`, `crates/metal2vulkan/src/pipeline/graphics.rs (sample_count_properties)` | `app`: a sample count a device lacks for the attachments |
|
|
| `TriangleFillLines` | The render encoder's `MTLTriangleFillModeLines` (`polygonMode` `LINE`) on a device without `fillModeNonSolid` | - | `-` | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs (polygon_mode)` | `app`: wireframe on a device without fillModeNonSolid |
|
|
| `TriangleFillPoints` | The render encoder's `TriangleFillMode::Points` (`polygonMode` `POINT`) on a device without `fillModeNonSolid`, or on a portability-subset device... | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/metal/state.rs (polygon_mode)` | `system`: Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK) |
|
|
| `DepthClipClamp` | The render encoder's `MTLDepthClipModeClamp` (`depthClampEnable`) on a device without `depthClamp` | - | `-` | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs (depth_clamp_enable)` | `app`: depth clamp on a device without depthClamp |
|
|
| `DepthBiasClamp` | The render encoder's depth bias clamp, nonzero with a nonzero bias, on a device without `depthBiasClamp` | - | `-` | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs (depth_bias)` | `app`: depth bias clamp on a device without depthBiasClamp |
|
|
| `ConstantAlphaBlendFactor` | `CONSTANT_ALPHA` or `ONE_MINUS_CONSTANT_ALPHA` (Metal's `BlendAlpha` factors) as a color blend factor on a portability-subset device without... | devices without VkFeature::ConstantAlphaColorBlendFactors | `device` | 1: `crates/metal2vulkan/src/metal/state.rs (check_constant_alpha)` | `app`: blend-alpha factors on a portability-subset device without them |
|
|
| `SparseTexture` | A sparse texture (`MTLTexture.isSparse`) bound at `slot`, where a function observes the residency of its accesses (`sparse_color::resident()`) and... | - | `-` | via a helper: 2: `crates/metal2vulkan/src/bind/plan/slots.rs (check_sparse_textures, 2 sites)` | `rare`: sparse residency reads |
|
|
| `TextureSize` | A texture whose extent, array layers, or level count is past what the device takes for its format, type, and usage (`Capability::Limit` names the... | devices short of a device limit the site names | `device` | 1: `crates/metal2vulkan-runtime/src/image_plan.rs (check_image_limits)` | `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) | `device` | 3: `crates/metal2vulkan-runtime/src/image_plan.rs (check_image_limits)`, `crates/metal2vulkan-runtime/src/image_plan.rs (plan_held, 2 sites)` | `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) | `ours` | 9: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`, `crates/metal2vulkan-runtime/src/texture.rs (checked_view)` (+6) | `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) | `ours` | 8: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`, `crates/metal2vulkan-runtime/src/texture.rs (may_view)` (+6) | `app`: texture swizzles whose Metal behaviour is unmeasured |
|
|
| `MipmapGeneration` | `generateMipmapsForTexture:` that cannot run on the device | devices without a format's usage; every device (not implemented) | `ours` | 7: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs (new)` (+3) | `app`: generateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run |
|
|
| `HostMemory` | A buffer over the caller's host memory without a copy (`newBufferWithBytesNoCopy:`) | devices without VkExtension::ExtExternalMemoryHost; drivers with defect UnpinnablePagesBreakHostMemory; every device (no Vulkan mechanism); every device (not implemented) | `ours` | 8: `crates/metal2vulkan-runtime/src/host_memory.rs (new, 3 sites)`, `crates/metal2vulkan-runtime/src/host_memory.rs (no_pointer_refusal)` (+4) | `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) | `device` | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (gpu_times)` | `rare`: GPU times on a queue without timestamps |
|
|
| `CountingVisibility` | A `Counting` visibility result (`MTLVisibilityResultModeCounting`) on a device without `occlusionQueryPrecise` | devices without VkFeature::OcclusionQueryPrecise | `device` | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `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) | `device` | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (reinterpretation_refused)` | `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: 6: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (by_draws)`, `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (plan)` (+3) | `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 | `device` | 2: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan/src/pipeline/link/graphics.rs (split_pixel_fragments)` | `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 | `device` | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs (split_pixel_fragments)` | `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 (function_storage)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/sparse/texture.rs (sparse_refusal, 2 sites)` | `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) | `device` | 1: `crates/metal2vulkan-runtime/src/device/create.rs (timeline_difference)` | `none`: a device below the runtime's floor |
|
|
| `Reflection` | Reflection of an argument whose answer Metal's has not been measured for (`reflection`) | every device (not implemented) | `ours` | 10: `crates/metal2vulkan-runtime/src/pipeline/texture_access.rs (at)`, `crates/metal2vulkan/src/bind/argument_buffer.rs (unmeasured)` (+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) | `device` | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs (tiling_refusal)` | `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 | `device` | 1: `crates/metal2vulkan-runtime/src/render_state.rs (depth_ranges_refused)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`, `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs (refused)` | `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 | `device` | 1: `crates/metal2vulkan-runtime/src/render_pass.rs (framebuffer_fits)` | `rare`: a render area past a device's framebuffer limits |
|
|
| `IndirectRenderState` | A render state a function sets on an indirect render command (`render_command::set_cull_mode`, `set_front_facing_winding`,... | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/access/encode.rs (select_command)` | `rare`: render state set by a kernel on an indirect command |
|
|
| `GlobalBuiltinInFragment` | A fragment function's read of a Metal 3.1 program-scope built-in variable that Metal does not lower there | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/select.rs (route_air)` | `rare`: Metal 3.1 global built-ins in fragment functions |
|
|
| `PrivateRenderState` | A private fixed-function property of Metal's pipeline descriptor (Apple SPI, OpenGL on Metal's) set to a value whose effect the translation has... | devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::LogicOp; devices without VkFeature::RasterizationOrderColorAttachmentAccess; every device (not implemented) | `ours` | 7: `crates/metal2vulkan/src/bind/heap.rs (array)`, `crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding)` (+5) | `none`: Apple-private pipeline fields of OpenGL on Metal (no public header) |
|
|
| `ExtendedRangeBlend` | A blend the function computes in the shader, into an extended-range attachment (`BGRA10_XR`, `BGR10_XR`, `RGB10A8_2P_XR10` and their `_sRGB`... | every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused)`, `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output)` (+1) | `system`: an extended-range (XR10) attachment blended from an output other than four half or float lanes; a 16-bit float attachment's storage-form blend of a second-source factor or a one-color-channel mask under fast math; the consumer's guests blend RGB10A8_2P_XR10 attachments |
|
|
| `ProgramScopeBinding` | A program-scope buffer binding of MSL 3.2 (macOS 15 and later), `constant T* constant p [[buffer(n)]];` in Apple's `!air.global_bindings` list,... | - | `-` | via a helper: 2: `crates/metal2vulkan-air/src/abi/module.rs (decode)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `app`: MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
|
|
| `GenericPointer` | A generic pointer (MSL 4.1's `addrspace(8)`) that canonicalization cannot make a pointer of one address space, by how it comes to hold a space... | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/canon/generic.rs (refuse)`, `crates/metal2vulkan-air/src/canon/generic.rs (refused)` | `system`: MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
|
|
| `SeqCstFence` | A sequentially consistent fence (`seq_cst` `atomic_thread_fence`, an LLVM `fence seq_cst`, or a `seq_cst` barrier ordering device memory), whose... | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)` | `rare`: a seq_cst fence in a vertex or fragment stage without its stores and atomics |
|
|
| `PostDepthCoverage` | The coverage after the depth and stencil tests (`[[sample_mask, post_depth_coverage]]`), read through `VK_EXT_post_depth_coverage` | devices short of a Vulkan extension the site names; devices without VkExtension::ExtPostDepthCoverage | `device` | 2: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)` | `rare`: the coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage |
|
|
| `WideLines` | Lines at a width other than 1 (Apple's `setLineWidth:`), drawn by the device's own wide lines (`wideLines`) or as bands of triangles through... | devices without VkFeature::TessellationShader; devices without VkLimit::MaxTessellationEvaluationOutputComponents; every device (not implemented) | `ours` | 3: `crates/metal2vulkan/src/pipeline/link/band.rs (plan, 3 sites)` | `none`: a line under the Apple-private setLineWidth: at a width other than 1 drawn as the band, whose pipeline form the translator does not build (a selected slice or viewport, barycentric weights, multiview, synthesized geometry, too many stage outputs) |
|
|
|
|
## 2. Runtime gaps (`Error::NotImplemented(RuntimeGap)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `Textures` | Textures and texture buffers | every device (runtime piece not built) | `ours` | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs (check_depth_view)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (view_usage)` (+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) | `ours` | 1: `crates/metal2vulkan-runtime/src/binding.rs (descriptor)` | `rare`: the resource-ID heap's remaining forms |
|
|
| `SparseHeaps` | Sparse heaps and their textures | every device (runtime piece not built) | `ours` | 2: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (first_slice)`, `crates/metal2vulkan-runtime/src/texture.rs (make_aliasable)` | `rare`: sparse heaps |
|
|
| `SparseTileMaps` | What the runtime's emulation of sparse textures does not build yet | every device (runtime piece not built) | `ours` | 4: `crates/metal2vulkan-runtime/src/binding.rs (slot_tile_map)`, `crates/metal2vulkan-runtime/src/sparse/texture.rs (sparse_refusal)` (+1) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/heap.rs (heap_size)` | `rare`: a heap past maxBufferSize |
|
|
| `HeapTextureAlignment` | A heap texture an image of binds into the heap's own memory whose image needs an alignment past that memory's base alignment (256 KiB) | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs (check_heap_base)` | `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) | `ours` | 3: `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_plan)`, `crates/metal2vulkan-runtime/src/texture/heap.rs (memory_refusal)` (+1) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/function_table.rs (past_limit)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (new_indirect_command_buffer_now)` | `none`: an ICB past one buffer |
|
|
| `IndirectRenderCommands` | What indirect command buffers lack of their render commands, naming the rule that refused the call, the commit or the host step ([`IndirectRule`]) | every device (runtime piece not built) | `ours` | 16: `crates/metal2vulkan-runtime/src/compute.rs (execute_indirect_range)`, `crates/metal2vulkan-runtime/src/compute.rs (execute_range)` (+9) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (set_imageblock_size)` | `none`: an imageblock side past 65535 |
|
|
| `CommandReplay` | The device replay of indirect command buffers; and an executed compute command of a buffer that inherits the encoder's buffers whose kernel... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/binding.rs (bind_into, 2 sites)`, `crates/metal2vulkan-runtime/src/indirect_execute.rs (tables)` | `rare`: the device replay of indirect command buffers |
|
|
| `RenderAttachments` | Render attachments and their binding forms | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/binding.rs (unexpected)` | `rare`: render attachment forms not built |
|
|
| `AccelerationStructures` | Acceleration structures | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/binding.rs (unexpected)` | `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 | `ours` | 1: `crates/metal2vulkan-runtime/src/enables.rs (of)` | `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 | `ours` | 1: `crates/metal2vulkan-runtime/src/enables.rs (of)` | `none`: device creation with an extension under an unknown name |
|
|
| `Render` | Render pipelines, passes and draws | every device (runtime piece not built) | `ours` | 27: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (check_copies)`, `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (stand_in_as, 2 sites)` (+19) | `system`: render pass, resolve and attachment forms not built (20 sites: see the appendix) |
|
|
| `TexelsPastBufferLength` | A texture over a plane of a surface with planes whose rows or GPU texels run past the buffer standing for the surface, which Metal makes, of a... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)` (+1) | `rare`: a YCbCr, two-plane, 4:2:2, depth, BC or rotated texture over an IOSurface plane past its surface |
|
|
| `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) | `ours` | 6: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_texels_rows_copy)`, `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)` (+4) | `rare`: an IOSurface plane whose rows overlap |
|
|
| `MemorylessSurfacePlane` | 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) | `ours` | 2: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)` | `rare`: a memoryless texture over an IOSurface plane |
|
|
| `SurfacePlaneShape` | A texture over a plane of an IOSurface with planes (`Buffer::new_texture_with_iosurface_plane`, the stand-in for... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` | `rare`: a texture over an IOSurface plane past one 2D image of its rows, or a BC one of 16-byte blocks off 16 |
|
|
| `IndirectCommandPastSize` | A command of an indirect command buffer at or past its size (`indirectComputeCommandAtIndex:`, `indirectRenderCommandAtIndex:`) | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_at)` | `none`: an indirect command at or past the buffer's size |
|
|
| `ExecutionRangePastBuffer` | An `MTLIndirectCommandBufferExecutionRange` whose 8 bytes run past the buffer it is read from (`execute_commands_in_buffer_indirect`, a compute... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)` | `rare`: an execution range whose 8 bytes run past its buffer |
|
|
| `ExecutionRangeOffFour` | An `MTLIndirectCommandBufferExecutionRange` read at an offset that is not a multiple of 4 bytes (`execute_commands_in_buffer_indirect`, a compute... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)` | `rare`: an execution range at an offset off 4 bytes |
|
|
| `SamplePositionsAtBegin` | A render pass whose custom sample positions Vulkan takes only through what the runtime does not build | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (stencil_scratch)`, `crates/metal2vulkan-runtime/src/render_pass.rs (positioned_stand_in)` (+1) | `rare`: custom sample positions Vulkan takes only at begin |
|
|
| `InterpolateAtSampleWithPositions` | A draw at custom sample positions (`setSamplePositions:count:`) through a pipeline whose fragment function reads an `interpolant` at a sample it... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/render.rs (settle_draw)` | `rare`: interpolate_at_sample in a pass at custom sample positions |
|
|
| `ExportableMemory` | A buffer whose memory another API imports (`Device::new_exportable_buffer`, a runtime extension | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (gap)` | `none`: a runtime extension's exportable buffer on a device without the opaque-fd export |
|
|
| `DmaBufExport` | A buffer whose memory another API imports as a dma-buf (`MemoryExport::DmaBuf`, a runtime extension | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (gap)` | `none`: a runtime extension's dma-buf-exportable buffer on a device without the dma-buf export |
|
|
| `ExportableSemaphore` | A shared event whose timeline semaphore another API imports (`Device::new_exportable_shared_event`, a runtime extension | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/exported_semaphore.rs (new_exportable_shared_event_now)` | `none`: a runtime extension's exportable shared event on a device without the opaque-fd export |
|
|
| `SyncFileExport` | A command buffer's completion as a sync file (`CommandBuffer::add_completion_sync_file`, a runtime extension | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)` | `none`: a runtime extension's completion sync file on a device without the sync-file export |
|
|
| `SharedEventAcrossDevices` | A shared event handle opened on a device other than its event's | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/event.rs (new_shared_event_with_handle_now)` | `rare`: a shared event opened on another device |
|
|
| `VkImagePlaneCopy` | A copy, fill or mipmap generation of a texture over a plane of the caller's multi-planar `VkImage` (`Device::new_texture_with_vk_image_plane`), a... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/texture.rs (check_plane_copied)`, `crates/metal2vulkan-runtime/src/texture/view_shadow.rs (view_shadow_plan)` (+1) | `none`: a runtime extension's texture over a plane of the caller's VkImage copied, filled, mipmapped or rendered to |
|
|
| `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) | `ours` | 7: `crates/metal2vulkan-runtime/src/render/draw_shape.rs (settings)`, `crates/metal2vulkan-runtime/src/render_state.rs` (+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) | `ours` | 5: `crates/metal2vulkan-runtime/src/render_state.rs (collapses, 2 sites)`, `crates/metal2vulkan-runtime/src/render_state.rs (compensation)` (+2) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/depth_stencil.rs (failing_draw)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (hidden)`, `crates/metal2vulkan-runtime/src/render.rs (hidden_depth_stencil)` | `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) | `ours` | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs (new)`, `crates/metal2vulkan-runtime/src/render.rs (draw_indexed_primitives_indirect)` (+2) | `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) | `ours` | 7: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs (draws_run)`, `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)` (+3) | `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) | `ours` | 3: `crates/metal2vulkan-runtime/src/render/draw_shape/layout_view.rs`, `crates/metal2vulkan-runtime/src/render_pass.rs` (+1) | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `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) | `ours` | 3: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident, 2 sites)` | `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) | `ours` | family audit only: 3: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan-runtime/src/families/limits.rs (state)` (+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) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/limits.rs (state)` | `app`: GPU counters and timestamps by sample buffer (missing API) |
|
|
| `ResidencySets` | Residency sets (`MTLResidencySet`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan-runtime/src/families/limits.rs (state)` | `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) | `ours` | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs (state, 2 sites)` | `rare`: sparse texture access counters |
|
|
| `IoCommandQueues` | Fast resource loading (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan-runtime/src/families/limits.rs (state)` | `rare`: fast resource loading (missing API) |
|
|
| `TextureViewPools` | Texture view pools (`MTLTextureViewPool`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan-runtime/src/families/limits.rs (state)` | `rare`: texture view pools (missing API) |
|
|
| `ColorAttachmentMapping` | Color attachment mapping (`MTLLogicalToPhysicalColorAttachmentMap`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs (state)` | `rare`: color attachment mapping (missing API) |
|
|
| `LossyTextureCompression` | Lossy texture compression (`MTLTextureCompressionTypeLossy`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs (state)` | `rare`: lossy texture compression |
|
|
| `ShaderValidation` | Per-pipeline shader validation (`MTLShaderValidation`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs (state)` | `rare`: per-pipeline shader validation |
|
|
| `ShaderLogging` | Shader logging (`MTLLogState`, a shader's `os_log`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs (state)` | `rare`: shader os_log |
|
|
| `DeviceNotifications` | Device notifications (`MTLCopyAllDevicesWithObserver`) (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs (state)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (refusal)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/color_resolve.rs (plan)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs (texture_copies_of_bytes)` | `rare`: overlapping texture copies (Metal races) |
|
|
| `EmptyFillPattern` | A texture fill given no pattern bytes (`fillTexture:level:slice:region:bytes:length:` of length 0, `BlitCommandEncoder::fill_texture`) | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/blit_fill.rs (check_pattern)` | `none`: a fill of no pattern bytes through the Apple-private fillTexture:...:bytes:length: |
|
|
| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer whose GPU writes are dropped (Metal's private option bit 24) with a live texture over its... | every device (runtime piece not built) | `ours` | 11: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`, `crates/metal2vulkan-runtime/src/texture/heap.rs (dma_buf_heap_images_again)` (+4) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture.rs (host_copy)` | `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) | `ours` | 4: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`, `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_plan)` (+1) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs (check_vertex_reach)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/fetch_reach.rs (check_stage_in_reach)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/address_map.rs (resolve)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/library.rs (new_library_with_source_now)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`, `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` | `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 |
|
|
| `WideLines` | A line or triangle strip at a width other than 1 (Apple's `setLineWidth:`), the triangle strip in fill mode `Lines`, drawn as the band variant... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` | `none`: under the Apple-private setLineWidth: at a width other than 1, a line strip drawn as the band whose list of segments the runtime cannot draw (past what a u32 counts or one storage range binds, or indices an unordered draw wrote) |
|
|
| `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)` | `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) | `ours` | 8: `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`, `crates/metal2vulkan-runtime/src/rotated.rs (new, 2 sites)` (+5) | `rare`: a rotated drawable's views, 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) | `ours` | 7: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)` (+4) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture.rs (refuse_detached_texels)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs (unit)`, `crates/metal2vulkan-runtime/src/texture/surface_depth.rs (surface_depth_twin)` | `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) | `ours` | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`, `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_from_texture_to_buffer)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/color_groups.rs (gap)` | `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 |
|
|
| `MadeBeforeRecovery` | An object made before its device's recovery from the loss of its `VkDevice` that the recovery did not carry to the new one (the runtime made a new... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)`, `crates/metal2vulkan-runtime/src/device/line.rs (lost_refusal)` (+1) | `app`: any object a program made before its device recovered from a lost VkDevice that the recovery does not carry (a pooled Shared or Managed buffer in memory the device allocated, a texture, a pipeline state), used after the recovery |
|
|
| `AdoptedDeviceRecovery` | `Device::recover_for_test` on a device the consumer made (`Device::from_raw`) | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/device/line.rs (recover_for_test)` | `none`: the recovery test hook on a device the consumer made itself |
|
|
| `RemadeAfterRecoveryFailed` | A bind of a pipeline state made before its device's recovery whose making on the new `VkDevice` failed there (its shader modules, layouts or... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/pipeline/carry.rs (bound_device)`, `crates/metal2vulkan-runtime/src/pipeline/carry.rs (compiled_otherwise)` (+1) | `app`: a pipeline state made before its device recovered from a lost VkDevice whose making again on the new one failed, bound after the recovery |
|
|
|
|
## 3. Apple-only calls (`Error::AppleOnly`)
|
|
|
|
| Variant | What it blocks | Where | Basis | 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 (commit_now)`, `crates/metal2vulkan-runtime/src/command_buffer/protection.rs (refuse_protected_state_encoder)` (+1) | `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 (check)` | `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 (check)`, `crates/metal2vulkan-runtime/src/apple_only.rs (set_vertex_amplification_mode)` | `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 (refuse_client_direction)` | `none`: an IOSurface key in no public header |
|
|
|
|
## 4. Binder refusals at a device limit (`BindError`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `DescriptorRangeExceeded` | A descriptor-form slot's window exceeds the descriptor range limit (Profile F) | at the device's limit | `device` | 2: `crates/metal2vulkan/src/bind/graphics.rs (rebind_with)`, `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)` | `app`: a buffer window past a device's descriptor range |
|
|
| `TexelBufferTooLarge` | A texture buffer bound through one texel buffer view exceeds `maxTexelBufferElements` | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges)` | `rare`: a texture buffer past maxTexelBufferElements its parts do not bind |
|
|
| `HeapTooLarge` | The set-1 heap's elements (one per resident texture a handle can name, plus the null element) exceed the pipeline's heap capacity | at the device's limit | `device` | 7: `crates/metal2vulkan/src/bind/heap.rs (directory_bytes)`, `crates/metal2vulkan/src/bind/heap.rs (heap_elements)` (+3) | `rare`: more resident textures than the pipeline's heap holds (bindless at scale) |
|
|
| `TessellationFactorRange` | The tessellation factors a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`),... | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)` | `rare`: tessellation factors past one storage descriptor |
|
|
| `PatchIndexRange` | The patch indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)` | `rare`: patch indices past one storage descriptor |
|
|
| `ControlPointIndexRange` | The control-point indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)` | `rare`: control-point indices past one storage descriptor |
|
|
| `MissingStageInRegion` | The kernel reads the compute encoder's stage-in region (a `[[stage_in]]` attribute stepping by thread position, or `[[grid_origin]]` or... | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/dispatch.rs (instantiate)` | `none`: a stage-in region never set, which Metal leaves undefined |
|
|
| `UniformViewAliased` | A `device` buffer slot the pipeline reads through a uniform view (Profile F's per-stage storage-buffer fallback,... | at the device's limit | `device` | 1: `crates/metal2vulkan/src/bind/instantiate.rs (check_uniform_aliasing)` | `rare`: Profile F's uniform-view fallback aliased by a write |
|
|
| `MissingDeviceAddress` | A device-address slot received a buffer without a device address | at the device's limit | `device` | 2: `crates/metal2vulkan/src/bind/plan/slots.rs (plan_buffer)`, `crates/metal2vulkan/src/bind/replay/draws.rs (parent_entries)` | `rare`: a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
|
|
|
|
## 5. Translation caps (`Error::LimitExceeded(Limit)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `InlinedInstructions` | Instructions after inlining | every device (a deterministic cap) | `ours` | 3: `crates/metal2vulkan-air/src/canon/inline.rs (inline)`, `crates/metal2vulkan-air/src/canon/inline.rs (u32_of)` (+1) | `rare`: very large shaders after inlining |
|
|
| `OutputBlocks` | Structurizer output blocks, `4(n+e)+1024` | every device (a deterministic cap) | `ours` | 4: `crates/metal2vulkan/src/structurize/irreducible.rs (round)`, `crates/metal2vulkan/src/structurize/mod.rs (structure_loops)` (+2) | `rare`: very large control flow |
|
|
| `IrreducibleDepth` | Irreducible nesting depth | every device (a deterministic cap) | `ours` | 4: `crates/metal2vulkan-air/src/graph/loops.rs (compute_in)`, `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (check_within_depth)` (+1) | `none`: deeply nested irreducible loops |
|
|
| `SpirvWords` | Emitted SPIR-V words | every device (a deterministic cap) | `ours` | 2: `crates/metal2vulkan/src/lower/estimate.rs (check)`, `crates/metal2vulkan/src/lower/estimate.rs (check_emitted)` | `rare`: very large output modules |
|
|
| `WorkUnits` | Deterministic work units of one attempt | every device (a deterministic cap) | `ours` | 1: `crates/metal2vulkan-air/src/budget/mod.rs (counted)` | `rare`: very large shaders |
|
|
| `LedgerBytes` | Ledger bytes of one attempt | every device (a deterministic cap) | `ours` | 9: `crates/metal2vulkan-air/src/bitstream/mod.rs (count)`, `crates/metal2vulkan-air/src/budget/mod.rs (charge)` (+5) | `rare`: very large shaders |
|
|
| `TypeCount` | Types in the bitcode type table | every device (a deterministic cap) | `ours` | 2: `crates/metal2vulkan-air/src/bitcode/types.rs (decode)`, `crates/metal2vulkan-air/src/ir/types.rs (intern)` | `none`: a type table past the cap |
|
|
| `MetadataNodes` | Metadata nodes | every device (a deterministic cap) | `ours` | 3: `crates/metal2vulkan-air/src/bitcode/function.rs (metadata)`, `crates/metal2vulkan-air/src/bitcode/metadata.rs (push)` (+1) | `none`: metadata past the cap |
|
|
| `BitstreamNesting` | Bitstream block nesting | every device (a deterministic cap) | `ours` | 1: `crates/metal2vulkan-air/src/bitstream/mod.rs (enter_block)` | `none`: malformed nesting |
|
|
| `InstructionCount` | Instructions of the decoded module | every device (a deterministic cap) | `ours` | 8: `crates/metal2vulkan-air/src/bitcode/function.rs (call)`, `crates/metal2vulkan-air/src/bitcode/function.rs (constants)` (+4) | `rare`: very large modules |
|
|
| `LayoutNesting` | Nesting depth of `air.struct_type_info` layouts and the argument-buffer members inside them | every device (a deterministic cap) | `ours` | 3: `crates/metal2vulkan-air/src/abi/structs.rs (finish)`, `crates/metal2vulkan-air/src/abi/structs.rs (open)` (+1) | `none`: argument-buffer layouts nested past the cap |
|
|
| `ConstructNesting` | Nesting depth of structured constructs the structurizer emits (P8 recurses once per level) | every device (a deterministic cap) | `ours` | 2: `crates/metal2vulkan/src/structurize/emit.rs (check_tree)`, `crates/metal2vulkan/src/structurize/emit/predicate.rs (facts_of)` | `none`: control flow nested past the cap |
|
|
| `PrivateArenaBytes` | Bytes of a function's private arena, whose pointers are `u32` byte offsets | every device (a deterministic cap) | `ours` | 3: `crates/metal2vulkan/src/lower/access/local.rs (use_arena)`, `crates/metal2vulkan/src/memory/plan.rs (place_allocas, 2 sites)` | `none`: a private arena past 4 GiB |
|
|
| `CallStackBytes` | Bytes of a kernel's call stack | every device (a deterministic cap) | `ours` | 1: `crates/metal2vulkan-air/src/canon/recursion.rs (metal_stack)` | `rare`: deep visible-function call stacks |
|
|
|
|
## 6. Rate maps the compile layer does not compile (`Error::RateMap(UnpinnedCompile)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `ScreenExtent` | A screen extent above 16384 | every device (this crate's bound: Apple's compile unmeasured or crashing there) | `-` | 2: `crates/metal2vulkan-runtime/src/rate_map.rs (compile_over)`, `crates/metal2vulkan/src/bind/rate_map.rs (new)` | `rare`: a rate map whose screen is past 16384 a side |
|
|
| `LayerCount` | More than two layers | every device (this crate's bound: Apple's compile unmeasured or crashing there) | `-` | 1: `crates/metal2vulkan/src/bind/rate_map.rs (new)` | `none`: a rate map of more than two layers, which Apple's compile crashes on |
|
|
| `DenseSamples` | An axis with more quality samples than its screen extent plus one | every device (this crate's bound: Apple's compile unmeasured or crashing there) | `-` | 1: `crates/metal2vulkan/src/bind/rate_map.rs (new)` | `rare`: a rate map axis with more quality samples than screen pixels |
|
|
| `SampleOutOfRange` | A sample outside `[0, 1]` (or `NaN`) on an axis of two or more samples | every device (this crate's bound: Apple's compile unmeasured or crashing there) | `-` | 1: `crates/metal2vulkan/src/bind/rate_map.rs (new)` | `rare`: a rate map quality sample outside [0, 1] among others |
|
|
| `SampleCount` | An axis of more samples, not all equal, than the most measured on a map of its layer count, `max` | every device (this crate's bound: Apple's compile unmeasured or crashing there) | `-` | 1: `crates/metal2vulkan/src/bind/rate_map.rs (new)` | `rare`: a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
|
|
|
|
## 7. The translation deadline (`Error::Budget`; the runtime's `Error::Compile(Budget)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `Time` | The attempt's deadline passed | every device (the attempt's deadline, 20 seconds by default) | `ours` | 1: `crates/metal2vulkan-air/src/budget/mod.rs (counted)` | `none`: a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
|
|
|
|
## 8. What a call did wrong (`Error::Metal(MetalError)`: a `Problem`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `EncoderOpen` | An encoder of this command buffer is open | every device (a public call's own check of its arguments) | `metal-measured`: an M4: plain Metal asserts "A command encoder is already encoding to this command buffer" | 2: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_refusal)`, `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (queue_commit)` | `-` |
|
|
| `ProtectedEncoder` | A compute or render encoder made, or a blit encoder's first command (`call` names the blit encoder), under protection options 1, 3 or 7... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 26.7: Metal's process ends, SIGABRT, as the consumer measured | 2: `crates/metal2vulkan-runtime/src/blit.rs (refuse_aborted)`, `crates/metal2vulkan-runtime/src/command_buffer/protection.rs (refuse_protected)` | `-` |
|
|
| `EncoderAbandoned` | An encoder of this command buffer was dropped without `end_encoding` | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Command encoder released without endEncoding" | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_refusal)` | `-` |
|
|
| `AlreadyCommitted` | The command buffer was already committed | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "commit an already committed command buffer" | 5: `crates/metal2vulkan-runtime/src/command_buffer/checks.rs (set_submission_check)`, `crates/metal2vulkan-runtime/src/command_buffer/group.rs (set_completion_joins_next)` (+3) | `-` |
|
|
| `ScheduledSignalAfterCompletion` | A scheduled signal encoded once the command buffer completed, or failed (status `Error`) (`CommandBuffer::encode_signal_event_scheduled`) | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: a segmentation fault in 10 of 15 runs, as the consumer measured | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (encode_signal_event_scheduled)` | `-` |
|
|
| `ForeignObject` | An object made by another device | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for an object another device made is unmeasured | 1: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)` | `-` |
|
|
| `DmaBuf` | Dma-bufs a `DmaBufSource` returned (a runtime extension | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal imports no dma-buf | 3: `crates/metal2vulkan-runtime/src/dma_buf.rs (import_from_source)`, `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_runs_as_dma_buf)` (+1) | `-` |
|
|
| `HostRam` | Guest RAM, or a run resolver's answer, that breaks its runtime extension's contract (`HostRam::new`, `Device::use_host_ram`,... | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal imports no guest RAM | 6: `crates/metal2vulkan-runtime/src/host_ram.rs (new)`, `crates/metal2vulkan-runtime/src/host_ram.rs (ram_use_on)` (+4) | `-` |
|
|
| `HostPagesBacking` | A placement asked of host pages not imported yet (`Device::host_pages_texture_placement`, a runtime extension) for a backing other than... | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal has no such query | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)` | `-` |
|
|
| `WrappedImage` | An image the caller made that cannot be wrapped as a texture of the descriptor (`new_texture_with_vk_image`) | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal wraps no Vulkan image | 2: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`, `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)` | `-` |
|
|
| `NotShareable` | A handle of a texture that is not shareable, for which Metal answers nil, an [`Error::Nil`] | every device (a public call's own check of its arguments) | `unknown`: Metal's nil for a texture that is not shareable is unmeasured | 1: `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_handle)` | `-` |
|
|
| `Semaphore` | A semaphore that cannot be one of the caller's binary semaphores | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal has no binary semaphores | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (binary_command)` | `-` |
|
|
| `NotExportable` | The memory of a buffer, the semaphore of a shared event, or the completion of a command buffer, not made exportable as asked... | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal exports no buffer's memory, no event's semaphore and no command buffer's completion | 5: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file)`, `crates/metal2vulkan-runtime/src/exported_memory.rs (export_memory, 2 sites)` (+2) | `-` |
|
|
| `SyncFile` | A command buffer's completion sync file asked for at the wrong time (`CommandBuffer::export_completion_sync_file`) | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal exports no command buffer's completion | 5: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)`, `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file, 4 sites)` | `-` |
|
|
| `CopyQueue` | A call on a command buffer of a queue made for copies (`Device::new_command_queue_for_copies`) that its copy engine's queue family does not run,... | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal has no queue of copies alone | 3: `crates/metal2vulkan-runtime/src/blit.rs (logged_after)`, `crates/metal2vulkan-runtime/src/blit.rs (refuse_unshared)` (+1) | `-` |
|
|
| `NoPipelineState` | No pipeline state is set (plain Metal faults at a compute dispatch without one) | every device (a public call's own check of its arguments) | `unknown`: plain Metal is held to fault at a dispatch with no pipeline state, on no measurement recorded here | 8: `crates/metal2vulkan-runtime/src/compute.rs`, `crates/metal2vulkan-runtime/src/compute.rs (dispatch_indirect_resident)` (+6) | `-` |
|
|
| `IndexOutOfRange` | An argument-table index past Metal's table (plain Metal writes past its own table | every device (a public call's own check of its arguments) | `metal-measured`: an M4: a compute texture at index 128 faulted the dispatch | 2: `crates/metal2vulkan-runtime/src/argument_table.rs (check_index)`, `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (problem)` | `-` |
|
|
| `OffsetOutOfRange` | An offset past the end of the buffer | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: setVertexBuffer at offset 512 of a buffer of 256 bytes returns, the encoder ends and the pass completes; Metal's API validation alone refuses it | 5: `crates/metal2vulkan-runtime/src/argument_encoder.rs (buffer_word)`, `crates/metal2vulkan-runtime/src/argument_table.rs (check_bound_buffer)` (+3) | `-` |
|
|
| `InlineBytesLength` | `set_bytes` (or a stage's form) of more bytes than Metal's limit for inline bytes | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: setBytes:length:8192 returns and the kernel reads all 8192 bytes; Metal's API validation alone says "length(8192) must be <= 4096" | 2: `crates/metal2vulkan-runtime/src/argument_table.rs (set_bytes)`, `crates/metal2vulkan-runtime/src/render/table_facts.rs (set_bytes)` | `-` |
|
|
| `ImageblockSize` | An imageblock size of more than 1024 cells over more than one row and column, or with a side past 65536, at a compute encoder's... | every device (a public call's own check of its arguments) | `unknown`: plain Metal is held to run the compute form, and the indirect form rests on Metal's API validation; neither measured on a named device | 3: `crates/metal2vulkan-runtime/src/compute.rs (imageblock_size, 2 sites)`, `crates/metal2vulkan-runtime/src/compute.rs (validated_imageblock_size)` | `-` |
|
|
| `EmptyThreadgroup` | A tile dispatch's threadgroup with no threads along an axis (a compute dispatch of one runs nothing, as plain Metal's) | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for a tile dispatch of no threads along an axis is unmeasured | 1: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` |
|
|
| `SizeOutOfRange` | A size past what the call can state | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for a tile dispatch's or mesh draw's axis past 32 bits is unmeasured | 2: `crates/metal2vulkan-runtime/src/render/mesh.rs`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` |
|
|
| `BufferLength` | A buffer of no bytes, or more than the device can hold in one | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: newBufferWithLength:0 answers nil | 16: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`, `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)` (+13) | `-` |
|
|
| `UndefinedValue` | A raw value Metal does not define for this type | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max: setPurgeableState:99, a value MTLPurgeableState does not define, answers 2, and neither plain Metal nor its API validation refuses it | 8: `crates/metal2vulkan-runtime/src/attributes.rs (from_raw)`, `crates/metal2vulkan-runtime/src/degradation.rs (refuse_private_bit)` (+5) | `-` |
|
|
| `StorageMode` | A storage mode this call does not take (`Memoryless` for a buffer, for one) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: a buffer of the Memoryless mode asserts "Invalid storageMode", the API validation layer off | 15: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target)`, `crates/metal2vulkan-runtime/src/buffer.rs (buffer_class)` (+13) | `-` |
|
|
| `HandlerAfterCommit` | A handler added after the command buffer was committed | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Completed handler provided after commit call" | 5: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completed_handler)`, `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completion_seen_handler)` (+3) | `-` |
|
|
| `LengthMismatch` | The given slices' lengths differ | every device (a public call's own check of its arguments) | `ours`: this crate's paired slices: Metal's calls take a count | 8: `crates/metal2vulkan-runtime/src/argument_encoder.rs (set_buffers)`, `crates/metal2vulkan-runtime/src/argument_table.rs (set_buffers_with_strides)` (+5) | `-` |
|
|
| `PaddingUnobservedNoCopy` | A buffer descriptor that declares the bytes between a texture's rows unobserved (`BufferDescriptor::padding_unobserved`) with `NoCopy` contents | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal has no such declaration | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)` | `-` |
|
|
| `AlignedByteNoCopy` | A buffer descriptor that lays a byte of the buffer on a multiple of 256 bytes of its memory (`BufferDescriptor::aligned_byte`) with `NoCopy` contents | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal places no buffer's byte | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)` | `-` |
|
|
| `ExportedNoCopy` | A buffer descriptor that makes the buffer's memory exportable (`BufferDescriptor::exported_as`) with `NoCopy` contents | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal exports no buffer's memory | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)` | `-` |
|
|
| `LongTextureBufferFillPattern` | A texture buffer's fill given a pattern of more than 32752 bytes (`fillTexture:...:bytes:length:`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: Metal's process ends in the call | 1: `crates/metal2vulkan-runtime/src/blit_fill.rs (check_pattern)` | `-` |
|
|
| `RangeOutOfBounds` | `offset..offset + size` runs past a resource of `length` bytes | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: didModifyRange of 0+512 and of 240+64 on a buffer of 256 bytes both return; Metal's API validation alone refuses them | 4: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target_offset)`, `crates/metal2vulkan-runtime/src/blit.rs (out_of_bounds)` (+2) | `-` |
|
|
| `ShaderCacheCapacity` | A shader cache capacity, on disk or in memory, of zero | every device (a public call's own check of its arguments) | `ours`: this crate's shader caches: Metal exposes no capacity | 1: `crates/metal2vulkan-runtime/src/shader_cache/mod.rs (of_in)` | `-` |
|
|
| `MaxCommandBufferCount` | A command queue's `maxCommandBufferCount` of zero | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: Metal's command queue creation asserts "invalid descriptor.maxCommandBufferCount value 0", with and without API validation | 2: `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_unshared_now)`, `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_with_max_command_buffer_count_now)` | `-` |
|
|
| `Texture` | A texture descriptor Metal stops (`Invalid`), or plain Metal answers nil for (`Nil`) | every device (a public call's own check of its arguments) | `delegated`: TextureProblem, section 9 | 7: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture.rs (image_error)` (+3) | `-` |
|
|
| `TextureView` | A texture view Metal stops, or a use of a texture its usage does not allow | every device (a public call's own check of its arguments) | `delegated`: ViewProblem, section 9 | 6: `crates/metal2vulkan-runtime/src/texture.rs (checked_view, 2 sites)`, `crates/metal2vulkan-runtime/src/texture.rs (subview, 2 sites)` (+1) | `-` |
|
|
| `Copy` | A texture copy Metal stops | every device (a public call's own check of its arguments) | `delegated`: CopyProblem, section 9 | 27: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`, `crates/metal2vulkan-runtime/src/blit_texture.rs (check_slice_level)` (+18) | `-` |
|
|
| `Mipmap` | A `generate_mipmaps` Metal stops | every device (a public call's own check of its arguments) | `delegated`: MipmapProblem, section 9 | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)` | `-` |
|
|
| `BufferTexture` | A texture over a buffer plain Metal itself refuses | every device (a public call's own check of its arguments) | `delegated`: BufferTextureProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error, 2 sites)`, `crates/metal2vulkan-runtime/src/capabilities.rs (linear_alignment_rule)` | `-` |
|
|
| `RenderPass` | A render pass descriptor, or a render encoder's late store action, Metal stops | every device (a public call's own check of its arguments) | `delegated`: RenderPassProblem, section 9 | 15: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (check_descriptor)`, `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (of)` (+8) | `-` |
|
|
| `Draw` | A draw, or render encoder state, Metal stops | every device (a public call's own check of its arguments) | `delegated`: DrawProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`, `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives_in)` (+1) | `-` |
|
|
| `PointSizeTopology` | `new_render_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max and an M4: Metal's pipeline creation answers an error, with and without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/render.rs (create_checked)` | `-` |
|
|
| `IndirectScaledTessellation` | `new_render_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal ends its process, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/pipeline/render.rs (make_reflecting)` | `-` |
|
|
| `CompiledKernel` | `new_compute_pipeline_state` | every device (a public call's own check of its arguments) | `ours`: this crate's already-compiled stage: Metal's descriptor takes a function | 1: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)` | `-` |
|
|
| `UnspecializedFunction` | `new_compute_pipeline_state`, `new_render_pipeline_state`, `new_tile_render_pipeline_state` and `new_mesh_render_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal ends its process at a compute, render, tile and mesh state of each stage, `MTL_DEBUG_LAYER` unset | 1: `crates/metal2vulkan-runtime/src/pipeline/unspecialized.rs (check)` | `-` |
|
|
| `DuplicateLinkedFunction` | `new_compute_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's creation fails with code 3, `binary_function_linking.m` | 1: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)` | `-` |
|
|
| `RenderState` | A viewport, scissor rectangle or other render encoder state Metal stops at its setter | every device (a public call's own check of its arguments) | `delegated`: RenderStateProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)` (+1) | `-` |
|
|
| `Visibility` | A `set_visibility_result_mode` Metal stops | every device (a public call's own check of its arguments) | `delegated`: VisibilityProblem, section 9 | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
|
|
| `Heap` | A heap, or a resource placed in one, Metal stops (`new_heap` and the heap's calls) | every device (a public call's own check of its arguments) | `delegated`: HeapProblem, section 9 | 13: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`, `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)` (+11) | `-` |
|
|
| `ResourceId` | A resource ID, placed or reserved, of `limit` or more | every device (a public call's own check of its arguments) | `metal-measured`: an M4 and an M3 Max, macOS 27.0.1: the IDs at which Metal ends the process, recorded in `resource_ids.rs` | 1: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_limit)` | `-` |
|
|
| `ReservationHangs` | An indirect command buffer ID of `limit` (2^31) to 2^32 - 1 in a reservation (`Device::reserve_resource_ids`) | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: Metal's call never returns, its pool spinning | 1: `crates/metal2vulkan-runtime/src/resource_ids.rs (reserve_resource_ids_now)` | `-` |
|
|
| `OutsidePlacement` | `IdPlacement::Outside` for anything but a texture `Device::new_texture` or `Device::new_texture_with_vk_image` makes | every device (a public call's own check of its arguments) | `ours`: a runtime extension's misuse: Metal has no such placement | 4: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_sampler_placement)`, `crates/metal2vulkan-runtime/src/resource_ids.rs (check_texture_placement)` (+2) | `-` |
|
|
| `FunctionTable` | A visible-function table call, or a table or buffer binding a dispatch reads as the other, Metal stops | every device (a public call's own check of its arguments) | `delegated`: FunctionTableProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/argument_table.rs (check_function_tables)`, `crates/metal2vulkan-runtime/src/function_table.rs (not_one_stage)` (+1) | `-` |
|
|
| `IndirectCommandBuffer` | An indirect command buffer call plain Metal itself refuses, ending its process or failing the call | every device (a public call's own check of its arguments) | `delegated`: IndirectCommandBufferProblem, section 9 | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (problem)` | `-` |
|
|
| `RateMap` | A rasterization-rate map's descriptor Metal stops (`new_rasterization_rate_map`) | every device (a public call's own check of its arguments) | `delegated`: RateMapProblem, section 9 | 6: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates, 2 sites)`, `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates, 2 sites)` (+2) | `-` |
|
|
| `ArgumentEncoder` | An argument encoder call Metal stops, raises for, or answers nil for | every device (a public call's own check of its arguments) | `delegated`: ArgumentEncoderProblem, section 9 | 2: `crates/metal2vulkan-runtime/src/argument_encoder.rs (new_argument_encoder_for_buffer_at_index)`, `crates/metal2vulkan-runtime/src/argument_encoder.rs (problem)` | `-` |
|
|
| `IndirectDispatchRange` | An indirect dispatch's `bytes` of arguments at `offset` that run past the bytes the runtime holds at Metal's address in its buffer of `length`... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max under macOS 27.0.1: an indirect dispatch whose 12 bytes of arguments run past its buffer of 8 bytes runs and counts right; Metal's API validation alone refuses it. Arguments inside the buffer's allocation are taken now, so what the refusal still reaches past Metal for is the slice past the bytes the runtime holds there | 1: `crates/metal2vulkan-runtime/src/indirect_dispatch.rs (arguments_offset)` | `-` |
|
|
| `Sparse` | A sparse heap's or texture's call Metal stops, or answers nil for | every device (a public call's own check of its arguments) | `delegated`: SparseProblem, section 9 | 5: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (move_texture_mappings)`, `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mapping_indirect)` (+2) | `-` |
|
|
| `WrappedBuffer` | A buffer the caller made that cannot be wrapped as a Metal buffer of the length and storage (`new_buffer_with_vk_buffer`) | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal wraps no Vulkan buffer | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)` | `-` |
|
|
| `RequiredThreads` | A pipeline's `requiredThreadsPerThreadgroup` that Metal refuses at creation | every device (a public call's own check of its arguments) | `delegated`: RequiredThreadsProblem, section 9 | 2: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`, `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel_maximum)` | `-` |
|
|
| `BinaryFunctions` | A pipeline's binary functions that Metal refuses | every device (a public call's own check of its arguments) | `delegated`: BinaryFunctionProblem, section 9 | 5: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added, 2 sites)`, `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_mesh)` (+2) | `-` |
|
|
| `DynamicLibraryFunction` | A function made by name from a dynamic library (`newFunctionWithName:` and its forms) | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max and an M4, plain and under API validation: Metal asserts "type is not a valid MTLFunctionType" | 1: `crates/metal2vulkan-runtime/src/library.rs (function)` | `-` |
|
|
| `Rebind` | `rebind_bytes_no_copy` of a buffer or heap the runtime cannot rebind as asked (a runtime extension; `rebind.rs`) | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal rebinds no bytes under a buffer | 5: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`, `crates/metal2vulkan-runtime/src/detach.rs (detach_backing, 2 sites)` (+1) | `-` |
|
|
| `IndirectCommandsDirectArgument` | `new_render_pipeline_state`, `new_mesh_render_pipeline_state` or `new_compute_pipeline_state` of a descriptor with `supportIndirectCommandBuffers`... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max under macOS 26.7 and an M4 under 27.0.1: plain Metal answers nil with an NSError | 1: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (refusal)` | `-` |
|
|
| `UnrasterizedVertexReturn` | `new_render_pipeline_state` of a descriptor with rasterization disabled whose vertex function's return type is not `void` | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal answers nil with an NSError | 1: `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (rasterizes)` | `-` |
|
|
| `RasterizedVoidVertex` | `new_render_pipeline_state` of a descriptor with rasterization enabled whose vertex function's return type is `void`, with or without a fragment... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal answers nil with an NSError | 2: `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (compiled)`, `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (rasterizes)` | `-` |
|
|
| `IndirectCommandsDirectArgumentUnproven` | `new_render_pipeline_state` (a render or mesh state) of a descriptor with `supportIndirectCommandBuffers` whose function of `stage`, the first in... | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for a use only this rule keeps is unmeasured, so the state is refused as unproven | 1: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (check_render)` | `-` |
|
|
| `IndirectCommandsDirectArgumentUndecided` | `new_render_pipeline_state`, `new_mesh_render_pipeline_state` or `new_compute_pipeline_state` of a descriptor with `supportIndirectCommandBuffers`... | every device (a public call's own check of its arguments) | `ours`: the compile layer will not say whether the functions use one, so no state is made | 1: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (undecided)` | `-` |
|
|
| `DepthWrittenWithoutAttachment` | `new_render_pipeline_state` of a descriptor without a depth attachment whose fragment function writes depth (a `[[depth(...)]]` output), outside... | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal answers nil with an NSError | 1: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_depth)` | `-` |
|
|
| `UnwrittenFragmentInputs` | `new_render_pipeline_state` of a descriptor whose fragment function's stage inputs `inputs` (their MSL member names, in declaration order), which... | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal answers nil with an NSError | 1: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_inputs)` | `-` |
|
|
| `UnwrittenFragmentInputsUnproven` | [`Problem::UnwrittenFragmentInputs`] where only a rule kept beyond Metal keeps such an input (`reason`) | every device (a public call's own check of its arguments) | `unknown`: Metal may make the state; the input is kept by a rule beyond Metal | 1: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_inputs)` | `-` |
|
|
| `AttachmentNotAFormat` | `new_render_pipeline_state` or `new_mesh_render_pipeline_state` of a descriptor whose `attachment` is in a pixel format (`format`) Metal describes... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4 under macOS 27.0.1, and the consumer's run on an M3 Max under 26.7: Metal's descriptor validation stops it | 1: `crates/metal2vulkan-runtime/src/pipeline/attachment_formats.rs (check)` | `-` |
|
|
| `RasterSampleCount` | `new_render_pipeline_state` or `new_mesh_render_pipeline_state` of a `rasterSampleCount` other than 1, 2 and 4, and... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1: plain Metal answers nil with an NSError, with and without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/raster_samples.rs (refused)` | `-` |
|
|
|
|
## 9. What a call did wrong, in detail (the problem enums a `Problem` forwards to)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `WrappedImageProblem::NullImage` | A null image handle | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 2: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`, `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)` | `-` |
|
|
| `WrappedImageProblem::ImageType` | The descriptor's type has no image here (`TextureBuffer`), or the image's type is another | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 2: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`, `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)` | `-` |
|
|
| `WrappedImageProblem::Format` | The image's format is not the one the runtime makes for the descriptor's pixel format on this device | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Extent` | The image's extent is not the descriptor's | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Levels` | The image's level count is not the descriptor's | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Layers` | The image's array layers are not the descriptor's (slices, six per cube) | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Samples` | The image's sample count is not the descriptor's | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Tiling` | The image is not optimal-tiled | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Usage` | The image lacks usages the runtime's own texture of the descriptor has, other than the input attachment usage only a fetching pass needs (that... | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Flags` | The image lacks creation flags the texture needs (cube compatibility, or extended usage for a storage view in another format) | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Protected` | A protected image | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::QueueFamily` | An image not shared with every queue family of the device | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::Layout` | A layout the contract cannot take | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 1: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (check_layouts)` | `-` |
|
|
| `WrappedImageProblem::Untracked` | A texture whose image moves between layouts made with `Untracked` hazards | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 1: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)` | `-` |
|
|
| `WrappedImageProblem::Plane` | The plane asked for is not one of the image's | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `WrappedImageProblem::PlaneFormat` | The descriptor's format is not compatible with the plane's (the plane's format's compatibility class, `VUID-VkImageViewCreateInfo-image-01586`) | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedImage` | 0 | `-` |
|
|
| `SemaphoreProblem::Null` | A null handle | every device (a public call's own check of its arguments) | `ours`: from `Problem::Semaphore` | 1: `crates/metal2vulkan-runtime/src/interop.rs (semaphore_problem)` | `-` |
|
|
| `SemaphoreProblem::Timeline` | One of the runtime's own timeline semaphores | every device (a public call's own check of its arguments) | `ours`: from `Problem::Semaphore` | 1: `crates/metal2vulkan-runtime/src/interop.rs (semaphore_problem)` | `-` |
|
|
| `SyncFileProblem::Committed` | Asked for after the commit (`CommandBuffer::add_completion_sync_file`) | every device (a public call's own check of its arguments) | `ours`: from `Problem::SyncFile` | 1: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)` | `-` |
|
|
| `SyncFileProblem::NotCommitted` | The command buffer is not committed | every device (a public call's own check of its arguments) | `ours`: from `Problem::SyncFile` | 1: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file)` | `-` |
|
|
| `SyncFileProblem::Exported` | The sync file was exported already | every device (a public call's own check of its arguments) | `ours`: from `Problem::SyncFile` | 3: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file, 3 sites)` | `-` |
|
|
| `CopyQueueProblem::Encoder` | An encoder but a blit encoder | every device (a public call's own check of its arguments) | `ours`: from `Problem::CopyQueue` | 3: `crates/metal2vulkan-runtime/src/encoder.rs (open_placed)`, `crates/metal2vulkan-runtime/src/render.rs (render_command_encoder)` (+1) | `-` |
|
|
| `CopyQueueProblem::Command` | A blit command but `copy_from_buffer_to_buffer`, `fill_buffer` and the fence updates and waits | every device (a public call's own check of its arguments) | `ours`: from `Problem::CopyQueue` | 1: `crates/metal2vulkan-runtime/src/blit.rs (logged_after)` | `-` |
|
|
| `CopyQueueProblem::Buffer` | A buffer the caller made (`Device::new_buffer_with_vk_buffer`) that is not concurrent with the copy engine's family, whose contents that family... | every device (a public call's own check of its arguments) | `ours`: from `Problem::CopyQueue` | 1: `crates/metal2vulkan-runtime/src/blit.rs (refuse_unshared)` | `-` |
|
|
| `TextureProblem::NotAFormat` | `Invalid`, or a format Metal describes none of (`Device::pixel_format_info` answers `PixelFormatInfo::INVALID`) | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's descriptor validation ends the process, "MTLTextureDescriptor has invalid pixelFormat (0)", the API validation layer off | 2: `crates/metal2vulkan-runtime/src/texture.rs (image_error)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::ZeroExtent` | A width, height or depth of 0 | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has width of zero", and the same for a height of zero | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::ExtentForType` | A height other than 1 for a 1D or buffer texture, or a depth other than 1 for a texture that is not 3D | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "the texture type MTLTextureType1D requires that height is 1", and the same for a 2D texture of depth 2 | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::CubeNotSquare` | A cube whose width and height differ | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor width must equal height for cube textures" | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::ArrayLength` | An array length other than 1 for a type that is not an array, or 0, or more than 2048 (341 for a cube array | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has arrayLength of zero", where an array length of 2 is made | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::MipmapLevelCount` | A level count of 0, more than the full chain `max`, or more than 1 for a multisample, 1D, 1D array or 4:2:2 texture | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "requests 5 mipmap levels, but the dimensions (8, 8, 1) can only support a maxiumum of 4 levels", and the same for 0 | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::SampleCount` | A sample count of 0, or other than 1 for a type that is not multisample; for a multisample type, 1 or a count neither the device nor an Apple GPU... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "has sampleCount set but is using a type that does not allow sampleCount" for 0 and for 2 of a 2D texture, and "sampleCount (3) is not supported by device" | 2: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` | `-` |
|
|
| `TextureProblem::SwizzleWithWrites` | A swizzle other than the default with `ShaderWrite` or `RenderTarget` usage, without `write_swizzle_enabled` (with it too from... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Texture swizzling is not compatable with MTLTextureUsageShaderWrite", where a swizzle of read usage alone is made | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::ExtentOverflow` | An extent or count past what any device can hold (`u32`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "has width (4294967296) greater than the maximum allowed size of 16384" | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::TypeForFormat` | A texture type the pixel format does not take | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "depth/stencil pixel formats require texture type of `MTLTextureType2D[Array]` or `MTLTextureTypeCube[Array]`" for a depth texture buffer, and the same for a compressed one | 7: `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` (+2) | `-` |
|
|
| `TextureProblem::ViewOnlyFormat` | `X24_Stencil8` | every device (a public call's own check of its arguments) | `unknown`: whether plain Metal makes a texture of `X24_Stencil8` from a descriptor is unmeasured: an Apple GPU's Metal describes none of that format, so `NotAFormat` answers there first | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format)` | `-` |
|
|
| `TextureProblem::ExtentForFormat` | An extent the pixel format does not take | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a PVRTC texture that is not square and for a 4:2:2 texture of odd width is unmeasured; the odd two-plane render target's nil is the one measured part | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` (+1) | `-` |
|
|
| `TextureProblem::UsageForFormat` | A usage the pixel format does not take | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1: plain Metal's descriptor validation asserts over `ShaderAtomic` of an extended-range format | 3: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 3 sites)` | `-` |
|
|
| `TextureProblem::Unspecialized` | `Unspecialized`, of which Metal makes no texture, an [`Error::Nil`] | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 26.7: plain Metal answers nil for a texture of `Unspecialized` in every storage mode and usage, as the consumer reported | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::Rotation` | A rotation past 4 (Metal's descriptor validation asserts, plain too) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's descriptor validation ends the process, SIGABRT, "rotation is not a valid MTLTextureRotation", at `heapTextureSizeAndAlignWithDescriptor:` and at `newTextureWithDescriptor:iosurface:plane:` of a rotation of 5, where a rotation of 4 beside it answers a size and makes the texture, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::RotationWithoutFramebufferOnly` | A rotation other than 0 without `framebuffer_only` (Metal's descriptor validation asserts, plain too) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's descriptor validation ends the process, SIGABRT, "MTLTextureDescriptor has a non-zero rotation set but is not marked as framebufferOnly", for a rotation of 1 without it, where a rotation of 0 without it answers a size and a rotation of 1 with it makes the texture, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `TextureProblem::FramebufferOnly` | `framebuffer_only` for a creator that makes no such texture | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "framebufferOnly == NO" | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture.rs (texture_as)` (+1) | `-` |
|
|
| `TextureProblem::NoTextureOfFormat` | A format of which Metal makes no texture from a descriptor alone | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1, and an M3 Max under 26.7: plain Metal answers nil from the device, a heap and a buffer, for every texture type the format takes | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` | `-` |
|
|
| `TextureProblem::PastLargestSide` | A width, height or depth past the largest side Metal makes the type with, `max` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has width (16385) greater than the maximum allowed size of 16384", the layer off, where the side itself is made | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` |
|
|
| `ViewProblem::NotAFormat` | [`PixelFormat::Invalid`] or [`PixelFormat::Unspecialized`] | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 26.7: plain Metal makes no such view and answers nil, as the consumer reported | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (check_format)` | `-` |
|
|
| `ViewProblem::FormatIncompatible` | A format Metal never views the texture's as | every device (a public call's own check of its arguments) | `metal-documented`: Metal aborts "source texture pixelFormat not compatible with texture view pixelFormat" | 5: `crates/metal2vulkan-runtime/src/texture.rs (checked_view)`, `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 4 sites)` | `-` |
|
|
| `ViewProblem::TypeIncompatible` | A texture type Metal does not view the texture's type as | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a view type the texture's type is not viewed as is unmeasured: the cube view of a 2D texture on record is stopped over its slice range, not its type | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)` | `-` |
|
|
| `ViewProblem::LevelRange` | An empty level range, or one past the texture's levels | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "(newLevelRange.location + newLevelRange.length)(7) must be <= `[texture mipmapLevelCount](4)`", and "newLevelRange.length must not be 0" for an empty one | 3: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`, `crates/metal2vulkan-runtime/src/texture.rs (subview)` (+1) | `-` |
|
|
| `ViewProblem::SliceRange` | An empty slice range, or one past the texture's slices | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "(newSliceRange.location + newSliceRange.length)(3) must be <= (2)" | 2: `crates/metal2vulkan-runtime/src/texture.rs (subview)`, `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)` | `-` |
|
|
| `ViewProblem::SliceCount` | A slice count the view's type does not take | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "newSliceRange.length(2) must equal (1) for textureType (MTLTextureType2D)" | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)` | `-` |
|
|
| `ViewProblem::BufferSlices` | More than one slice of a 2D array over a buffer | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max and an M4: Metal asserts `sliceRange.length == 1` on such a view, plain and validated | 1: `crates/metal2vulkan-runtime/src/texture.rs (checked_view)` | `-` |
|
|
| `ViewProblem::SwizzledViewOfNoUsage` | A view with a swizzle of a texture whose usage is none (a texture made with Apple's private usage 0x8 alone) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4: Metal asserts `_usage != MTLTextureUsageUnknown` on such a view, plain and validated | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)` | `-` |
|
|
| `CopyProblem::CpuAccessPrivate` | `replaceRegion` or `getBytes` of a private texture | every device (a public call's own check of its arguments) | `metal-takes`: an M4, macOS 27.0.1: plain Metal copies a private texture of up to 8 KiB as a shared one, so the refusal reaches past it; most of 16 KiB and more end the process | 6: `crates/metal2vulkan-runtime/src/buffer_texture.rs (bytes)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (past_runs)` (+4) | `-` |
|
|
| `CopyProblem::Region` | A level or slice past the texture, or a region past its level (a compressed region past the level's last block) | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a blit level, slice or region past the texture is unmeasured | 10: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_levels_copy)`, `crates/metal2vulkan-runtime/src/blit_plan.rs (source_region, 2 sites)` (+6) | `-` |
|
|
| `CopyProblem::Offset` | A buffer offset that is not a multiple of the copy unit, of a blit whose plain Metal answer is not measured | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a buffer offset off the copy unit of these blits is not measured | 2: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`, `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_block_order_copy)` | `-` |
|
|
| `CopyProblem::BytesPerRow` | A `bytesPerRow` that is not a multiple of the copy unit, or that does not cover a row, where plain Metal's answer is undefined or not measured | every device (a public call's own check of its arguments) | `unknown`: undefined or unmeasured by the shapes listed above | 4: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`, `crates/metal2vulkan-runtime/src/blit_plan.rs (placed_rows)` (+2) | `-` |
|
|
| `CopyProblem::BufferRange` | Bytes past the end of the buffer | every device (a public call's own check of its arguments) | `metal-takes`: an M4, macOS 27.0.1: plain Metal reads past the buffer rather than refusing — zeros, bytes a write past the length left, or another resource's bytes | 10: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`, `crates/metal2vulkan-runtime/src/blit_plan.rs (placed_rows, 2 sites)` (+6) | `-` |
|
|
| `CopyProblem::Format` | Two textures whose formats a copy does not take | every device (a public call's own check of its arguments) | `metal-takes`: an M4, macOS 27.0.1: plain Metal copies the source's bytes in the GPU's own texel layout rather than refusing, which differs between formats of different units: no defined answer | 1: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_formats)` | `-` |
|
|
| `CopyProblem::SampleCount` | Two textures of different sample counts | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal completes the copy with no error rather than refusing it, so the refusal reaches past Metal; what it stores is its own texel twiddling and sample compression, which neither Metal nor Vulkan defines, so the runtime has no exact answer to put in its place | 1: `crates/metal2vulkan-runtime/src/blit_plan.rs (check)` | `-` |
|
|
| `CopyProblem::Size` | A copy of whole textures whose extents pair at no level, where plain Metal aborts, or whose paired level lies past the end of one texture's own... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, our probe `copy_sample_counts_and_block_sizes.m`, 12 processes of every shape alike. The first shape is Metal's own refusal: `wh-plain-8x8-to-8x4`, `wh-plain-8l4-to-3l2` and `wh-astc65-18x15-to-12x10` each end the process, SIGABRT, on `MTLPickLargestMip`'s `Postcondition does not hold`, where every pairing shape beside them completes. The second reaches past Metal: `wh-bc1-16-to-4`, `wh-bc1-32-to-4`, `wh-plain-16-to-4` and `wh-plain-32-to-8`, each a source of one level paired at its level 2 or 3, all four complete with no error and write the destination's level 0 from the source's level 0, a level the pairing did not name, which is Metal's own answer for an out-of-range level offset and not one the runtime can put in its place; the mirrored `wh-bc1-4-to-16` and `wh-plain-4-to-16` write nothing at all | 2: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_whole_copy, 2 sites)` | `-` |
|
|
| `MipmapProblem::NotColorRenderable` | A compressed format, which is not color-renderable | every device (a public call's own check of its arguments) | `metal-takes`: an M4, macOS 27.0.1: plain Metal generates the mipmaps of a compressed texture rather than refusing, writing zeros over the first bytes of the lower levels: no defined answer | 1: `crates/metal2vulkan-runtime/src/mipmap_plan.rs (format_problem)` | `-` |
|
|
| `BufferTextureProblem::NotLinear` | A pixel format no buffer can back | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Linear texture: cannot create compressed, depth, or stencil textures" over `Depth32Float` and `Stencil8`, the alignment query asserts "Linear textures do not support depth/stencil pixel formats", and `BC1_RGBA` answers nil | 2: `crates/metal2vulkan-runtime/src/linear_plan.rs (backed)`, `crates/metal2vulkan-runtime/src/linear_plan.rs (linear_alignment)` | `-` |
|
|
| `BufferTextureProblem::TextureType` | A texture type the call does not make over a buffer, or over an IOSurface without planes | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Linear texture: must be of type MTLTextureType2D, textureType (MTLTextureType3D) disallowed", and the same for a 2D array, the API validation layer off; over a plane of a surface with planes it asserts "carriesComplexTexture \|\| numFaces == 1" in `-[IOGPUMetalTexture initWithDevice:descriptor:iosurface:plane:field:args:argsSize:]` on a cube and a cube array, which an AMD Radeon Pro 5300M and an Intel UHD 630 under macOS 26.7.1 make, `metal2vulkan-conformance/probes/surface_texture_envelope.m` | 0 | `-` |
|
|
| `BufferTextureProblem::MipmapLevelCount` | More than one mip level, of a texture but a tiled 2D one (`Buffer::new_tiled_texture`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Linear texture: cannot be mipmapped, mipmapLevelCount (2) disallowed" | 0 | `-` |
|
|
| `BufferTextureProblem::RowPitch` | A `bytesPerRow` that does not cover the packed row of `row_bytes` | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a `bytesPerRow` below the packed row is unmeasured: the runs on record vary its alignment, not its length | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (covers_its_row)` | `-` |
|
|
| `BufferTextureProblem::RowPitchAlignment` | A `bytesPerRow` that is not a multiple of `alignment` | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Linear texture: bytesPerRow (8) must be aligned to 16 bytes", and the same at 17, 24 and 36, where 32 is made | 0 | `-` |
|
|
| `BufferTextureProblem::OffsetAlignment` | An offset that is not a multiple of `alignment` | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Linear texture: offset (4330536964) must be aligned to 16 bytes" at offsets 4 and 8, where 16 is made | 0 | `-` |
|
|
| `BufferTextureProblem::PastBuffer` | A texture over a surface without planes whose rows end past the surface's bytes, `counted` of the `length` the buffer standing for it holds | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal asserts "Descriptor height*arrayLength > IOSurface height", the API validation layer off, where the surface-high descriptor is made | 0 | `-` |
|
|
| `BufferTextureProblem::PastAllocation` | A texture over a buffer of at least 16 KiB that ends past the buffer's allocation | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal answers nil one byte past the allocation of a buffer of its own, of a heap's buffer and of a no-copy one, for a texture buffer's and a 2D texture's last texel and an array's rounded slices, the layer off, and makes the texture to it | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` | `-` |
|
|
| `RenderPassProblem::NoTargets` | No attachment has a texture and the target width or height is 0 | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal answers its render command encoder nil for a descriptor with no attachment and a 0 by 0 target | 1: `crates/metal2vulkan-runtime/src/render_pass.rs` | `-` |
|
|
| `RenderPassProblem::AttachmentFormat` | The attachment's texture has a format of another kind | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for an attachment whose texture holds another kind of format is unmeasured | 1: `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)` | `-` |
|
|
| `RenderPassProblem::AttachmentSubresource` | The attachment's level lies past its texture's, its slice past an array's or a cube's slices, or its depth plane past a 3D texture's planes | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal makes the encoder for level 5 of a 4-level texture and the pass ends, its validation alone saying "mipmap level is 5, but the texture at attachment 0 has only 4 levels" | 3: `crates/metal2vulkan-runtime/src/render_pass.rs (check_planes, 2 sites)`, `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)` | `-` |
|
|
| `RenderPassProblem::SampleCounts` | The attachments' sample counts differ | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal makes the encoder for a 1-sample and a 4-sample attachment together and the pass ends, its validation alone saying "render targets have inconsistent sample counts" | 2: `crates/metal2vulkan-runtime/src/render_pass.rs`, `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)` | `-` |
|
|
| `RenderPassProblem::ClearDepth` | The depth attachment's `Clear` load holds a NaN clear depth, on a depth format whose store of one is not measured (not `Depth32Float`,... | every device (a public call's own check of its arguments) | `unknown`: plain Metal's store of a NaN clear depth is unmeasured for the formats this refuses; the three it is measured on clear as plain Metal clears them | 1: `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)` | `-` |
|
|
| `RenderPassProblem::StoreActionKnown` | A store action set by the encoder over one the descriptor knew (not `Unknown`), or set to `Unknown`; or store action options set by the encoder... | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "store actions known at render command encoder init time may not be mutated" | 2: `crates/metal2vulkan-runtime/src/render.rs (late_store)`, `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action_options)` | `-` |
|
|
| `RenderPassProblem::NoAttachment` | A store action set by the encoder for a stencil attachment without a texture, or store action options for an attachment without one (plain Metal... | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a store action set on a stencil attachment without a texture is unmeasured; the color and depth attachments it changes nothing for are not refused | 6: `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action)`, `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action_options)` (+3) | `-` |
|
|
| `RenderPassProblem::ResolveWithoutTexture` | A resolving store action (the descriptor's or the encoder's) without a resolve texture (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "requires resolve texture" | 3: `crates/metal2vulkan-runtime/src/render.rs (late_store)`, `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_color_resolve_target)` (+1) | `-` |
|
|
| `RenderPassProblem::ResolveStoreAction` | A resolve target set late (`set_color_resolve_target` and its depth and stencil twins) under a store action the descriptor knew that does not... | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "must be one of MTLStoreActionMultisampleResolve or MTLStoreActionStoreAndMultisampleResolve" | 2: `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_aspect_resolve_target)`, `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_color_resolve_target)` | `-` |
|
|
| `RenderPassProblem::ResolveSourceSamples` | A resolve of a single-sampled depth or stencil attachment, or a color one's target set late (measured | every device (a public call's own check of its arguments) | `unknown`: Metal's validation stops it, measured; plain Metal's own answer for a resolve of a single-sampled depth or stencil attachment is unmeasured | 1: `crates/metal2vulkan-runtime/src/resolve.rs (single_sampled)` | `-` |
|
|
| `RenderPassProblem::ResolveSamples` | A multisampled resolve texture (measured) | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal completes the pass with no error and copies the attachment's samples into a color resolve texture of its own count, and writes the resolved depth into every sample of a 4-sample depth one, where a color resolve texture of another count beside them is left at the value it held: so the refusal reaches past Metal | 1: `crates/metal2vulkan-runtime/src/resolve.rs (destination)` | `-` |
|
|
| `RenderPassProblem::ResolveFormat` | A resolve texture of another pixel format than the attachment's (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "cannot be a MSAA resolve target" for an integer color format, and its validation stops a resolve texture of another pixel format than the attachment's | 3: `crates/metal2vulkan-runtime/src/resolve.rs (color)`, `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)` (+1) | `-` |
|
|
| `RenderPassProblem::ResolveSubresource` | The resolve level, slice or depth plane lies past the resolve texture (measured), an index its type does not have ignored as for an attachment | every device (a public call's own check of its arguments) | `unknown`: Metal's validation stops a resolve level, slice or depth plane past the resolve texture, measured; plain Metal's own answer is unmeasured | 1: `crates/metal2vulkan-runtime/src/resolve.rs (destination)` | `-` |
|
|
| `RenderPassProblem::ResolveSize` | A color resolve level reaches past the attachment, which loads with `Load` or `DontCare` (measured | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal completes a pass whose 128 by 128 resolve texture reaches past its 64 by 64 4-sample attachment, with no error, resolving the 64 by 64 overlap and leaving the texels at x 64 to 67 at the value they held, so the refusal reaches past Metal | 3: `crates/metal2vulkan-runtime/src/resolve.rs (color)`, `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)` (+1) | `-` |
|
|
| `RenderPassProblem::DepthStencilResolveMix` | The depth and stencil attachments are one texture whose stencil resolves alone (`MultisampleResolve`) while its depth is stored | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal completes such a pass over a 4-sample `Depth32Float_Stencil8` texture with no error, resolves the stencil — the resolve texture reads the cleared 7 — and stores the depth at its clear value in every sample, as the pass that stores both does, the clear depths 0.5 and 0.25 read back apart. The layout pattern an earlier probe reported over the depth did not reproduce in that shape, so the refusal reaches past Metal | 2: `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action)`, `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)` | `-` |
|
|
| `RenderPassProblem::DepthResolvedSampleWithoutDepthResolve` | The stencil resolves with `DepthResolvedSample` without a depth attachment, whose filter picks its sample (measured; with a depth attachment that... | every device (a public call's own check of its arguments) | `unknown`: measured through Metal's validation alone; plain Metal's own answer for a stencil resolve by `DepthResolvedSample` without a depth attachment is unmeasured | 1: `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)` | `-` |
|
|
| `RenderPassProblem::MemorylessResolve` | A memoryless resolve texture (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "resolveTexture must not be Memoryless" | 1: `crates/metal2vulkan-runtime/src/resolve.rs (destination)` | `-` |
|
|
| `RenderPassProblem::TileSize` | A tile size other than 16x16, 32x16 and 32x32, or a tile with one side 0 (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Invalid tile dimensions (8, 8)", for which plain Metal answers its encoder nil | 1: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)` | `-` |
|
|
| `RenderPassProblem::TileSizeAtSamples` | A 32x32 tile at 4 samples (measured | every device (a public call's own check of its arguments) | `metal-measured`: an M4: plain Metal faults there — its command buffer fails, or it makes no encoder — for a 32 by 32 tile at 4 samples | 1: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)` | `-` |
|
|
| `RenderPassProblem::PerSampleStorage` | Per-sample storage, the imageblock sample length rounded up to 8 bytes, past 64 (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Per sample storage (72) cannot be greater than (64)", for which plain Metal answers its encoder nil | 1: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)` | `-` |
|
|
| `RenderPassProblem::ThreadgroupMemoryLength` | A threadgroup memory length past 32768 bytes (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Requested threadgroup memory length exceeds amount supported by device (32768)", for which plain Metal answers its encoder nil | 1: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)` | `-` |
|
|
| `RenderPassProblem::TileMemory` | Tile memory, the per-sample storage of each pixel of a tile plus the threadgroup memory length, past 32768 bytes (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Total allocated tile memory (40960) cannot be greater than (32768)", for which plain Metal answers its encoder nil | 1: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)` | `-` |
|
|
| `RenderPassProblem::RateMapArrayLength` | A `renderTargetArrayLength` past the layer count of a rasterization-rate map whose layers differ (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "renderTargetArrayLength (2) must be <= rasterizationRateMap.layerCount (1)" | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (check_descriptor)` | `-` |
|
|
| `RenderPassProblem::RateMapTargetSize` | A pass without attachments whose render target size is past the rasterization-rate map's screen (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "renderTargetWidth (128) must be <= rasterizationRateMap.screenSize.width (64)" | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (of)` | `-` |
|
|
| `RenderPassProblem::ArrayLengthPastSlices` | The attachment's slice (a cube's face) plus the pass's `renderTargetArrayLength`, 2 or more, lies past its texture's slices | every device (a public call's own check of its arguments) | `metal-takes`: plain Metal takes the input, so the refusal reaches past it, but what it renders is not one answer to match. An Apple M3 Max under macOS 27.0.1, `renderTargetArrayLength` 2 over a 1-slice 2D texture placed in a heap, two instances each writing `[[render_target_array_index]]`, four fresh processes: the pass completed with no error and 8192 fragments every time, and slice 0 read `ff8040ff` twice and `00ff80ff` twice, over 13312, 13312, 13824 and 12288 nonzero bytes of 16384 — three counts from four runs. A 4096-byte guard buffer placed immediately after the texture in the same heap was untouched (all `0xee`) in every run, so nothing is written past the texture. The legal 2-slice array is exact and stable over the same four runs — slice 1 `00ff80ff`, 12288 nonzero bytes each time — as is `renderTargetArrayLength` 1 over one slice. | 2: `crates/metal2vulkan-runtime/src/render_pass.rs (check_planes)`, `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)` | `-` |
|
|
| `RenderPassProblem::SamplePosition` | A sample position whose coordinate lies outside `[0, 1)` (measured | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Provided sample position x-coodinate (1.000000) at index 0 is not within the range [0,1)" | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)` | `-` |
|
|
| `RenderPassProblem::SamplePositionCount` | Sample positions of a count the device takes none at (measured | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "count (1) is not a supported sample count for custom positions" | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)` | `-` |
|
|
| `RenderPassProblem::SamplePositionsSamples` | More sample positions than the pass's samples (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "2 custom sample positions were programmed, but this render pass uses 4 rasterizer sample(s)", and plain Metal ends the process past them | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)` | `-` |
|
|
| `RenderPassProblem::StoreActionOptionsWithoutPositions` | The stencil descriptor's store action options include `CustomSamplePositions` without sample positions (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "includes MTLStoreActionOptionCustomSamplePositions, but no custom sample positions were specified" | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (check_options)` | `-` |
|
|
| `RenderPassProblem::StoreActionOptions` | A stencil attachment's store action options that include `CustomSamplePositions` under a store action that keeps no samples, `DontCare` or... | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "includes MTLStoreActionOptionCustomSamplePositions, which does not apply to the store action" | 1: `crates/metal2vulkan-runtime/src/sample_positions.rs (check_options)` | `-` |
|
|
| `RenderPassProblem::CustomSampleDepthStore` | `CustomSampleDepthStore` as a color or stencil attachment's store action | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "storeAction is not a valid MTLStoreAction", with and without API validation | 3: `crates/metal2vulkan-runtime/src/render.rs (late_store)`, `crates/metal2vulkan-runtime/src/render_pass.rs (layout, 2 sites)` | `-` |
|
|
| `RenderPassProblem::DefaultRasterSampleCount` | A pass without attachments whose `defaultRasterSampleCount`'s low 8 bits are 8 to 15 or 128 to 255, or are 0 in a count of 256 or more | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGABRT and no message, at `renderCommandEncoderWithDescriptor:` of 8, 15, 130 and 256, where 1, 4 and 260 — whose low 8 bits are 4 — make the encoder and run the pass, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/render_pass.rs` | `-` |
|
|
| `DrawProblem::AttachmentFormat` | `set_render_pipeline_state` | every device (a public call's own check of its arguments) | `unknown`: what stays refused is what the Metal probes did not reach: a state color covering part of a pass color or more than one, a mesh render pipeline's state, and a fragment function that fetches a color or declares an imageblock | 2: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`, `crates/metal2vulkan-runtime/src/render.rs (check_tile)` | `-` |
|
|
| `DrawProblem::SampleCount` | `set_render_pipeline_state` | every device (a public call's own check of its arguments) | `unknown`: what stays refused is what the Metal probes did not reach: alpha to coverage, `get_num_samples()`, a mesh render pipeline's state, an imageblock, and a state of one sample in a pass of more, whose coverage rule is unmeasured | 2: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`, `crates/metal2vulkan-runtime/src/render.rs (check_tile)` | `-` |
|
|
| `DrawProblem::ImageblockSampleLength` | `set_render_pipeline_state` | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "the pipelineState's per sample imageBlock usage(32) is greater than the encoder's perSample imageBlock usage(4)" | 2: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`, `crates/metal2vulkan-runtime/src/render.rs (check_tile)` | `-` |
|
|
| `DrawProblem::TileState` | A draw with a tile pipeline's state set (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "renderPipelineState must be created using a MTLRenderPipelineDescriptor." | 2: `crates/metal2vulkan-runtime/src/render.rs (drawn_by)`, `crates/metal2vulkan-runtime/src/render/mesh.rs (mesh_draws_nothing)` | `-` |
|
|
| `DrawProblem::DrawKind` | A draw of patches with a pipeline that is not a tessellation one (measured on an M4 | every device (a public call's own check of its arguments) | `metal-measured`: an M4: plain Metal stops its process over a patch draw with a pipeline that is not a tessellation one, and over a mesh state's draw of primitives or patches, its validation off | 3: `crates/metal2vulkan-runtime/src/render.rs (drawn_by, 2 sites)`, `crates/metal2vulkan-runtime/src/render/mesh.rs (mesh_draws_nothing)` | `-` |
|
|
| `DrawProblem::NoTessellationFactorBuffer` | A patch draw while the encoder has no tessellation factor buffer (measured | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGSEGV, at a quad patch draw with no tessellation factor buffer, where the same draw with one set runs and paints the target, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)` | `-` |
|
|
| `DrawProblem::IndirectBufferRange` | An indirect draw's arguments, read from its offset rounded down to a multiple of 4 as Metal reads them, run past its indirect buffer's length... | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal draws nothing, or draws from whatever memory follows the buffer, rather than refusing — probe cases `ind_offset_past` and `indirect_past_end`: undefined | 1: `crates/metal2vulkan-runtime/src/render.rs (check_arguments)` | `-` |
|
|
| `DrawProblem::NotTileState` | `dispatch_threads_per_tile` with a drawing state set (measured | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "the renderPipelineState was not created with a tileDescriptor" | 1: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` |
|
|
| `DrawProblem::ThreadsPerTilePastTile` | `dispatch_threads_per_tile` with threads per tile wider or taller than the pass's tile (measured | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, probe `refusals_without_a_named_device` shapes `tilec-*` over a 32 by 32 target in 16 by 16 tiles, four fresh processes each with one reading: plain Metal completes the pass with no error, and an atomic visit counter per position per tile counts, for threads per tile of 32 by 1, 17 by 1, 24 by 1, 16 by 32, 32 by 32, 64 by 16, 16 by 64 and 33 by 31, exactly the pixels of the rectangle of that size from each tile's origin cut to the render area -- 96, 66, 80, 1536, 2304, 1536, 1536 and 2256 invocations -- with the overlapped tiles' positions visited 2 and 4 times, and the threads per threadgroup reported as the dispatch's own: so the threads past the tile neither vanish nor clamp onto the tile's own positions; the refusal reaches past Metal, and what Metal runs is more than a dispatch of the tile's threads | 1: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` |
|
|
| `DrawProblem::AmplificationCount` | A draw whose vertex amplification count is above its pipeline state's `maxVertexAmplificationCount` of 1, or above Metal's 8 (Metal's validation... | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal stored garbage in slice 0 for counts 2 and 3 on a pipeline of 1, probe `amp2_pipeline1`, rather than refusing; a count above 8 is unmeasured | 1: `crates/metal2vulkan-runtime/src/amplification.rs (bind_state)` | `-` |
|
|
| `DrawProblem::ViewMappings` | `set_vertex_amplification_count` | every device (a public call's own check of its arguments) | `ours`: this crate's slice of view mappings: Metal's call takes a pointer, and reading the count would pass the memory the caller handed over | 1: `crates/metal2vulkan-runtime/src/amplification.rs (new)` | `-` |
|
|
| `DrawProblem::PatchIndexBufferRange` | A direct patch draw's patch indices run past its patch index buffer | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal reads past the patch index buffer rather than refusing, probe case `pib_short`: undefined | 2: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`, `crates/metal2vulkan-runtime/src/render.rs (check_patch_indices)` | `-` |
|
|
| `DrawProblem::ControlPointIndexBufferRange` | A direct indexed patch draw's control-point indices run past its control-point index buffer | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal reads past the control-point index buffer rather than refusing, probe cases `cpi_short` and `cpi_start1_count2`: undefined | 1: `crates/metal2vulkan-runtime/src/render.rs (check_control_point_indices)` | `-` |
|
|
| `DrawProblem::IndexBufferRange` | An indirect render command's indexed draw whose `count` indices from `offset` (rounded down to a multiple of the index size, as Metal reads it)... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, probe `refusals_without_a_named_device` shape `idxc-past`, four fresh processes with one reading: plain Metal completes an indirect indexed draw of 12 indices from byte 480 of a 512-byte index buffer, with no error, and its vertex function is given the eight indices inside the buffer and then the four words that follow it in the heap, each of which holds its own word number -- so the fetch read the following memory by name, where the same draw made directly on the encoder was given index 0 at those four positions, `idxv-past` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives_in)` | `-` |
|
|
| `RenderStateProblem::Count` | A count of viewports outside 1 to 16, or of no scissor rectangle (more than 16 scissor rectangles are taken, as plain Metal takes them) | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a viewport count outside 1 to 16, and for no scissor rectangle, is unmeasured; the more than 16 scissor rectangles it takes are not refused | 2: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)` | `-` |
|
|
| `RenderStateProblem::ViewportNotFinite` | A viewport field that is NaN or infinite, but for a NaN origin x, which draws nothing, as plain Metal's | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a viewport field that is NaN or infinite is measured only for a NaN origin x, which draws nothing and is not refused | 1: `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)` | `-` |
|
|
| `VisibilityProblem::NoBuffer` | The pass has no visibility result buffer | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's process ends, SIGSEGV, at `setVisibilityResultMode:offset:` in a pass with no visibility result buffer | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
|
|
| `VisibilityProblem::OffsetOutOfRange` | An offset whose 8 bytes run past the buffer's `length` | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal takes `setVisibilityResultMode:Boolean offset:64` on an 8-byte buffer and the pass ends, its validation alone saying "offset(64) + result-size(8) must be <= `[visibilityResultBuffer length](8)`" | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
|
|
| `VisibilityProblem::OffsetReused` | An offset the encoder took before in the other mode ("using the same offset | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "using the same offset ... twice in the same command encoder is not allowed" | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
|
|
| `HeapProblem::Size` | A heap of size 0 | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal answers nil for a heap of size 0 | 3: `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`, `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)` (+1) | `-` |
|
|
| `HeapProblem::HeapType` | The call places resources in heaps of the other type | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal answers nil for `newBufferWithLength:options:` on a placement heap, where an automatic heap's is made | 2: `crates/metal2vulkan-runtime/src/heap.rs (check_type)`, `crates/metal2vulkan-runtime/src/texture.rs (new_texture)` | `-` |
|
|
| `HeapProblem::Offset` | A placement offset that is not a multiple of the resource's alignment, 256 bytes for a buffer and `Device::heap_texture_size_and_align`'s for a... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a buffer at offset 255 and for a 64 by 64 texture at offset 129, where offset 256 and the texture's own alignment of 128 make them | 2: `crates/metal2vulkan-runtime/src/heap.rs (new_buffer_at_offset)`, `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_offset)` | `-` |
|
|
| `HeapProblem::PastEnd` | A resource whose `length` bytes from `offset` run past its heap's end, of `heap_size` bytes | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a 4096-byte buffer at offset 1,047,552 and for a texture at offset 1,048,448, and an automatic heap of 1 MiB for a buffer of 4 MiB, where each resource inside the heap is made | 1: `crates/metal2vulkan-runtime/src/heap.rs (past_end)` | `-` |
|
|
| `HeapProblem::StorageMode` | A resource's storage mode other than its heap's (Metal ends the process) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "The requested storage mode (MTLStorageModeShared) is not compatible with the heap's mode (MTLStorageModePrivate)" | 2: `crates/metal2vulkan-runtime/src/heap.rs (placed_options)`, `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)` | `-` |
|
|
| `HeapProblem::CpuCacheMode` | A resource's CPU cache mode other than its heap's (Metal ends the process) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "The requested CPU cache mode (MTLCPUCacheModeWriteCombined) does not match the heap's mode (MTLCPUCacheModeDefaultCache)" | 1: `crates/metal2vulkan-runtime/src/heap.rs (placed_options)` | `-` |
|
|
| `HeapProblem::Alignment` | An alignment other than 0 that is not a power of two (`max_available_size`; Metal ends the process) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts `!(alignment & (alignment - 1))` in `-[IOGPUMetalHeap maxAvailableSizeWithAlignment:]`, where 256 answers | 1: `crates/metal2vulkan-runtime/src/heap.rs (max_available_size)` | `-` |
|
|
| `HeapProblem::HostMemoryAlignment` | A no-copy heap's memory that does not start at a multiple of `alignment`, the larger of the host page and the device's... | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal makes no heap over the caller's memory, so where its offsets begin is this crate's own contract | 2: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`, `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)` | `-` |
|
|
| `FunctionTableProblem::HandleOfAnotherState` | `set_function` with a handle of another pipeline state than the table's (Metal's validation | every device (a public call's own check of its arguments) | `unknown`: Metal's validation stops the handle, and plain Metal's own answer was not measured | 1: `crates/metal2vulkan-runtime/src/function_table.rs (set)` | `-` |
|
|
| `FunctionTableProblem::TableAtBufferIndex` | A command whose function writes a buffer, or reads an intersection function table, at `index`, where a visible-function table is bound | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer was not measured, and ray tracing's tables are out of scope | 1: `crates/metal2vulkan-runtime/src/argument_table.rs (check_function_tables)` | `-` |
|
|
| `FunctionTableProblem::StageWithoutFunction` | A render pipeline state's `function_handle` or `new_visible_function_table` for `stage`, which is not one stage | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal answers the handle nil and the table of more than one stage nil, and faults on a table of no stage | 1: `crates/metal2vulkan-runtime/src/function_table.rs (not_one_stage)` | `-` |
|
|
| `IndirectCommandBufferProblem::NoCommandTypes` | A call on a buffer of no command types that plain Metal's process does not survive | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, build 26A434, the validation layer off, one shape per process, three processes a shape, each beside the same call on a buffer of the matching command type, `probes/icb_refusals_that_metal_takes.m`. Plain Metal ends the process — SIGBUS, SIGSEGV in some processes of the same shape — at `setRenderPipelineState:`, `setVertexBuffer:offset:atIndex:`, `drawPrimitives:`, `drawIndexedPrimitives:`, `setComputePipelineState:`, `concurrentDispatchThreadgroups:`, `concurrentDispatchThreads:`, a compute command's `reset`, and `resetWithRange:` of a non-empty range, where the buffer of the matching type takes each. It **takes**, and the runtime takes with it, `indirectRenderCommandAtIndex:` and `indirectComputeCommandAtIndex:` — an object, not nil — a render command's `reset`, `setFragmentBuffer:`, `setBarrier` and `clearBarrier`, `setKernelBuffer:` plain and with an attribute stride, `setThreadgroupMemoryLength:atIndex:`, `setStageInRegion:`, `setImageblockWidth:height:`, `resetWithRange:` of an empty range, the execution in a pass which paints nothing, `optimizeIndirectCommandBuffer:`, the blit copy in either direction, and the argument-buffer encoding, whose word is the buffer's own place among the device's indirect command buffers, assigned in creation order and decided by no command type: two buffers encoded side by side take two different IDs whichever types they hold, and the earlier reading that a buffer of no types encodes a `Draw` buffer's bytes held only because each shape made one buffer in its own process. The runtime takes both of those calls: the encoding writes that ID, and the copy beside a buffer of a disagreeing type completes and moves nothing, which is what Metal moves in the one direction a public call can read. The read-back is a runtime extension and has no Metal call to measure | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_command_types)` | `-` |
|
|
| `IndirectCommandBufferProblem::Range` | A range of commands not inside the buffer | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a reset or read-back range that is not inside the buffer is unmeasured | 2: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_range)`, `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (inside)` | `-` |
|
|
| `IndirectCommandBufferProblem::InheritedPipelineState` | A pipeline state set on a command of a buffer that inherits it (this ends Metal's process) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGBUS, at `setRenderPipelineState:` on a command of a buffer whose `inheritPipelineState` is set, where the same setter on a buffer that does not inherit it runs the draw | 2: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in, 2 sites)` | `-` |
|
|
| `IndirectCommandBufferProblem::PipelineWithoutSupport` | A pipeline state made without `supportIndirectCommandBuffers`, set on a command | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, build 26A434, the validation layer off, one shape per process, three processes a shape, `probes/icb_refusals_that_metal_takes.m`. The two kinds do not answer alike. `setComputePipelineState:` with a state made without the flag ends the process, SIGSEGV, where the same call with the flag set dispatches and the kernel's marker words read back: that arm is a refusal of Metal's own. `setRenderPipelineState:` and `drawPrimitives:` both return, and the command buffer then fails at execution with status 5 and `Caused GPU Address Fault Error 0000000b:kIOGPUCommandBufferCallbackErrorPageFault`, leaving the target at its clear value, where the same pipeline with the flag set paints; a plainly valid command buffer submitted after the fault completes and paints, so the fault does not poison the queue. That arm stands on undefined behaviour — a GPU address fault is not an answer — and so reaches past Metal, and the refusal is kept there deliberately: a typed `Invalid` at the setter is the useful answer where Metal's own is a page fault at execution | 3: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in, 3 sites)` | `-` |
|
|
| `IndirectCommandBufferProblem::CommandType` | A draw of a kind (`DRAW_PATCHES`, `DRAW_INDEXED_PATCHES`, a mesh kind, or `DRAW` and `DRAW_INDEXED` on a buffer of mesh draws, a probe) whose... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, build 26A434, the validation layer off, one shape per process, `probes/icb_refusals_that_metal_takes.m`. Plain Metal ends the process, SIGBUS, at a patch draw on a buffer of `DRAW` alone, at a mesh pipeline's `setRenderPipelineState:` on such a buffer, and at a draw of primitives on a buffer of `DRAW_MESH_THREADGROUPS` alone, three processes each | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_draw)` | `-` |
|
|
| `IndirectCommandBufferProblem::CommandKind` | A compute command of a buffer whose commands are render ones, or a setter plain Metal does not ignore on a render command of a buffer whose... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's process ends — SIGBUS, SIGBUS and SIGSEGV — at `indirectComputeCommandAtIndex:` on a buffer of draws and at a render command's setters and reset on one of dispatches, the API validation layer off | 8: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (buffer_in)`, `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_draw)` (+6) | `-` |
|
|
| `IndirectCommandBufferProblem::RenderState` | A render state set on a render command (`set_depth_stencil_state`, `set_depth_bias`, `set_depth_clip_mode`, `set_cull_mode`,... | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal raises `APINotSupported` at each setter and its process ends, whether the buffer inherits the state or not | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (render_state)` | `-` |
|
|
| `IndirectCommandBufferProblem::ObjectThreadgroupMemory` | An object threadgroup length set on a render command of a buffer whose command types hold no mesh draw (`set_object_threadgroup_memory_length`) | every device (a public call's own check of its arguments) | `metal-measured`: an M4: Metal's process ends at `set_object_threadgroup_memory_length` on a buffer of no mesh draw, with and without its validation | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (set_object_threadgroup_memory_length)` | `-` |
|
|
| `IndirectCommandBufferProblem::PipelineKind` | A render pipeline state set on a command of a buffer whose command types hold no draw of its kind (`set_render_pipeline_state`) | every device (a public call's own check of its arguments) | `metal-measured`: an M4: Metal's process ends in `set_render_pipeline_state` on a buffer of no draw of the state's kind, with and without its validation | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in)` | `-` |
|
|
| `RateMapProblem::ScreenSize` | A screen width or height past 32768 | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a screen side past 32768 is unmeasured; the side of 0 its validation stops is compiled by plain Metal and is not refused | 1: `crates/metal2vulkan-runtime/src/rate_map.rs (validate)` | `-` |
|
|
| `RateMapProblem::LayerCount` | A layer count past 2 ("layerCount (3) must be >0 and <=2") | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's process ends, SIGBUS, at `newRasterizationRateMapWithDescriptor:` of 3 and of 4 layers, where 1 and 2 make the map | 2: `crates/metal2vulkan-runtime/src/rate_map.rs (reset)`, `crates/metal2vulkan-runtime/src/rate_map.rs (validate)` | `-` |
|
|
| `RateMapProblem::NoLayers` | A coordinate map of a map of no layers, which ends Metal's process | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's process ends, SIGSEGV, at a coordinate map of a map of no layers, which it makes | 2: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates)`, `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates)` | `-` |
|
|
| `RateMapProblem::EmptyScreen` | `mapScreenToPhysicalCoordinates:forLayer:` of a map with a screen width or height of 0, which ends Metal's process... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGSEGV, at `mapScreenToPhysicalCoordinates:forLayer:` of a map of a 64 by 0 screen, where `mapPhysicalToScreenCoordinates:forLayer:` of that same map answers | 1: `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates)` | `-` |
|
|
| `RateMapProblem::NotCompiled` | `mapPhysicalToScreenCoordinates:forLayer:` of a mutable map not yet reset, which ends Metal's process | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGSEGV, at `mapPhysicalToScreenCoordinates:forLayer:` of a map of a `Mutable` descriptor not yet reset, where `mapScreenToPhysicalCoordinates:forLayer:` of that same map answers (0, 0) | 1: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates)` | `-` |
|
|
| `ArgumentEncoderProblem::Layout` | The layout cannot be made | every device (a public call's own check of its arguments) | `unknown`: the layout's own refusals carry their reasons in `bind::ArgumentLayoutError`, which this column does not read, so Metal's answer for each is not settled here | 1: `crates/metal2vulkan-runtime/src/argument_encoder.rs (layout_error)` | `-` |
|
|
| `ArgumentEncoderProblem::NoNestedArgumentBuffer` | `new_argument_encoder_for_buffer_at_index` | every device (a public call's own check of its arguments) | `metal-documented`: Metal's validation says "No argument buffer at that index", for which it answers nil | 1: `crates/metal2vulkan-runtime/src/argument_encoder.rs (new_argument_encoder_for_buffer_at_index)` | `-` |
|
|
| `ArgumentEncoderProblem::NoArgumentBuffer` | A setter or `constant_data` with no argument buffer set ("No argument buffer is set") | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's process ends, SIGSEGV, at a setter with no argument buffer set, where `constantDataAtIndex:` answers a null pointer | 1: `crates/metal2vulkan-runtime/src/argument_encoder.rs (mapped)` | `-` |
|
|
| `ArgumentEncoderProblem::NoArgument` | No argument of the layout has `index` ("Index 15 does not correspond to any valid member of the argument buffer", "index (1000) is outside of the... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal takes `setBuffer:offset:atIndex:15` on a layout holding index 0 alone, writes nothing and returns, its validation alone saying "index (15) is outside of the valid index range `[0, 0]`" | 2: `crates/metal2vulkan-runtime/src/argument_encoder.rs (argument_place)`, `crates/metal2vulkan-runtime/src/argument_encoder.rs (write)` | `-` |
|
|
| `ArgumentEncoderProblem::ArgumentType` | The argument at `index` is of type `found`, the call writes `expected` | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal takes `setTexture:atIndex:0` where the layout says a pointer, and returns | 1: `crates/metal2vulkan-runtime/src/argument_encoder.rs (argument_place)` | `-` |
|
|
| `SparseProblem::TextureType` | A texture type a sparse heap makes no texture of | every device (a public call's own check of its arguments) | `unknown`: plain Metal's nil for a 1D, 1D array or buffer texture of a sparse heap is not on record with a device or release | 1: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)` | `-` |
|
|
| `SparseProblem::DualPlane` | A dual-plane format (depth and stencil), which validation stops | every device (a public call's own check of its arguments) | `unknown`: Metal's validation stops it, and what mapping its stencil does without validation is not measured | 1: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)` | `-` |
|
|
| `SparseProblem::NotSparse` | A move between a sparse texture and one that is not (not measured; a mapping update of a texture that is not sparse, and a move between two such,... | every device (a public call's own check of its arguments) | `unknown`: a move between a sparse texture and one that is not is not measured | 1: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (move_texture_mappings)` | `-` |
|
|
| `SparseProblem::Lengths` | Lists of regions, levels and slices of unequal lengths (`update_texture_mappings`) | every device (a public call's own check of its arguments) | `ours`: this crate's paired lists: Metal's call states one `numRegions`, so no Metal call reaches this | 1: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mappings)` | `-` |
|
|
| `SparseProblem::IndirectArguments` | An indirect update's count, `bytes` of it at `offset`, past the buffer's `length`, where it is encoded | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for an indirect mapping update whose arguments run past the buffer is unmeasured | 1: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mapping_indirect)` | `-` |
|
|
| `WrappedBufferProblem::NullBuffer` | A null buffer handle | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::NullMemory` | A null memory handle | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::Size` | The buffer is smaller than the length padded to 16 bytes, which a binding of the buffer may reach | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::Usage` | The buffer lacks usages the runtime's own buffers have ([`Device::vk_buffer_usage`]) | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::Sparse` | A sparse buffer, which has no one memory binding | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::Protected` | A protected buffer | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::QueueFamily` | A buffer not shared with every queue family of the device | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::MemoryType` | A memory type the device does not have, or, for `Shared` storage, one that is not host-visible and coherent | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `WrappedBufferProblem::Contents` | `Shared` storage without the host address of the bytes, or `Private` storage with one | every device (a public call's own check of its arguments) | `ours`: from `Problem::WrappedBuffer` | 1: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)` | `-` |
|
|
| `RequiredThreadsProblem::EmptyAxis` | A size with an axis of 0, though not every axis (all three 0 is no requirement) | every device (a public call's own check of its arguments) | `metal-documented`: Metal's creation fails "must not be 0", with or without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)` | `-` |
|
|
| `RequiredThreadsProblem::OverDeviceLimit` | A size of more threads than the device's limit (its `maxTotalThreadsPerThreadgroup` answer) | every device (a public call's own check of its arguments) | `metal-documented`: Metal's creation fails "must be <= 1024 (device limit)", with or without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)` | `-` |
|
|
| `RequiredThreadsProblem::OverMaxTotal` | A size of more threads than the descriptor's `maxTotalThreadsPerThreadgroup` | every device (a public call's own check of its arguments) | `metal-documented`: Metal's creation fails "must be <= maxTotalThreadsPerThreadgroup (32)", with or without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)` | `-` |
|
|
| `RequiredThreadsProblem::MaxTotalDiffers` | A descriptor's `maxTotalThreadsPerThreadgroup` above the size's threads | every device (a public call's own check of its arguments) | `metal-documented`: Metal's creation fails "Kernel specified max total threads per threadgroup (64) must match compute pipeline specified max total threads per threadgroup (256)", with or without API validation | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)` | `-` |
|
|
| `RequiredThreadsProblem::OverKernelMax` | A compute state's size of more threads than its kernel's own `[[max_total_threads_per_threadgroup(n)]]` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's creation fails on a first compile of the kernel, twice over, `compute_pipeline_limits.m` with a salt | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel_maximum)` | `-` |
|
|
| `BinaryFunctionProblem::NotSupported` | Functions added to any stage of a mesh state, whose descriptor has no support flag | every device (a public call's own check of its arguments) | `metal-measured`: an M4, macOS 27.0.1: plain Metal's process ends at the call for a mesh state — cases `mesh_frag_two`, `mesh_frag_one_add_two`, `mesh_vertex_add` and `mesh_tile_add` | 2: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added)`, `crates/metal2vulkan-runtime/src/pipeline/additions.rs (new_compute_pipeline_state_with_additional_binary_functions)` | `-` |
|
|
| `BinaryFunctionProblem::NotPrecompiled` | A function not compiled to a binary in a stage's `binary_functions` or among the functions added to a stage of a made state, which plain Metal's... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's creation fails with code 2, an addition's with code 1, `binary_function_linking.m` | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (not_precompiled)` | `-` |
|
|
| `BinaryFunctionProblem::ObjectOrMeshStage` | Binary functions in a mesh render pipeline's object or mesh stage (the `binary_functions` of its function's linked functions, Metal's... | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's process ends at the creation, `binary_function_linking.m` | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_mesh)` | `-` |
|
|
| `BinaryFunctionProblem::CompiledStage` | Functions added to a stage the compile layer already compiled (`StageSource::Compiled`), whose linked functions are fixed | every device (a public call's own check of its arguments) | `ours`: this crate's already-compiled stage: Metal's descriptor takes a function, so it has no such call | 1: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added)` | `-` |
|
|
| `RebindProblem::NotHostMemory` | The buffer is not a no-copy buffer of its own (a buffer of the runtime's memory, one over the caller's `VkBuffer`, or a heap's buffer, whose heap... | every device (a public call's own check of its arguments) | `ours`: from `Problem::Rebind` | 4: `crates/metal2vulkan-runtime/src/detach.rs (detach_backing, 2 sites)`, `crates/metal2vulkan-runtime/src/rebind.rs (rebind_bytes_no_copy, 2 sites)` | `-` |
|
|
| `RebindProblem::EncodedUses` | A command buffer that is not yet committed has encoded a use of the buffer or heap, or of a resource placed in it, or has an encoder open that... | every device (a public call's own check of its arguments) | `ours`: from `Problem::Rebind` | 1: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)` | `-` |
|
|
|
|
## 10. Devices below the new runtime's floor (`floor::BelowFloor`: each `floor::Missing`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `Version` | The device's Vulkan version (`apiVersion`) is below 1.3 | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (decide)` | `-` |
|
|
| `Extension` | A device extension | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (decide)` | `-` |
|
|
| `Feature` | A feature | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (decide)` | `-` |
|
|
| `Limit` | A limit below what the runtime uses | devices below the floor, at device creation | `device` | 2: `crates/metal2vulkan-rt/src/floor.rs (decide, 2 sites)` | `-` |
|
|
| `QueueFamily` | A queue family with both `VK_QUEUE_GRAPHICS_BIT` and `VK_QUEUE_COMPUTE_BIT` | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (decide)` | `-` |
|
|
| `MemoryType` | A memory type with these property flags, as Vulkan names them, for buffers of every usage the runtime gives them | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (choose)` | `-` |
|
|
| `TimeDomain` | A time domain of [`TIME_DOMAINS`] the device does not calibrate (`vkGetPhysicalDeviceCalibrateableTimeDomainsEXT`), as Vulkan names it | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/floor.rs (decide)` | `-` |
|
|
| `SetLayout` | The layout of one of the runtime's descriptor sets, `set` 0 (empty) or 1 (the texture and sampler arrays), which `vkGetDescriptorSetLayoutSupport`... | devices below the floor, at device creation | `device` | 1: `crates/metal2vulkan-rt/src/arrays.rs (supported)` | `-` |
|
|
|
|
## 11. The new runtime's `Refusal` (`Error::Refused(Refusal)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `EmptyBuffer` | A buffer of no bytes (`Device::new_buffer` with a length of 0) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: newBufferWithLength:0 answers nil | 2: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`, `crates/metal2vulkan-rt/src/buffer.rs (placed_buffer)` | `-` |
|
|
| `BufferTooLong` | A buffer longer than `MAX_BUFFER_LENGTH` (`Device::new_buffer`) | every device (a public call's own check of its arguments) | `ours`: this crate's cap: a buffer's every byte lies within 2^31 bytes of each bind address in it | 2: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`, `crates/metal2vulkan-rt/src/buffer.rs (placed_buffer)` | `-` |
|
|
| `BufferPastBlock` | A buffer whose range leaves its block (`Device::new_buffer`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a 4096-byte buffer at offset 1,047,552 | 1: `crates/metal2vulkan-rt/src/buffer.rs (placed)` | `-` |
|
|
| `HeapBufferPlace` | A heap buffer whose range leaves its heap (`Device::new_heap_buffer`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: a placement heap of 1 MiB answers nil for a 4096-byte buffer at offset 1,047,552 | 1: `crates/metal2vulkan-rt/src/buffer.rs (new_heap_buffer)` | `-` |
|
|
| `ManagedBlockNotShared` | A Managed buffer whose bytes are in a block the host does not map, a Private block (`Device::new_managed_buffer`) | every device (a public call's own check of its arguments) | `ours`: a Managed buffer's bytes are the consumer's, which the host reaches through the block's mapping; a Private block has none | 1: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)` | `-` |
|
|
| `ManagedCopyMissing` | A Managed buffer given no place for its device copy on a device that keeps one, where `Device::has_unified_memory` is false... | every device (a public call's own check of its arguments) | `ours`: Metal keeps a Managed buffer's second copy on a Mac with a discrete GPU; the consumer places it, as it places every buffer | 1: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)` | `-` |
|
|
| `ManagedCopyOnUnified` | A Managed buffer given a place for a device copy on a device that keeps none, where `Device::has_unified_memory` is true... | every device (a public call's own check of its arguments) | `ours`: on unified memory a Managed buffer is its bytes, as Metal keeps one copy of a Managed buffer on Apple silicon | 1: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)` | `-` |
|
|
| `ManagedCopyNotPrivate` | A Managed buffer whose device copy is placed in a block that is not Private (`Device::new_managed_buffer`) | every device (a public call's own check of its arguments) | `ours`: shaders reach the device copy in Private memory, device-local where it has room, as a discrete GPU's Metal keeps the copy in its own memory | 1: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)` | `-` |
|
|
| `ZeroRangePastBlock` | A zero fill whose range leaves its block (`Device::zero_block_range`), as a buffer placed there would | every device (a public call's own check of its arguments) | `ours`: the fill stands for the zeroed contents of a buffer placed in the range, and Metal answers nil for a buffer placed past the end of its heap | 1: `crates/metal2vulkan-rt/src/buffer.rs (zero_block_range)` | `-` |
|
|
| `ZeroRangeShared` | A zero fill of a Shared block (`Device::zero_block_range`) | every device (a public call's own check of its arguments) | `ours`: the host maps a Shared block, and its bytes are zeroed through the mapping, as a zeroed Shared buffer's are; the fill is for the memory the host does not map | 1: `crates/metal2vulkan-rt/src/buffer.rs (zero_block_range)` | `-` |
|
|
| `NotExported` | An acquire of another API's writes into a block that is not exported (`Block::external_writes_done`), or a release to another API of a buffer... | every device (a public call's own check of its arguments) | `ours`: only an exported block's memory is another API's to write or read | 2: `crates/metal2vulkan-rt/src/blit.rs (release_to_external)`, `crates/metal2vulkan-rt/src/export.rs (external_writes_done)` | `-` |
|
|
| `SurfacePlanes` | A surface (`Device::new_exported_surface`) of no plane or of more than four, or whose pitch or start multiple is 0, or whose multiples and texels... | every device (a public call's own check of its arguments) | `ours`: a DRM format has at most four memory planes, and a layout needs a nonzero multiple | 2: `crates/metal2vulkan-rt/src/surface.rs (new_exported_surface, 2 sites)` | `-` |
|
|
| `ModifiedRange` | A changed range that leaves its buffer (`Buffer::did_modify_range`) | every device (a public call's own check of its arguments) | `ours`: the copy of such a range would write past the buffer's device copy | 1: `crates/metal2vulkan-rt/src/buffer.rs (did_modify_range)` | `-` |
|
|
| `Committed` | A call on a command buffer already committed | every device (a public call's own check of its arguments) | `metal-documented`: Metal's validation asserts "commit an already committed command buffer", "Completed handler provided after commit call" and "Scheduled handler provided after commit call" | 1: `crates/metal2vulkan-rt/src/command.rs (open)` | `-` |
|
|
| `InScheduledHandler` | A call a scheduled handler may not make (`CommandBuffer::add_scheduled_handler`) | every device (a public call's own check of its arguments) | `ours`: the consumer's scheduled handlers run on the submit thread, and the one consumer's make none of these calls; a guest's scheduled handler runs in the guest | 1: `crates/metal2vulkan-rt/src/command.rs (not_in_scheduled_handler)` | `-` |
|
|
| `WaitOnOwnThread` | A wait, in a handler or a listener, for what the runtime thread that runs it would have to do first, so it would never end | every device (a public call's own check of its arguments) | `ours`: no wait of the runtime's hangs by construction | 4: `crates/metal2vulkan-rt/src/command.rs (wait_until_completed)`, `crates/metal2vulkan-rt/src/command.rs (wait_until_scheduled)` (+2) | `-` |
|
|
| `OtherDevice` | An event, a buffer, a texture or a pipeline state of another device in an encode call (`CommandBuffer::encode_wait_for_event`,... | every device (a public call's own check of its arguments) | `ours`: an event's semaphore, a buffer's block, a texture's image, a pipeline and a block belong to the `VkDevice` that made them | 29: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`, `crates/metal2vulkan-rt/src/blit.rs (copy_from_buffer_to_buffer)` (+25) | `-` |
|
|
| `NoCommandBuffers` | A queue that may hold no command buffer (`Device::new_command_queue` with a count of 0) | every device (a public call's own check of its arguments) | `ours`: its first `commandBuffer` call would wait forever | 1: `crates/metal2vulkan-rt/src/queue.rs (new_command_queue)` | `-` |
|
|
| `EncoderOpen` | A second encoder, an encode call, or a commit or enqueue, while an encoder of the command buffer is open | every device (a public call's own check of its arguments) | `metal-documented`: a command buffer has one active encoder at a time, ended by `endEncoding` before another is made or the command buffer is committed | 1: `crates/metal2vulkan-rt/src/command.rs (open)` | `-` |
|
|
| `NoPipeline` | A dispatch or a draw with no pipeline state set | every device (a public call's own check of its arguments) | `metal-documented`: a compute dispatch needs a compute pipeline state set first, and a draw a render pipeline state | 3: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`, `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` (+1) | `-` |
|
|
| `PatchDraw` | A draw of patches with a render pipeline state whose vertex function is not a post-tessellation one, or a draw of primitives with one whose vertex... | every device (a public call's own check of its arguments) | `metal-measured`: an M4: plain Metal stops its process over a patch draw with a pipeline that is not a tessellation one, its validation off; Metal's validation stops a draw of primitives with a tessellation pipeline | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` | `-` |
|
|
| `NoTessellationFactorBuffer` | A draw of patches while the encoder has no tessellation factor buffer (`setTessellationFactorBuffer:offset:instanceStride:`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal ends the process, SIGSEGV, at a quad patch draw with no tessellation factor buffer, where the same draw with one set runs and paints the target, the API validation layer off | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` | `-` |
|
|
| `BufferIndex` | A buffer argument index past Metal's 31 entries (`setBuffer`, `setBytes`, `setBufferOffset`, `setThreadgroupMemoryLength`) | every device (a public call's own check of its arguments) | `metal-documented`: the buffer argument table has 31 entries per stage | 2: `crates/metal2vulkan-rt/src/encoder.rs (slot)`, `crates/metal2vulkan-rt/src/render_encoder.rs (slot)` | `-` |
|
|
| `TextureArgumentIndex` | A texture argument index past Metal's 128 entries (`setTexture`) | every device (a public call's own check of its arguments) | `metal-documented`: the texture argument table has 128 entries per stage on Apple GPUs | 2: `crates/metal2vulkan-rt/src/encoder.rs (set_texture)`, `crates/metal2vulkan-rt/src/render_encoder.rs (set_texture)` | `-` |
|
|
| `SamplerArgumentIndex` | A sampler argument index past Metal's 16 entries (`setSamplerState`) | every device (a public call's own check of its arguments) | `metal-documented`: the sampler argument table has 16 entries per stage | 2: `crates/metal2vulkan-rt/src/encoder.rs (set_sampler_state)`, `crates/metal2vulkan-rt/src/render_encoder.rs (set_sampler_state)` | `-` |
|
|
| `SamplerIds` | A consumer's answer to `Device::new_compute_pipeline_state`'s numbered samplers with another count of indices | every device (a public call's own check of its arguments) | `ours`: each numbered sampler takes one index | 1: `crates/metal2vulkan-rt/src/pipeline.rs (number_samplers)` | `-` |
|
|
| `NoBufferAtIndex` | `setBufferOffset` at an index where no buffer is bound, or a draw whose vertex descriptor reads a vertex buffer index where none is bound | every device (a public call's own check of its arguments) | `ours`: there is no buffer whose offset to change, and none whose vertices the draw reads; Metal's validation stops such a draw | 3: `crates/metal2vulkan-rt/src/encoder.rs (set_buffer_offset)`, `crates/metal2vulkan-rt/src/render_encoder.rs (find)` (+1) | `-` |
|
|
| `ThreadgroupSize` | A threadgroup of no threads, or of more than Metal's `maxTotalThreadsPerThreadgroup` for the kernel (a required size's threads, where the... | every device (a public call's own check of its arguments) | `metal-documented`: a threadgroup's threads total at most the state's `maxTotalThreadsPerThreadgroup` | 2: `crates/metal2vulkan-rt/src/encoder.rs (dispatch, 2 sites)` | `-` |
|
|
| `IndirectOffset` | An indirect dispatch's argument offset that is not a multiple of 4, or that leaves fewer than 12 bytes (three 32-bit counts) in the buffer | every device (a public call's own check of its arguments) | `ours`: `vkCmdDispatchIndirect` reads three 32-bit counts at a 4-byte aligned offset inside the buffer | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)` | `-` |
|
|
| `BufferOffsetAlignment` | A dispatch whose kernel, or a draw whose vertex or fragment function, reaches a buffer bound where its address, the buffer's `gpuAddress` plus the... | every device (a public call's own check of its arguments) | `metal-documented`: Metal's API validation refuses the bind offset: "must be a multiple of 4 but was set to 2" for a `uint *` argument bound at offset 2, an Apple M3 Max, macOS 27.0.1, `probes/vector_access_placement.m` in the conformance crate | 1: `crates/metal2vulkan-rt/src/encoder.rs (check_alignment)` | `-` |
|
|
| `IndicesGranted` | A grant of an index already granted (`Device::grant_indices`) | every device (a public call's own check of its arguments) | `ours`: each index has one grant, so each resource ID names one object | 1: `crates/metal2vulkan-rt/src/arrays.rs (grant)` | `-` |
|
|
| `IndicesNotGranted` | A texture, a sampler state or a pipeline state's constexpr sampler at an index no live grant of its class holds (`Device::new_texture`,... | every device (a public call's own check of its arguments) | `ours`: an object takes an index the consumer was granted, and a grant is returned once | 2: `crates/metal2vulkan-rt/src/arrays.rs (place)`, `crates/metal2vulkan-rt/src/arrays.rs (release)` | `-` |
|
|
| `IndicesInUse` | A release of a grant while a texture, a sampler state or a constexpr sampler holds one of its indices (`Device::release_indices`) | every device (a public call's own check of its arguments) | `ours`: an object's index stays granted while the object holds it | 1: `crates/metal2vulkan-rt/src/arrays.rs (release)` | `-` |
|
|
| `TextureIndex` | A texture whose usage shaders reach (read or write) made without an index, or one of no such usage made with one (`Device::new_texture`) | every device (a public call's own check of its arguments) | `ours`: an index is an element of set 1's texture arrays, which only shaders read | 4: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)`, `crates/metal2vulkan-rt/src/texture.rs (surface_texture)` (+2) | `-` |
|
|
| `TextureZeroExtent` | A texture with a width, height or depth of 0 | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has width of zero", and the same for a height of zero | 1: `crates/metal2vulkan-rt/src/texture.rs (shape)` | `-` |
|
|
| `TextureExtentForType` | A texture with a height other than 1 of a 1D type, or a depth other than 1 of a type that is not 3D | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "the texture type MTLTextureType1D requires that height is 1", and the same for a 2D texture of depth 2 | 1: `crates/metal2vulkan-rt/src/texture.rs (shape)` | `-` |
|
|
| `TextureCubeNotSquare` | A cube texture whose width and height differ | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor width must equal height for cube textures" | 1: `crates/metal2vulkan-rt/src/texture.rs (shape)` | `-` |
|
|
| `TextureArrayLength` | A texture with an array length of 0, or other than 1 of a type that is not an array | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has arrayLength of zero", where an array length of 2 is made | 2: `crates/metal2vulkan-rt/src/texture.rs (shape, 2 sites)` | `-` |
|
|
| `TextureLevelCount` | A texture with a mipmap level count of 0, more than its full chain's, or more than 1 of a multisample or 1D type | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "requests 5 mipmap levels, but the dimensions (8, 8, 1) can only support a maxiumum of 4 levels", and the same for 0 | 1: `crates/metal2vulkan-rt/src/texture.rs (shape)` | `-` |
|
|
| `TextureSampleCount` | A texture with a sample count of 0, or other than 1 of a type that is not multisample | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "has sampleCount set but is using a type that does not allow sampleCount" for 0 and for 2 of a 2D texture | 1: `crates/metal2vulkan-rt/src/texture.rs (shape)` | `-` |
|
|
| `TextureSwizzleWithWrites` | A texture with a swizzle other than each channel from itself and shader-write or render-target usage | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "Texture swizzling is not compatable with MTLTextureUsageShaderWrite", where a swizzle of read usage alone is made | 1: `crates/metal2vulkan-rt/src/texture.rs (own_checks)` | `-` |
|
|
| `TextureBytesPrivate` | `Texture::replace_region` or `Texture::get_bytes` of a Private or Memoryless texture | every device (a public call's own check of its arguments) | `metal-documented`: Apple's documentation of `MTLStorageModePrivate`: "The resource is accessible only to the GPU." | 1: `crates/metal2vulkan-rt/src/texture.rs (copy)` | `-` |
|
|
| `TextureRegion` | `Texture::replace_region`, `Texture::get_bytes` or a blit copy (`BlitCommandEncoder::copy_from_texture`) of a level or slice past the texture's,... | every device (a public call's own check of its arguments) | `ours`: no texel of the texture is there to copy | 1: `crates/metal2vulkan-rt/src/texture.rs (place)` | `-` |
|
|
| `TextureBytesLayout` | `Texture::replace_region` or `Texture::get_bytes` with rows closer than a row of the region, images closer than an image of it, or bytes too few... | every device (a public call's own check of its arguments) | `ours`: the call would read or write past the bytes it is given, or one texel's bytes over another's | 1: `crates/metal2vulkan-rt/src/texture.rs (copy)` | `-` |
|
|
| `BufferCopyLayout` | `BlitCommandEncoder::copy_from_buffer` or `BlitCommandEncoder::copy_from_texture_to_buffer` whose offset or row stride, for a format of single... | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, probe `blit_buffer_copy_rules.m` in the conformance crate, jobs m3-max-43541 and m3-max-43545: Metal's validation layer stops an RGBA8Unorm offset of 2, `sourceOffset (2) must be a multiple of 4 bytes`, a row stride of 18, `sourceBytesPerRow (18) must be a multiple of 4 bytes`, and the same of a copy into a buffer, a row stride of 12 for rows of 16 bytes, an image stride of 12 for images of 16, and a region 16 bytes past the buffer's end, `totalBytesUsed(4112) must be <= [sourceBuffer length](4096)`; it takes an R8Unorm offset of 2, a row stride of 0 for one row, image strides of no whole number of rows, and an image stride on a 2D texture and on a slice of a 1D array | 1: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)` | `-` |
|
|
| `FillRange` | `BlitCommandEncoder::fill_buffer` of an empty range, or of one past the buffer's end | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, probe `blit_fill_rules.m` in the conformance crate, job m3-max-43573: Metal's validation layer stops both, `range.length(0) must not be 0` and `(range.location + range.length)(68) must be <= [buffer length](64)` | 1: `crates/metal2vulkan-rt/src/blit.rs (fill_range)` | `-` |
|
|
| `TextureViewRange` | `Texture::new_texture_view` of an empty range of levels or slices, or of one past the texture's | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, probe `texture_view_rules.m` in the conformance crate, job m3-max-43677: Metal's validation layer stops each, `(newLevelRange.location + newLevelRange.length)(4) must be <= [texture mipmapLevelCount](3)`, `newLevelRange.length must not be 0` and `(newSliceRange.location + newSliceRange.length)(4) must be <= (3)` | 1: `crates/metal2vulkan-rt/src/texture.rs (view)` | `-` |
|
|
| `TextureViewFormat` | `Texture::new_texture_view` of a pixel format Metal does not view the texture as | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, probe `texture_view_rules.m` in the conformance crate, job m3-max-43677: Metal's validation layer stops an `R32Uint` view of an `RGBA8Unorm` texture of `ShaderRead` usage, `Texture View Validation`, and makes it where the usage adds `PixelFormatView`; Apple's `makeTextureView` and `MTLTextureUsage.pixelFormatView` pages state the rest | 1: `crates/metal2vulkan-rt/src/texture.rs (view)` | `-` |
|
|
| `MipmapFormat` | `BlitCommandEncoder::generate_mipmaps` of a texture of more than one level whose pixel format is not a colour-renderable, filterable one | every device (a public call's own check of its arguments) | `metal-measured`: Apple's `generateMipmaps(for:)` page: mipmap generation works only for textures with colour-renderable and colour-filterable pixel formats; Metal's API validation stops the others, measured on an Apple M3 Max and an M4 for `metal2vulkan-runtime`'s mipmap plan | 1: `crates/metal2vulkan-rt/src/blit.rs (generate_mipmaps)` | `-` |
|
|
| `TextureCopyMismatch` | `BlitCommandEncoder::copy_from_texture` between textures of two pixel formats, or of two sample counts | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1, probe `blit_copy_format_pairs.m` in the conformance crate: Metal's validation layer stops every pair of two formats it was given, sRGB, integer, float, channel order, depth and compressed pairs among them, with `[sourceTexture pixelFormat](...) must equal [destinationTexture pixelFormat](...)`, and a source of four samples into one of one with `[sourceTexture sampleCount](4) must equal [destinationTexture sampleCount](1)` | 1: `crates/metal2vulkan-rt/src/blit.rs (texture_copy)` | `-` |
|
|
| `ManagedTextureBytes` | A Managed texture's bytes the device cannot copy in place (`Device::new_managed_texture`) | every device (a public call's own check of its arguments) | `ours`: a buffer-to-image copy reads a place only so laid out, and the consumer's bytes are the place the copy reads | 5: `crates/metal2vulkan-rt/src/texture.rs (check_places)`, `crates/metal2vulkan-rt/src/texture.rs (named)` (+2) | `-` |
|
|
| `BufferTextureLayout` | A texture over a buffer (`Buffer::new_texture`) whose rows are not a whole number of texels apart or are closer than a row, whose offset is not a... | every device (a public call's own check of its arguments) | `ours`: a linear image and a copy read rows whole texels apart from a texel's start, and texels past the buffer would lie in memory it does not hold | 1: `crates/metal2vulkan-rt/src/texture.rs (check_over)` | `-` |
|
|
| `HeapTexturePlace` | A heap texture whose image does not lie in its heap (`Device::new_heap_texture`, `Device::new_heap_texture_for_views`) | every device (a public call's own check of its arguments) | `ours`: an image bound past its heap's range would take memory the heap does not hold, and Vulkan binds an image only at its alignment | 1: `crates/metal2vulkan-rt/src/texture.rs (make)` | `-` |
|
|
| `DrawableDescriptor` | A drawable's texture (`Device::new_drawable_texture`) of a descriptor that is not a 2D texture of one level of the swapchain's image extent, or... | every device (a public call's own check of its arguments) | `ours`: the texture is the swapchain's image, which the descriptor states | 1: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)` | `-` |
|
|
| `DrawableFormat` | A drawable's texture (`Device::new_drawable_texture`) over a swapchain whose image format is not the one the runtime holds the descriptor's pixel... | every device (a public call's own check of its arguments) | `ours`: the texture's views and copies read the image in the format the runtime holds the pixel format in | 1: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)` | `-` |
|
|
| `DrawableUsage` | A drawable's texture (`Device::new_drawable_texture`) over a swapchain whose image usage lacks some of what the runtime's own texture of the... | every device (a public call's own check of its arguments) | `ours`: each of the texture's uses takes its image's usage | 1: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)` | `-` |
|
|
| `NotDrawable` | `Texture::drawable_acquired` or `CommandBuffer::present_drawable` of a texture that is not over a swapchain's image, or a view of one | every device (a public call's own check of its arguments) | `ours`: only a swapchain's image is acquired and presented | 2: `crates/metal2vulkan-rt/src/texture.rs (drawable_acquired)`, `crates/metal2vulkan-rt/src/texture.rs (present_turn)` | `-` |
|
|
| `DrawableAcquired` | `Texture::drawable_acquired` of a drawable acquired and not presented since | every device (a public call's own check of its arguments) | `ours`: a swapchain's image is acquired again only once it was presented | 1: `crates/metal2vulkan-rt/src/texture.rs (drawable_acquired)` | `-` |
|
|
| `DrawableNotAcquired` | `CommandBuffer::present_drawable` of a drawable not acquired since its last present, or one a command buffer not yet committed already presents | every device (a public call's own check of its arguments) | `ours`: a swapchain's image is presented once for each acquire | 1: `crates/metal2vulkan-rt/src/texture.rs (present_turn)` | `-` |
|
|
| `DrawableSemaphoreRepeated` | `CommandBuffer::present_drawable` with a semaphore the command buffer already signals for another drawable | every device (a public call's own check of its arguments) | `ours`: Vulkan signals a binary semaphore only while it is unsignalled, and each present waits on a semaphore of its own | 1: `crates/metal2vulkan-rt/src/command.rs (present_drawable)` | `-` |
|
|
| `BufferCopyRange` | A copy between buffers (`BlitCommandEncoder::copy_from_buffer_to_buffer`) whose range, `size` bytes from `offset`, leaves the source or the... | every device (a public call's own check of its arguments) | `metal-documented`: Metal's validation stops a copy past either buffer's length | 1: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)` | `-` |
|
|
| `BufferCopyUnaligned` | A copy between buffers whose source offset, destination offset or size is not a multiple of 4 | every device (a public call's own check of its arguments) | `metal-documented`: `copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:`: on macOS both offsets and the size are multiples of 4 | 1: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)` | `-` |
|
|
| `BufferCopyOverlap` | A copy between buffers whose source and destination share bytes | every device (a public call's own check of its arguments) | `ours`: Metal states no result for such a copy, and `vkCmdCopyBuffer` reads no byte it also writes, `VUID-vkCmdCopyBuffer-pRegions-00117`; the runtime does not emulate one | 1: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)` | `-` |
|
|
| `AttachmentUsage` | A render pass attachment (`CommandBuffer::render_command_encoder`) whose texture was made without `RenderTarget` usage | every device (a public call's own check of its arguments) | `metal-documented`: a texture a render pass renders into needs `MTLTextureUsageRenderTarget`; Metal's validation stops the descriptor | 1: `crates/metal2vulkan-rt/src/texture.rs (attachment)` | `-` |
|
|
| `AttachmentPlace` | A render pass attachment of a level or slice past its texture's | every device (a public call's own check of its arguments) | `ours`: no texel of the texture is there to render into | 1: `crates/metal2vulkan-rt/src/texture.rs (attachment)` | `-` |
|
|
| `AttachmentFormat` | A render pass color attachment of a depth or stencil pixel format, a depth attachment of a format without depth, or a stencil attachment of a... | every device (a public call's own check of its arguments) | `metal-documented`: a color attachment takes a color-renderable format, a depth attachment a format with depth and a stencil attachment a format with stencil; Metal's validation stops the descriptor | 3: `crates/metal2vulkan-rt/src/pass.rs (check, 3 sites)` | `-` |
|
|
| `VertexBufferOffset` | A draw whose vertex descriptor reads a vertex buffer at an offset at or past the buffer's length | every device (a public call's own check of its arguments) | `metal-documented`: a buffer's offset lies inside it; Metal's validation stops the bind | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (find)` | `-` |
|
|
| `IndexBufferOffset` | An indexed draw whose index buffer offset is not a multiple of the index size, or whose indices leave the buffer | every device (a public call's own check of its arguments) | `metal-documented`: the offset is a multiple of the index size and the indices lie in the buffer; Metal's validation stops the draw | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` | `-` |
|
|
| `TessellationFactorOffset` | A tessellation factor buffer whose factors, at its address plus the offset, start at an odd byte | every device (a public call's own check of its arguments) | `metal-documented`: `setTessellationFactorBuffer:offset:instanceStride:`'s offset is a multiple of 4; Metal's validation stops a patch draw with any other | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (set_tessellation_factor_buffer)` | `-` |
|
|
| `ArgumentPlace` | An indirect dispatch's arguments, or an indexed draw's indices, at a byte of the allocation the buffer's block lies in (its device copy's, for a... | every device (a public call's own check of its arguments) | `ours`: `vkCmdDispatchIndirect` reads its arguments at a multiple of 4 in the `VkBuffer`, and `vkCmdBindIndexBuffer` takes indices at a multiple of their size in the memory; a Metal buffer starts at an aligned address, so Metal's offset rule alone keeps both aligned there | 2: `crates/metal2vulkan-rt/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)`, `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` | `-` |
|
|
| `ViewportNotFinite` | A viewport with a field that is NaN or infinite (but its origin's x, which draws nothing) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1: Metal's validation stops a NaN or infinite origin; the other fields are taken by the same rule | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (set_viewport)` | `-` |
|
|
| `StencilAttachment` | A draw under a depth-stencil state that tests the stencil, in a pass without a stencil attachment | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1: Metal's validation stops the draw; plain Metal tests it against a hidden stencil of 0 that the runtime does not keep | 1: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` | `-` |
|
|
|
|
## 12. The new runtime's `Limit` (`Error::Limit(Limit)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `BlockLen` | A block longer than one allocation and one buffer hold on the device (`Device::take_block` past `maxMemoryAllocationSize` or `maxBufferSize`) | at the device's limit | `device`: the device's `maxMemoryAllocationSize` and `maxBufferSize` | 4: `crates/metal2vulkan-rt/src/import.rs (check_len)`, `crates/metal2vulkan-rt/src/memory.rs (round)` (+2) | `-` |
|
|
| `BlockIds` | A block after every block number has been used (`Device::take_block`) | every device (a public call's own check of its arguments) | `ours`: block numbers are 32 bits | 2: `crates/metal2vulkan-rt/src/memory.rs (allocation_number)`, `crates/metal2vulkan-rt/src/memory.rs (number)` | `-` |
|
|
| `ThreadgroupMemory` | A dispatch whose threadgroup memory, the kernel's own and the lengths set (each rounded up to 16 bytes), is past the device's... | at the device's limit | `device`: the device's `maxComputeSharedMemorySize` | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)` | `-` |
|
|
| `ThreadgroupThreads` | A dispatch whose threadgroup is within Metal's `maxTotalThreadsPerThreadgroup` for the kernel and past the state's on this device | at the device's limit | `device`: the device's compute work-group and shared-memory limits | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)` | `-` |
|
|
| `BytesLength` | `setBytes` data longer than one parameter ring chunk | every device (a public call's own check of its arguments) | `ours`: a ring chunk is 64 KiB | 2: `crates/metal2vulkan-rt/src/encoder.rs (set_bytes)`, `crates/metal2vulkan-rt/src/render_encoder.rs (set_bytes)` | `-` |
|
|
| `IndexRange` | A grant of no indices, or one past its class's range (`Device::grant_indices`, [`IndexClass::range`]) | every device (a public call's own check of its arguments) | `ours`: the descriptor arrays are 65,536 sampled and 65,536 storage textures, one index of both a texture's, and 4,000 samplers of each use, and index 0 is nil | 1: `crates/metal2vulkan-rt/src/arrays.rs (grant)` | `-` |
|
|
| `TextureSize` | A texture whose extent or array layers are past what the device makes of its format, type, usage and sample count | at the device's limit | `device`: the image format query's `maxExtent` and `maxArrayLayers` | 1: `crates/metal2vulkan-rt/src/texture.rs (plan)` | `-` |
|
|
| `DeviceSamplers` | A sampler state whose device samplers would take the device past its `maxSamplerAllocationCount`, less the sampler arrays' two defaults... | at the device's limit | `device`: the device's `maxSamplerAllocationCount` | 1: `crates/metal2vulkan-rt/src/sampler.rs (take)` | `-` |
|
|
| `MemoryAllocations` | A `VkDeviceMemory` allocation past the device's `maxMemoryAllocationCount` live ones, refused before the driver is called | at the device's limit | `device`: the device's `maxMemoryAllocationCount` | 1: `crates/metal2vulkan-rt/src/memory.rs (allocate)` | `-` |
|
|
| `AllocationNotMapped` | A take that no free range fits made an allocation that the consumer's `BlockMappings::map` did not map | every device (a public call's own check of its arguments) | `ours`: the consumer's hook gave the allocation no place in its own address range | 1: `crates/metal2vulkan-rt/src/memory.rs (own)` | `-` |
|
|
| `NoImport` | An import of a handle the device does not take (`Device::import_dma_buf`, `Device::import_host_memory`, and a dma-buf surface's buffer,... | at the device's limit | `device`: the device's extensions and its external buffer properties | 3: `crates/metal2vulkan-rt/src/import.rs (import_dma_buf)`, `crates/metal2vulkan-rt/src/import.rs (import_host_memory)` (+1) | `-` |
|
|
| `ImportType` | An import whose handle's memory type query offers no type the import takes, so nothing is imported | at the device's limit | `device`: the handle's memory type query and the buffer's memory requirements | 2: `crates/metal2vulkan-rt/src/import.rs (import_dma_buf)`, `crates/metal2vulkan-rt/src/import.rs (import_host_memory)` | `-` |
|
|
| `ImportAlignment` | An import of no bytes, or one whose address or length is not a multiple of `alignment` | at the device's limit | `device`: `minImportedHostPointerAlignment` and the buffer's memory requirements | 3: `crates/metal2vulkan-rt/src/import.rs (check_len)`, `crates/metal2vulkan-rt/src/import.rs (check_size)` (+1) | `-` |
|
|
| `NoExport` | An export of a handle the device does not give (`Device::new_exported_block`) | at the device's limit | `device`: the device's extensions and its external buffer properties | 5: `crates/metal2vulkan-rt/src/export.rs (handle, 2 sites)`, `crates/metal2vulkan-rt/src/export.rs (new_exported_block)` (+2) | `-` |
|
|
| `ExportType` | An export of a handle the device gives, but not in the one form an export takes (`Device::new_exported_block`) | at the device's limit | `device`: its extensions and the buffer's memory requirements | 6: `crates/metal2vulkan-rt/src/export.rs (new_exported_block)`, `crates/metal2vulkan-rt/src/import.rs (surface_import)` (+4) | `-` |
|
|
| `TextureSamples` | A multisample texture of a sample count the device does not make for its format, type and usage | at the device's limit | `device`: the image format query's `sampleCounts` | 1: `crates/metal2vulkan-rt/src/texture.rs (plan)` | `-` |
|
|
|
|
## 13. The new runtime's `Gap` (`Error::Unsupported(Gap)`)
|
|
|
|
| Variant | What it blocks | Where | Basis | Sites | Reach |
|
|
|---|---|---|---|---|---|
|
|
| `IndirectCommandBuffers` | A compute pipeline state for indirect command buffers (`supportIndirectCommandBuffers`) | every device (a public call's own check of its arguments) | `ours`: indirect command buffers are not built | 2: `crates/metal2vulkan-rt/src/pipeline.rs (new_compute_pipeline_state)`, `crates/metal2vulkan-rt/src/render.rs (refuse)` | `-` |
|
|
| `KernelInput` | A kernel that reads something the compute encoder does not supply yet | every device (a public call's own check of its arguments) | `ours`: the encoder supplies only those | 1: `crates/metal2vulkan-rt/src/pipeline.rs (gap)` | `-` |
|
|
| `ImageblockLength` | An imageblock length Metal answers that no case measures | every device (a public call's own check of its arguments) | `ours`: the length is not measured against Metal's | 2: `crates/metal2vulkan-rt/src/pipeline.rs (imageblock_memory_length_for_dimensions)`, `crates/metal2vulkan-rt/src/render.rs (imageblock_sample_length)` | `-` |
|
|
| `PartialSimdgroups` | A dispatch whose threadgroup is not whole SIMD groups of a kernel whose tier runs each SIMD group as one subgroup of `width` threads (a pinned... | every device (a public call's own check of its arguments) | `ours`: no emulated-SIMD-group module | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)` | `-` |
|
|
| `PartialThreadgroups` | `dispatchThreads` with a grid that is not a whole number of threadgroups on some axis, of a kernel that observes its threadgroup partition and... | every device (a public call's own check of its arguments) | `ours`: the translator's partial-threadgroups variant does not take the emulated SIMD-group tier, nor a vote word past the workgroup memory | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)` | `-` |
|
|
| `NoStageInRegion` | A dispatch of a kernel that reads the stage-in region (`[[grid_origin]]`, `[[grid_size]]`) on an encoder that never set one... | every device (a public call's own check of its arguments) | `ours`: no replay stream dispatches such a kernel without setting a region | 1: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)` | `-` |
|
|
| `MemorylessTexture` | A texture of `Memoryless` storage, which only render passes use | every device (a public call's own check of its arguments) | `ours`: render passes are not built | 1: `crates/metal2vulkan-rt/src/texture.rs (checked)` | `-` |
|
|
| `TextureBuffer` | A texture buffer (`MTLTextureTypeTextureBuffer`) | every device (a public call's own check of its arguments) | `ours`: no texel-buffer array; no replay stream uses one | 2: `crates/metal2vulkan-rt/src/texture.rs (shape, 2 sites)` | `-` |
|
|
| `CubeArrayTexture` | A cube array texture (`MTLTextureTypeCubeArray`), and so a view of one | every device (a public call's own check of its arguments) | `ours`: no replay stream makes a cube array texture or view; built when one does | 1: `crates/metal2vulkan-rt/src/texture.rs (checked)` | `-` |
|
|
| `TextureFormat` | A texture of a pixel format the runtime makes no image of on this device for the descriptor's usage | every device (a public call's own check of its arguments) | `ours`: the device's format query, or the identity domains' shaders read every texture through its view alone | 3: `crates/metal2vulkan-rt/src/texture.rs (attachment)`, `crates/metal2vulkan-rt/src/texture.rs (form)` (+1) | `-` |
|
|
| `MipmapFilter` | `BlitCommandEncoder::generate_mipmaps` of a texture whose image the device's blits do not filter | every device (a public call's own check of its arguments) | `ours`: the device's format query; the levels are the device's blit chain alone | 1: `crates/metal2vulkan-rt/src/blit.rs (generate_mipmaps)` | `-` |
|
|
| `CubicSampler` | A sampler state whose minification or magnification filter is cubic (`Device::new_sampler_state`) | every device (a public call's own check of its arguments) | `ours`: the translator's identity domains do not filter bicubically, and Vulkan's cubic filter is not Metal's | 1: `crates/metal2vulkan-rt/src/sampler.rs (new_sampler_state)` | `-` |
|
|
| `LodClamps` | A sampler state bound with LOD clamps its samples read otherwise through (`ComputeCommandEncoder::set_sampler_state_with_lod_clamps` and the... | every device (a public call's own check of its arguments) | `ours`: no replay stream binds such clamps: every bind-time clamp the streams make reads as its state's own | 1: `crates/metal2vulkan-rt/src/sampler.rs (clamps_at_bind)` | `-` |
|
|
| `TextureBytes` | `Texture::replace_region`, `Texture::get_bytes` or a blit copy between a buffer and a texture (`BlitCommandEncoder::copy_from_buffer`) of a... | every device (a public call's own check of its arguments) | `ours`: no copy between such an image and bytes is built | 3: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`, `crates/metal2vulkan-rt/src/texture.rs (check_places)` (+1) | `-` |
|
|
| `FloatDepthUpload` | `Texture::replace_region` or `BlitCommandEncoder::copy_from_buffer` into a 32-bit float depth (`Depth32Float`) | every device (a public call's own check of its arguments) | `ours`: no upload of a 32-bit float depth is built | 3: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`, `crates/metal2vulkan-rt/src/texture.rs (replace_region)` (+1) | `-` |
|
|
| `TextureCopy` | `BlitCommandEncoder::copy_from_texture` that no single `vkCmdCopyImage` in the floor makes | every device (a public call's own check of its arguments) | `ours`: Vulkan 1.3 copies none of these with one command; each is built when a replay stream makes one | 1: `crates/metal2vulkan-rt/src/blit.rs (texture_copy)` | `-` |
|
|
| `TextureOverBuffer` | A texture over a buffer (`Buffer::new_texture`) the runtime does not make | every device (a public call's own check of its arguments) | `ours`: the in-place linear image and the copy form take one 2D color image | 4: `crates/metal2vulkan-rt/src/texture.rs (check_over)`, `crates/metal2vulkan-rt/src/texture.rs (make)` (+2) | `-` |
|
|
| `HeapTexture` | A heap texture the runtime does not place (`Device::new_heap_texture`, `Device::new_heap_texture_for_views` and `Device::heap_texture_size_and_align`) | every device (a public call's own check of its arguments) | `ours`: heap textures are built for Private heaps of placeable images | 2: `crates/metal2vulkan-rt/src/texture.rs (heap_fit)`, `crates/metal2vulkan-rt/src/texture.rs (heap_source)` | `-` |
|
|
| `SurfaceUsage` | A surface plane in place (`Device::new_exported_surface`) whose texture's uses ask an image usage its linear tiling lacks (storage, for one) | at the device's limit | `device`: the image format query of the plane's tiling | 2: `crates/metal2vulkan-rt/src/surface.rs (plane)`, `crates/metal2vulkan-rt/src/texture.rs (surface_texture)` | `-` |
|
|
| `BufferCopyAlignment` | `BlitCommandEncoder::copy_from_buffer` or `BlitCommandEncoder::copy_from_texture_to_buffer` whose bytes no copy command in the floor addresses,... | every device (a public call's own check of its arguments) | `ours`: Vulkan 1.3 places a copy's rows in a buffer by a count of texels from an aligned offset; each is built when a replay stream makes one | 1: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)` | `-` |
|
|
| `FillAlignment` | `BlitCommandEncoder::fill_buffer` of a range that does not start and end on whole 4-byte words of the bytes shaders reach, which Metal fills byte... | every device (a public call's own check of its arguments) | `ours`: `vkCmdFillBuffer` writes whole words; a byte fill is built when a replay stream makes one | 1: `crates/metal2vulkan-rt/src/blit.rs (fill_range)` | `-` |
|
|
| `RenderPipeline` | A render pipeline state of something the runtime does not build yet | every device (a public call's own check of its arguments) | `ours`: the replay streams' render pipelines draw into colour, depth and stencil attachments of one sample, with no tessellation and no framebuffer fetch; each other kind is built when a replay stream makes one | 5: `crates/metal2vulkan-rt/src/render.rs (draw_input)`, `crates/metal2vulkan-rt/src/render.rs (of, 3 sites)` (+1) | `-` |
|
|
| `SwizzledReadWrite` | A draw or dispatch whose function declares `access::read_write` at texture slot `slot` and reads it, where the texture bound there has a swizzle... | every device (a public call's own check of its arguments) | `ours`: built when a replay stream counts one | 2: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`, `crates/metal2vulkan-rt/src/render_encoder.rs (find)` | `-` |
|
|
| `StorageElement` | A draw or dispatch whose function writes a texture slot, or reads one through its storage image (`access::read_write`), bound to a texture made... | every device (a public call's own check of its arguments) | `ours`: the storage element through a view of the nearest format whose storage Vulkan requires of every device, with the translator's conversion, is the form to build | 3: `crates/metal2vulkan-rt/src/encoder.rs (dispatch, 2 sites)`, `crates/metal2vulkan-rt/src/render_encoder.rs (find)` | `-` |
|
|
| `TextureView` | `Texture::new_texture_view` of a kind Metal makes and the runtime does not build | every device (a public call's own check of its arguments) | `ours`: the replay streams' views that compute binds are same-format views of every slice, 2D views of one slice of a 2D array, and level subranges, swizzled or not; each other kind is built when a replay stream binds one | 1: `crates/metal2vulkan-rt/src/texture.rs (view)` | `-` |
|
|
| `RenderPass` | A render pass of something the runtime does not build yet (`CommandBuffer::render_command_encoder`) | every device (a public call's own check of its arguments) | `ours`: the replay streams' passes render into one to two color attachments and a stencil or a depth attachment, each a level of a 2D texture of one sample, with no resolve and a clear depth of 1, none naming two textures for its depth and stencil; each other kind is built when a replay stream makes one; `DepthStencilViews` and `ClearDepth` are what Vulkan's rendering under the floor takes no form of | 3: `crates/metal2vulkan-rt/src/pass.rs (check)`, `crates/metal2vulkan-rt/src/pass.rs (ops)` (+1) | `-` |
|
|
| `Draw` | A draw or render encoder state the runtime does not build yet (`RenderCommandEncoder`) | every device (a public call's own check of its arguments) | `ours`: the replay streams draw lines and triangles through one viewport Vulkan's is, with pipeline states of their pass's formats, under depth biases with no clamp, filled and clipped; each other kind is built when a replay stream draws one), and device for [`DrawKind::DividedBaseInstance`] (a device that does not report `supportsNonZeroFirstInstance` | 12: `crates/metal2vulkan-rt/src/render_encoder.rs (attachment_reads)`, `crates/metal2vulkan-rt/src/render_encoder.rs (draw)` (+10) | `-` |
|
|
|
|
## Appendix: every site
|
|
|
|
Each refusal's sites, with the function that builds it.
|
|
|
|
- `feature::LibraryKind`: `crates/metal2vulkan-air/src/container/mtlb.rs (parse)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::Stage`: `crates/metal2vulkan-air/src/abi/check.rs (unsupported_stage)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::AddressSpace`: `crates/metal2vulkan-air/src/ir/types.rs (from_raw)`; `crates/metal2vulkan/src/memory/plan.rs (reprs)`
|
|
- `feature::ModuleRecord`: `crates/metal2vulkan-air/src/bitcode/module.rs (function)`; `crates/metal2vulkan-air/src/bitcode/module.rs (global)`; `crates/metal2vulkan-air/src/bitcode/module.rs (record)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::Instruction`: `crates/metal2vulkan-air/src/bitcode/function.rs (call, 2 sites)`; `crates/metal2vulkan-air/src/bitcode/function.rs (record, 8 sites)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::Type`: `crates/metal2vulkan-air/src/bitcode/types.rs (decode, 3 sites)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::CallingConvention`: `crates/metal2vulkan-air/src/bitcode/function.rs (call)`; `crates/metal2vulkan-air/src/bitcode/module.rs (function)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::UnknownIntrinsic`: `crates/metal2vulkan-air/src/error.rs (from)`; `crates/metal2vulkan/src/lower/select.rs (route)`
|
|
- `feature::AgxUnmodeled`: `crates/metal2vulkan/src/lower/simd/agx.rs (unmodeled)`
|
|
- `feature::StaticInitializer`: `crates/metal2vulkan-air/src/error.rs (from)`
|
|
- `feature::Recursion`: `crates/metal2vulkan-air/src/canon/mod.rs (recursion, 2 sites)`; `crates/metal2vulkan-air/src/canon/recursion.rs (dynamic_alloca)`; `crates/metal2vulkan-air/src/canon/static_init.rs (run)`
|
|
- `feature::DynamicCall`: `crates/metal2vulkan-air/src/canon/devirt.rs (record)`; `crates/metal2vulkan-air/src/canon/devirt.rs (site)`; `crates/metal2vulkan-air/src/canon/devirt.rs (unfolded_decl)`; `crates/metal2vulkan-air/src/canon/mod.rs (post_check)`; `crates/metal2vulkan-air/src/canon/prune.rs (prune_in)`; `crates/metal2vulkan/src/bind/heap.rs (directory_bytes, 3 sites)`; `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
|
- `feature::InlineAsm`: `crates/metal2vulkan-air/src/canon/mod.rs (post_check)`
|
|
- `feature::Linking`: `crates/metal2vulkan-air/src/canon/link.rs (not_implemented)`; `crates/metal2vulkan-air/src/canon/mod.rs (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs (specialize_dynamic)`
|
|
- `feature::SimdWidth`: `crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier)`; `crates/metal2vulkan/src/lower/simd/mod.rs (finish)`
|
|
- `feature::LocalSize`: `crates/metal2vulkan/src/bind/dispatch.rs (regions)`
|
|
- `feature::IrreducibleConvergent`: `crates/metal2vulkan/src/structurize/irreducible.rs (refuse_tangled)`
|
|
- `feature::ComputeDerivativesWithSimd`: `crates/metal2vulkan/src/lower/dispatch.rs (plan_kernel)`
|
|
- `feature::ComputeDerivatives`: `crates/metal2vulkan/src/bind/dispatch.rs (check_local)`; `crates/metal2vulkan/src/lower/sync/barrier.rs (select_derivative, 3 sites)`
|
|
- `feature::QuadOperations`: `crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier, 2 sites)`
|
|
- `feature::SimdgroupMatrix`: `crates/metal2vulkan/src/lower/simd/matrix.rs (not_implemented)`
|
|
- `feature::SimdgroupMatrix16x16x16`: `crates/metal2vulkan/src/lower/simd/matrix.rs (select)`
|
|
- `feature::ArgumentBufferPointers`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`
|
|
- `feature::ArgumentBufferTextures`: `crates/metal2vulkan-runtime/src/families/features.rs (tier2)`; `crates/metal2vulkan-runtime/src/pipeline/objects.rs (create_set_layout)`; `crates/metal2vulkan-runtime/src/resource_ids.rs (check_capacity, 2 sites)`; `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/heap.rs (member_texel_view, 2 sites)`; `crates/metal2vulkan/src/bind/heap.rs (member_view, 5 sites)`; `crates/metal2vulkan/src/bind/heap.rs (new)`; `crates/metal2vulkan/src/lower/access/handle.rs (select)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_sampling)`; `crates/metal2vulkan/src/lower/texture/atomic.rs (select)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap, 2 sites)`; `crates/metal2vulkan/src/pipeline/link.rs (heap_set)`
|
|
- `feature::ArgumentBufferObjects`: `crates/metal2vulkan/src/lower/access/encode.rs (select_command, 3 sites)`; `crates/metal2vulkan/src/memory/provenance.rs (access)`; `crates/metal2vulkan/src/memory/provenance.rs (classify)`
|
|
- `feature::DereferenceLoadedPointer`: `crates/metal2vulkan/src/lower/access/dynamic.rs (plan_misses)`; `crates/metal2vulkan/src/lower/access/local.rs (access_ptr)`; `crates/metal2vulkan/src/lower/access/local.rs (threadgroup_constant_refusal)`; `crates/metal2vulkan/src/memory/plan.rs (analyze)`
|
|
- `feature::PointerToInteger`: `crates/metal2vulkan/src/lower/access/dynamic.rs (require_addresses)`
|
|
- `feature::PointerCompare`: `crates/metal2vulkan/src/lower/access/copy.rs (addressed)`
|
|
- `feature::HandleAsPointer`: `crates/metal2vulkan/src/lower/access/handle.rs (domain_kind)`; `crates/metal2vulkan/src/lower/access/handle.rs (element, 2 sites)`; `crates/metal2vulkan/src/memory/plan.rs (reprs)`; `crates/metal2vulkan/src/memory/provenance.rs (classify)`; `crates/metal2vulkan/src/memory/provenance.rs (seed)`
|
|
- `feature::ConstantGlobalEscaping`: `crates/metal2vulkan/src/memory/plan.rs (blob_nodes)`; `crates/metal2vulkan/src/memory/plan.rs (serialize)`
|
|
- `feature::ThreadgroupMemorySize`: `crates/metal2vulkan/src/bind/plan/compute.rs (plan)`; `crates/metal2vulkan/src/memory/arena.rs (check)`; `crates/metal2vulkan/src/memory/plan.rs (too_large)`
|
|
- `feature::CoherentMemory`: `crates/metal2vulkan/src/lower/sync/memory_model.rs (check)`
|
|
- `feature::Int64Atomics`: `crates/metal2vulkan/src/lower/access/atomic.rs (select, 2 sites)`
|
|
- `feature::ImageAtomics`: `crates/metal2vulkan-runtime/src/families/formats.rs (atomic_gap, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format)`
|
|
- `feature::DescriptorCount`: `crates/metal2vulkan/src/lower/access/mod.rs (accept_placement)`; `crates/metal2vulkan/src/lower/select.rs (finish)`; `crates/metal2vulkan/src/pipeline/link.rs (limit_error)`
|
|
- `feature::StageSize`: `crates/metal2vulkan/src/pipeline/compile/stage_bound.rs (refused, 2 sites)`
|
|
- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites)`; `crates/metal2vulkan/src/bind/graphics.rs (rebind_with)`; `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs (select)`; `crates/metal2vulkan/src/lower/access/mod.rs (place_slots)`
|
|
- `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs (selector_form)`
|
|
- `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`
|
|
- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view, 2 sites)`; `crates/metal2vulkan-runtime/src/blit_fill.rs (fill)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (check_formats, 3 sites)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over, 3 sites)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (copy_unit, 2 sites)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs (answers, 3 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs (probe, 2 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs (plan_held, 3 sites)`; `crates/metal2vulkan-runtime/src/render.rs (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs (target)`; `crates/metal2vulkan-runtime/src/resolve.rs (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs (unmerged, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (with_decoded_twin)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (new_render_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 5 sites)`; `crates/metal2vulkan-runtime/src/ycbcr.rs (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs (extended_shadow_module)`; `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs (shadow_copy_in_module)`; `crates/metal2vulkan/src/lower/access/tile.rs (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_blend, 5 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_output, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_read)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs (rotated)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 3 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites)`; `crates/metal2vulkan/src/metal/vertex.rs (fetch_as, 2 sites)`; `crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 3 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)`
|
|
- `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs (tangled)`
|
|
- `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_min_level)`
|
|
- `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs (min_lod)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`
|
|
- `feature::TexelOffset`: `crates/metal2vulkan/src/lower/sampler/select.rs (in_device_range)`; `crates/metal2vulkan/src/lower/sampler/select.rs (offset)`
|
|
- `feature::GatherExtended`: `crates/metal2vulkan/src/lower/sampler/select.rs (dynamic_offset)`
|
|
- `feature::StorageImageMultisample`: `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot)`
|
|
- `feature::StorageTextureInVertexStage`: `crates/metal2vulkan/src/lower/texture/slot.rs (stage_stores)`
|
|
- `feature::CubeArray`: `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_heap)`
|
|
- `feature::SamplerAnisotropy`: `crates/metal2vulkan/src/metal/sampler.rs (check_argument_sampler)`
|
|
- `feature::SamplerBorderColor`: `crates/metal2vulkan/src/metal/sampler.rs (border_read, 4 sites)`
|
|
- `feature::SamplerLodBias`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (constexpr_desc, 3 sites)`
|
|
- `feature::SamplerCompare`: `crates/metal2vulkan/src/metal/sampler.rs (check_sampler)`
|
|
- `feature::PixelSamplerCompare`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered)`
|
|
- `feature::TexelBuffer`: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)`
|
|
- `feature::RasterOrderGroups`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs (finish)`
|
|
- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/render.rs (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs (extended_shadow_module)`; `crates/metal2vulkan/src/bind/sample_planes.rs (finish)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (packed16)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (srgb8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (unorm8, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/color.rs (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (storage_form, 2 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (unordered_extended_fetch)`; `crates/metal2vulkan/src/lower/fragment/input_shadow.rs (device_form)`; `crates/metal2vulkan/src/lower/fragment/input_shadow.rs (plan)`; `crates/metal2vulkan/src/lower/fragment/mod.rs (finish)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs (storage_attachments)`
|
|
- `feature::PrimitiveId`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (finish)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs (check_primitive_id)`
|
|
- `feature::PrivatePrimitives`: `crates/metal2vulkan/src/lower/stage_io/plan.rs (indices_feature)`
|
|
- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs (multiview_instances)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (control_plan)`
|
|
- `feature::LayeredRendering`: `crates/metal2vulkan-runtime/src/render_pass.rs (target)`; `crates/metal2vulkan-runtime/src/render_state.rs (needs_viewports)`; `crates/metal2vulkan/src/lower/mesh/mod.rs (target_index, 2 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (own_index_store)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (refused)`
|
|
- `feature::ClipDistance`: `crates/metal2vulkan/src/lower/mesh/mod.rs (select, 2 sites)`
|
|
- `feature::DualSourceBlending`: `crates/metal2vulkan-runtime/src/families/formats.rs (answers)`; `crates/metal2vulkan/src/metal/state.rs (blend_factor)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (check_outputs)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend, 2 sites)`
|
|
- `feature::Barycentrics`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (refused)`
|
|
- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan/src/bind/graphics.rs (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs (shadow_stencil, 2 sites)`
|
|
- `feature::SampleRateShading`: `crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations, 3 sites)`
|
|
- `feature::PullModelInterpolation`: `crates/metal2vulkan/src/lower/fragment/interpolate.rs (select, 2 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant, 2 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (interpolant_reads, 2 sites)`
|
|
- `feature::SamplePositions`: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)`
|
|
- `feature::PixelCoverageAtSampleRate`: `crates/metal2vulkan/src/lower/fragment/coverage.rs (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (sample_invocations)`
|
|
- `feature::InterfaceComponents`: `crates/metal2vulkan/src/pipeline/compile/color_group.rs (refusal)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs (assign)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs (limit_error)`
|
|
- `feature::UnmatchedVarying`: `crates/metal2vulkan/src/pipeline/link/varyings.rs (mesh_fragment)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs (varyings, 2 sites)`
|
|
- `feature::KernelStageIn`: `crates/metal2vulkan-runtime/src/indirect_execute.rs (dispatch)`; `crates/metal2vulkan/src/lower/stage_io/stage_in.rs (select)`
|
|
- `feature::VertexStepRate`: `crates/metal2vulkan/src/metal/vertex.rs (divided)`
|
|
- `feature::VertexInputLayout`: `crates/metal2vulkan/src/pipeline/link/vertex.rs (resolve, 4 sites)`
|
|
- `feature::Tessellation`: `crates/metal2vulkan-air/src/canon/mod.rs (post_check, 2 sites)`; `crates/metal2vulkan/src/bind/graphics.rs (tessellation_dispatch)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs (select)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (primitive_id_output)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs (not_implemented)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs (plan_entry)`; `crates/metal2vulkan/src/metal/vertex.rs (fetch_as)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (check_fragment)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (control_plan, 2 sites)`
|
|
- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs (mesh_limit)`; `crates/metal2vulkan/src/bind/graphics.rs (plan)`; `crates/metal2vulkan/src/lower/mesh/mod.rs (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs (plan_entry, 2 sites)`; `crates/metal2vulkan/src/memory/plan.rs (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs (records)`
|
|
- `feature::TileShading`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (scratch)`; `crates/metal2vulkan/src/bind/plan/compute.rs (tile_memory)`; `crates/metal2vulkan/src/lower/access/tile.rs (not_implemented)`; `crates/metal2vulkan/src/lower/sync/barrier.rs (tile_shading)`; `crates/metal2vulkan/src/pipeline/compile/api.rs (tile_pipeline)`
|
|
- `feature::Imageblocks`: `crates/metal2vulkan/src/lower/access/imageblock.rs (imageblocks)`; `crates/metal2vulkan/src/lower/access/mod.rs (select_param)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs (plan_tests, 2 sites)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs (reach)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs (require)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/slice.rs (imageblocks)`; `crates/metal2vulkan/src/pipeline/link/imageblock.rs (fragment_imageblock)`
|
|
- `feature::RayTracing`: `crates/metal2vulkan/src/bind/acceleration.rs (instance_record, 2 sites)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (instance_count)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 5 sites)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (primitive_data_read)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (select_param)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (slot_of)`; `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
|
- `feature::Tensors`: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs (refuse)`; `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
|
- `feature::RasterizationRateMap`: `crates/metal2vulkan/src/lower/stage_io/plan.rs (region_copy, 3 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (region_viewport, 2 sites)`; `crates/metal2vulkan/src/pipeline/link.rs (region_box)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (check_limits)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs (fan_plan, 3 sites)`
|
|
- `feature::GpuEncodedIndirectCommands`: `crates/metal2vulkan/src/bind/replay.rs (preprocess)`; `crates/metal2vulkan/src/bind/replay.rs (replay_preprocess_module)`; `crates/metal2vulkan/src/bind/replay/draws.rs (draw_replay_module)`; `crates/metal2vulkan/src/bind/replay/draws.rs (draw_replay_preprocess)`; `crates/metal2vulkan/src/bind/replay/flat.rs (flat_dispatch_module)`; `crates/metal2vulkan/src/bind/replay/merged.rs (draw_merge_module)`; `crates/metal2vulkan/src/lower/access/encode.rs (needs, 3 sites)`; `crates/metal2vulkan/src/lower/access/encode.rs (select_command)`; `crates/metal2vulkan/src/lower/access/mod.rs (plan_replay, 3 sites)`; `crates/metal2vulkan/src/lower/mesh/mod.rs (plan_partial_groups)`; `crates/metal2vulkan/src/lower/select.rs (finish, 2 sites)`; `crates/metal2vulkan/src/lower/simd/divergent.rs (barriers)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (merged)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)`; `crates/metal2vulkan/src/pipeline/compile.rs (analyze_one, 2 sites)`
|
|
- `feature::VulkanVersion`: `crates/metal2vulkan/src/ash_interop/query.rs (query)`; `crates/metal2vulkan/src/device/derive.rs (derived)`
|
|
- `feature::IdentityDomains`: `crates/metal2vulkan/src/device/derive.rs (identity_domains)`; `crates/metal2vulkan/src/lower/access/mod.rs (place_slots)`; `crates/metal2vulkan/src/lower/sampler/anisotropic.rs (select)`; `crates/metal2vulkan/src/lower/sampler/mod.rs (finish)`; `crates/metal2vulkan/src/lower/select.rs (identity_admits)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format)`; `crates/metal2vulkan/src/pipeline/link.rs (identity_set)`
|
|
- `feature::Constant`: `crates/metal2vulkan-air/src/bitcode/constants.rs (record, 2 sites)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::Attribute`: `crates/metal2vulkan-air/src/bitcode/attrs.rs (known)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::BitcodeRecord`: `crates/metal2vulkan-air/src/bitcode/attrs.rs (decode_lists)`; `crates/metal2vulkan-air/src/bitcode/function.rs (symtab)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs (decode, 2 sites)`; `crates/metal2vulkan-air/src/bitcode/module.rs (check_bodies)`; `crates/metal2vulkan-air/src/bitcode/module.rs (read)`; `crates/metal2vulkan-air/src/bitcode/module.rs (symtab)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::SyncScope`: `crates/metal2vulkan-air/src/bitcode/function.rs (atomic)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::SubgroupOperations`: `crates/metal2vulkan-runtime/src/families/features.rs (simd)`; `crates/metal2vulkan/src/lower/simd/mod.rs (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs (full_quads)`; `crates/metal2vulkan/src/lower/simd/mod.rs (select_group)`
|
|
- `feature::DirectCall`: `crates/metal2vulkan-air/src/canon/mod.rs (post_check)`
|
|
- `feature::WideSwitchLiteral`: `crates/metal2vulkan/src/structurize/emit.rs (check_tree)`
|
|
- `feature::Lowering`: `crates/metal2vulkan/src/bind/plan/resources.rs (level_views)`; `crates/metal2vulkan/src/lower/access/handle.rs (domain_kind)`; `crates/metal2vulkan/src/lower/access/handle.rs (sampler_target)`; `crates/metal2vulkan/src/lower/access/handle.rs (texture_target)`; `crates/metal2vulkan/src/lower/access/imageblock.rs (operand)`; `crates/metal2vulkan/src/lower/access/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/access/pulled.rs (share)`; `crates/metal2vulkan/src/lower/arith/legal.rs (not_lowered)`; `crates/metal2vulkan/src/lower/dispatch.rs (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs (plan)`; `crates/metal2vulkan/src/lower/fragment/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs (finish)`; `crates/metal2vulkan/src/lower/mesh/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/sampler/mod.rs (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs (refuse)`; `crates/metal2vulkan/src/lower/select.rs (not_lowered)`; `crates/metal2vulkan/src/lower/select.rs (route_air, 2 sites)`; `crates/metal2vulkan/src/lower/simd/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/simd/mod.rs (select_param)`; `crates/metal2vulkan/src/lower/simd/workgroup.rs (check)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs (not_lowered)`; `crates/metal2vulkan/src/lower/stage_io/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/sync/barrier.rs (not_lowered)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs (not_implemented)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs (select)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs (not_lowered)`; `crates/metal2vulkan/src/lower/texture/mod.rs (refuse)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_through)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/memory/alloca.rs (not_lowered)`; `crates/metal2vulkan/src/memory/leaf.rs (not_lowered)`; `crates/metal2vulkan/src/memory/plan.rs (not_lowered)`; `crates/metal2vulkan/src/memory/provenance.rs (not_lowered)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (patch_fetch_projection)`
|
|
- `feature::SamplerAddressMode`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs`; `crates/metal2vulkan/src/metal/sampler.rs (check_sampler)`
|
|
- `feature::AlphaToOne`: `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state)`
|
|
- `feature::StageStoresAndAtomics`: `crates/metal2vulkan/src/lower/access/tile_memory.rs (written)`
|
|
- `feature::FunctionConstantArgument`: `crates/metal2vulkan-air/src/canon/interface.rs (absent_values)`; `crates/metal2vulkan/src/lower/access/absent.rs (require)`
|
|
- `feature::SamplerBicubicFilter`: `crates/metal2vulkan/src/bind/heap.rs (new)`; `crates/metal2vulkan/src/bind/plan/resources.rs (bicubic_texels)`; `crates/metal2vulkan/src/bind/plan/slots.rs (cubic_variant)`; `crates/metal2vulkan/src/lower/sampler/bicubic.rs (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs (bicubic_refused)`
|
|
- `feature::GroupCount`: `crates/metal2vulkan/src/bind/dispatch.rs (2 sites)`; `crates/metal2vulkan/src/bind/dispatch.rs (instantiate)`; `crates/metal2vulkan/src/bind/dispatch.rs (product)`; `crates/metal2vulkan/src/bind/dispatch.rs (regions)`; `crates/metal2vulkan/src/bind/graphics.rs (emulated_draw)`; `crates/metal2vulkan/src/bind/graphics.rs (mesh_draw)`
|
|
- `feature::IntersectionFunctionTable`: `crates/metal2vulkan/src/bind/acceleration.rs (geometry_table_offset, 3 sites)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 2 sites)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (null_table)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (select_table)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs (table_of)`; `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
|
- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (uniform_blend)`
|
|
- `feature::RasterSampleCount`: `crates/metal2vulkan-runtime/src/families/limits.rs (sample_count)`; `crates/metal2vulkan/src/pipeline/graphics.rs (sample_count_properties)`
|
|
- `feature::TriangleFillLines`: `crates/metal2vulkan/src/metal/state.rs (polygon_mode)`
|
|
- `feature::TriangleFillPoints`: `crates/metal2vulkan/src/metal/state.rs (polygon_mode)`
|
|
- `feature::DepthClipClamp`: `crates/metal2vulkan/src/metal/state.rs (depth_clamp_enable)`
|
|
- `feature::DepthBiasClamp`: `crates/metal2vulkan/src/metal/state.rs (depth_bias)`
|
|
- `feature::ConstantAlphaBlendFactor`: `crates/metal2vulkan/src/metal/state.rs (check_constant_alpha)`
|
|
- `feature::SparseTexture`: `crates/metal2vulkan/src/bind/plan/slots.rs (check_sparse_textures, 2 sites)`
|
|
- `feature::TextureSize`: `crates/metal2vulkan-runtime/src/image_plan.rs (check_image_limits)`
|
|
- `feature::TextureSampleCount`: `crates/metal2vulkan-runtime/src/image_plan.rs (check_image_limits)`; `crates/metal2vulkan-runtime/src/image_plan.rs (plan_held, 2 sites)`
|
|
- `feature::TextureView`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs (checked_view)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (make_second_twin)`; `crates/metal2vulkan-runtime/src/texture/view_shadow.rs (apart_refusal)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (converted_view)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (luma_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_view, 2 sites)`
|
|
- `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs (may_view)`; `crates/metal2vulkan/src/bind/heap.rs (member_texel_view)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs (select)`
|
|
- `feature::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_pick.rs (new)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs (blit_lack, 2 sites)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs (plan_mipmaps, 2 sites)`; `crates/metal2vulkan-runtime/src/shadow.rs (run)`
|
|
- `feature::HostMemory`: `crates/metal2vulkan-runtime/src/host_memory.rs (new, 3 sites)`; `crates/metal2vulkan-runtime/src/host_memory.rs (no_pointer_refusal)`; `crates/metal2vulkan-runtime/src/host_memory.rs (not_importable)`; `crates/metal2vulkan-runtime/src/host_memory.rs (refuse_unwritable)`; `crates/metal2vulkan-runtime/src/host_memory.rs (unpinnable)`; `crates/metal2vulkan-runtime/src/host_ram.rs (new)`
|
|
- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (gpu_times)`
|
|
- `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
|
|
- `feature::ViewFormatReinterpretation`: `crates/metal2vulkan-runtime/src/view_plan.rs (reinterpretation_refused)`
|
|
- `feature::SeparateMultisampledDepthStencil`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (by_draws)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (plan)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (sampled_candidate)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (scratch, 2 sites)`; `crates/metal2vulkan-runtime/src/nan_clear.rs (nan_write)`
|
|
- `feature::PixelCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (split_pixel_fragments)`
|
|
- `feature::CentroidVarying`: `crates/metal2vulkan/src/pipeline/link/graphics.rs (split_pixel_fragments)`
|
|
- `feature::PrivateMemory`: `crates/metal2vulkan/src/lower/select.rs (function_storage)`
|
|
- `feature::SparseTextures`: `crates/metal2vulkan-runtime/src/sparse/texture.rs (sparse_refusal, 2 sites)`
|
|
- `feature::TimelineSemaphores`: `crates/metal2vulkan-runtime/src/device/create.rs (timeline_difference)`
|
|
- `feature::Reflection`: `crates/metal2vulkan-runtime/src/pipeline/texture_access.rs (at)`; `crates/metal2vulkan/src/bind/argument_buffer.rs (unmeasured)`; `crates/metal2vulkan/src/reflection/derive.rs (gap_at)`; `crates/metal2vulkan/src/reflection/derive.rs (read_attributes)`; `crates/metal2vulkan/src/reflection/derive.rs (specialized_reads)`; `crates/metal2vulkan/src/reflection/function.rs (attribute)`; `crates/metal2vulkan/src/reflection/function.rs (module_constants)`; `crates/metal2vulkan/src/reflection/function.rs (unmeasured)`; `crates/metal2vulkan/src/reflection/linked.rs (function)`; `crates/metal2vulkan/src/reflection/mod.rs (kernel_stage)`
|
|
- `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs (tiling_refusal)`
|
|
- `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs (depth_ranges_refused)`
|
|
- `feature::UndeclaredTextureUsage`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs (refused)`
|
|
- `feature::RenderTargetSize`: `crates/metal2vulkan-runtime/src/render_pass.rs (framebuffer_fits)`
|
|
- `feature::IndirectRenderState`: `crates/metal2vulkan/src/lower/access/encode.rs (select_command)`
|
|
- `feature::GlobalBuiltinInFragment`: `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
|
- `feature::PrivateRenderState`: `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding)`; `crates/metal2vulkan/src/lower/sampler/select.rs (clamps_reference)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (alpha_test_refused)`; `crates/metal2vulkan/src/lower/texture/mod.rs (mode_rounded_write)`; `crates/metal2vulkan/src/pipeline/private_state.rs (logic_operation)`; `crates/metal2vulkan/src/pipeline/private_state.rs (refused)`
|
|
- `feature::ExtendedRangeBlend`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan, 3 sites)`
|
|
- `feature::ProgramScopeBinding`: `crates/metal2vulkan-air/src/abi/module.rs (decode)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
|
- `feature::GenericPointer`: `crates/metal2vulkan-air/src/canon/generic.rs (refuse)`; `crates/metal2vulkan-air/src/canon/generic.rs (refused)`
|
|
- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)`
|
|
- `feature::PostDepthCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)`
|
|
- `feature::WideLines`: `crates/metal2vulkan/src/pipeline/link/band.rs (plan, 3 sites)`
|
|
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture.rs (image)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (new_surface_planes_texture)`
|
|
- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs (descriptor)`
|
|
- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs (make_aliasable)`
|
|
- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs (sparse_zeroing, 2 sites)`
|
|
- `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs (heap_size)`
|
|
- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs (check_heap_base)`
|
|
- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (memory_refusal)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (memory_shadow)`
|
|
- `gap::FunctionTablePastMaxBufferLength`: `crates/metal2vulkan-runtime/src/function_table.rs (past_limit)`
|
|
- `gap::IndirectCommandBufferPastMaxBufferLength`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (new_indirect_command_buffer_now)`
|
|
- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/compute.rs (execute_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (new_indirect_command_buffer_now)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (render_state)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs (draw_resident, 5 sites)`; `crates/metal2vulkan-runtime/src/render/executions.rs (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs (execute_indirect_range, 2 sites)`; `crates/metal2vulkan-runtime/src/render/executions.rs (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs (record_forms)`
|
|
- `gap::IndirectImageblockSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (set_imageblock_size)`
|
|
- `gap::CommandReplay`: `crates/metal2vulkan-runtime/src/binding.rs (bind_into, 2 sites)`; `crates/metal2vulkan-runtime/src/indirect_execute.rs (tables)`
|
|
- `gap::RenderAttachments`: `crates/metal2vulkan-runtime/src/binding.rs (unexpected)`
|
|
- `gap::AccelerationStructures`: `crates/metal2vulkan-runtime/src/binding.rs (unexpected)`
|
|
- `gap::FeatureEnable`: `crates/metal2vulkan-runtime/src/enables.rs (of)`
|
|
- `gap::ExtensionEnable`: `crates/metal2vulkan-runtime/src/enables.rs (of)`
|
|
- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (check_copies)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (stand_in_as, 2 sites)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (attachment_twin)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (of_resolve)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (plan, 2 sites)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs (settle, 2 sites)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs (settle)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs (next_instance)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs (target, 2 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs (destination, 3 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (keep_samples)`
|
|
- `gap::TexelsPastBufferLength`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs (surface_depth_twin)`
|
|
- `gap::OverlappingSurfaceRows`: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_texels_rows_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (new_render_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (ycbcr_write_shadow)`
|
|
- `gap::MemorylessSurfacePlane`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`
|
|
- `gap::SurfacePlaneShape`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`
|
|
- `gap::IndirectCommandPastSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_at)`
|
|
- `gap::ExecutionRangePastBuffer`: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)`
|
|
- `gap::ExecutionRangeOffFour`: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)`
|
|
- `gap::SamplePositionsAtBegin`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (stencil_scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs (positioned_stand_in)`; `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)`
|
|
- `gap::InterpolateAtSampleWithPositions`: `crates/metal2vulkan-runtime/src/render.rs (settle_draw)`
|
|
- `gap::ExportableMemory`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (gap)`
|
|
- `gap::DmaBufExport`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (gap)`
|
|
- `gap::ExportableSemaphore`: `crates/metal2vulkan-runtime/src/exported_semaphore.rs (new_exportable_shared_event_now)`
|
|
- `gap::SyncFileExport`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)`
|
|
- `gap::SharedEventAcrossDevices`: `crates/metal2vulkan-runtime/src/event.rs (new_shared_event_with_handle_now)`
|
|
- `gap::VkImagePlaneCopy`: `crates/metal2vulkan-runtime/src/texture.rs (check_plane_copied)`; `crates/metal2vulkan-runtime/src/texture/view_shadow.rs (view_shadow_plan)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`
|
|
- `gap::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render/draw_shape.rs (settings)`; `crates/metal2vulkan-runtime/src/render_state.rs`; `crates/metal2vulkan-runtime/src/render_state.rs (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs (compensation)`; `crates/metal2vulkan-runtime/src/render_state.rs (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs (depth_ranges_refused)`
|
|
- `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs (collapses, 2 sites)`; `crates/metal2vulkan-runtime/src/render_state.rs (compensation)`; `crates/metal2vulkan-runtime/src/render_state.rs (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_depth_bias)`
|
|
- `gap::DepthNeverWithoutAttachment`: `crates/metal2vulkan-runtime/src/depth_stencil.rs (failing_draw)`
|
|
- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (hidden)`; `crates/metal2vulkan-runtime/src/render.rs (hidden_depth_stencil)`
|
|
- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs (new)`; `crates/metal2vulkan-runtime/src/render.rs (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs (draw_resident, 2 sites)`; `crates/metal2vulkan-runtime/src/render.rs (restarted_list)`
|
|
- `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs (split_steps, 2 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (steps, 2 sites)`
|
|
- `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render/draw_shape/layout_view.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`
|
|
- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident, 2 sites)`
|
|
- `gap::Metal4Api`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs (audit)`
|
|
- `gap::CounterSampleBuffers`: `crates/metal2vulkan-runtime/src/families/limits.rs (state)`
|
|
- `gap::ResidencySets`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs (state)`
|
|
- `gap::TextureAccessCounters`: `crates/metal2vulkan-runtime/src/families/features.rs (state, 2 sites)`
|
|
- `gap::IoCommandQueues`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs (state)`
|
|
- `gap::TextureViewPools`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs (state)`
|
|
- `gap::ColorAttachmentMapping`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`
|
|
- `gap::LossyTextureCompression`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`
|
|
- `gap::ShaderValidation`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`
|
|
- `gap::ShaderLogging`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`
|
|
- `gap::DeviceNotifications`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`
|
|
- `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (refusal)`
|
|
- `gap::LayeredPass`: `crates/metal2vulkan-runtime/src/color_resolve.rs (plan)`
|
|
- `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs (texture_copies_of_bytes)`
|
|
- `gap::EmptyFillPattern`: `crates/metal2vulkan-runtime/src/blit_fill.rs (check_pattern)`
|
|
- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (dma_buf_heap_images_again)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (rebound_heap_images, 3 sites)`; `crates/metal2vulkan-runtime/src/texture/in_place_image.rs (dma_buf_in_place_again, 2 sites)`; `crates/metal2vulkan-runtime/src/texture/in_place_image.rs (in_place_over_copy)`; `crates/metal2vulkan-runtime/src/texture/in_place_image.rs (rebound_in_place_images, 3 sites)`
|
|
- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`
|
|
- `gap::DecodedHeapTexture`: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_texture_size_and_align_now, 2 sites)`
|
|
- `gap::VertexFetchPast4GiB`: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs (check_vertex_reach)`
|
|
- `gap::StageInFetchPast4GiB`: `crates/metal2vulkan-runtime/src/fetch_reach.rs (check_stage_in_reach)`
|
|
- `gap::MappedTextureSampling`: `crates/metal2vulkan-runtime/src/address_map.rs (resolve)`
|
|
- `gap::LibrarySource`: `crates/metal2vulkan-runtime/src/library.rs (new_library_with_source_now)`
|
|
- `gap::RestartedStrip`: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)`
|
|
- `gap::PrivatePrimitives`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render/restart.rs (gap)`
|
|
- `gap::ProvokingVertex`: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)`
|
|
- `gap::WideLines`: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)`
|
|
- `gap::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`
|
|
- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs (new, 2 sites)`; `crates/metal2vulkan-runtime/src/shadow.rs (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs (checked_view)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs (new_usage_shadow)`
|
|
- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/detach.rs (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_ins, 2 sites)`
|
|
- `gap::TextureBufferLevels`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `gap::WriteSwizzle`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs (refuse_detached_texels)`
|
|
- `gap::SurfaceDepthStencil`: `crates/metal2vulkan-runtime/src/blit_texture.rs (unit)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs (surface_depth_twin)`
|
|
- `gap::MultisampledBufferCopy`: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_from_texture_to_buffer)`
|
|
- `gap::MultisampledBufferLayout`: `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan)`
|
|
- `gap::ColorAttachmentGroups`: `crates/metal2vulkan-runtime/src/render/color_groups.rs (gap)`
|
|
- `gap::MadeBeforeRecovery`: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)`; `crates/metal2vulkan-runtime/src/device/line.rs (lost_refusal)`; `crates/metal2vulkan-runtime/src/event.rs (carry)`
|
|
- `gap::AdoptedDeviceRecovery`: `crates/metal2vulkan-runtime/src/device/line.rs (recover_for_test)`
|
|
- `gap::RemadeAfterRecoveryFailed`: `crates/metal2vulkan-runtime/src/pipeline/carry.rs (bound_device)`; `crates/metal2vulkan-runtime/src/pipeline/carry.rs (compiled_otherwise)`; `crates/metal2vulkan-runtime/src/pipeline/render/carry.rs (bound_device)`
|
|
- `apple::ProtectedContent`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_now)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs (refuse_protected_state_encoder)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs (set)`
|
|
- `apple::ViewportTransformDisabled`: `crates/metal2vulkan-runtime/src/apple_only.rs (check)`
|
|
- `apple::VertexAmplificationMode`: `crates/metal2vulkan-runtime/src/apple_only.rs (check)`; `crates/metal2vulkan-runtime/src/apple_only.rs (set_vertex_amplification_mode)`
|
|
- `apple::SurfaceClientDirection`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refuse_client_direction)`
|
|
- `bind::DescriptorRangeExceeded`: `crates/metal2vulkan/src/bind/graphics.rs (rebind_with)`; `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)`
|
|
- `bind::TexelBufferTooLarge`: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges)`
|
|
- `bind::HeapTooLarge`: `crates/metal2vulkan/src/bind/heap.rs (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs (heap_elements)`; `crates/metal2vulkan/src/bind/heap.rs (listed_sampler_tables)`; `crates/metal2vulkan/src/bind/heap.rs (new, 3 sites)`; `crates/metal2vulkan/src/bind/heap.rs (placed)`
|
|
- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)`
|
|
- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)`
|
|
- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding)`
|
|
- `bind::MissingStageInRegion`: `crates/metal2vulkan/src/bind/dispatch.rs (instantiate)`
|
|
- `bind::UniformViewAliased`: `crates/metal2vulkan/src/bind/instantiate.rs (check_uniform_aliasing)`
|
|
- `bind::MissingDeviceAddress`: `crates/metal2vulkan/src/bind/plan/slots.rs (plan_buffer)`; `crates/metal2vulkan/src/bind/replay/draws.rs (parent_entries)`
|
|
- `limit::InlinedInstructions`: `crates/metal2vulkan-air/src/canon/inline.rs (inline)`; `crates/metal2vulkan-air/src/canon/inline.rs (u32_of)`; `crates/metal2vulkan-air/src/canon/inline.rs (usize_of)`
|
|
- `limit::OutputBlocks`: `crates/metal2vulkan/src/structurize/irreducible.rs (round)`; `crates/metal2vulkan/src/structurize/mod.rs (structure_loops)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (output_cap_is_checked_before_allocating)`; `crates/metal2vulkan/src/structurize/structurizer_properties/trees.rs (the_output_cap_is_checked_before_emission)`
|
|
- `limit::IrreducibleDepth`: `crates/metal2vulkan-air/src/graph/loops.rs (compute_in)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (check_within_depth)`; `crates/metal2vulkan/src/structurize/structurizer_properties/mod.rs (irreducible_nesting_beyond_the_cap_is_refused, 2 sites)`
|
|
- `limit::SpirvWords`: `crates/metal2vulkan/src/lower/estimate.rs (check)`; `crates/metal2vulkan/src/lower/estimate.rs (check_emitted)`
|
|
- `limit::WorkUnits`: `crates/metal2vulkan-air/src/budget/mod.rs (counted)`
|
|
- `limit::LedgerBytes`: `crates/metal2vulkan-air/src/bitstream/mod.rs (count)`; `crates/metal2vulkan-air/src/budget/mod.rs (charge)`; `crates/metal2vulkan-air/src/budget/mod.rs (grow, 2 sites)`; `crates/metal2vulkan-air/src/budget/mod.rs (reserve)`; `crates/metal2vulkan-air/src/budget/mod.rs (reserve_exact, 2 sites)`; `crates/metal2vulkan-air/src/graph/mod.rs (grow)`; `crates/metal2vulkan/src/spirv/verify/mod.rs (with_capacity)`
|
|
- `limit::TypeCount`: `crates/metal2vulkan-air/src/bitcode/types.rs (decode)`; `crates/metal2vulkan-air/src/ir/types.rs (intern)`
|
|
- `limit::MetadataNodes`: `crates/metal2vulkan-air/src/bitcode/function.rs (metadata)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs (push)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs (strings)`
|
|
- `limit::BitstreamNesting`: `crates/metal2vulkan-air/src/bitstream/mod.rs (enter_block)`
|
|
- `limit::InstructionCount`: `crates/metal2vulkan-air/src/bitcode/function.rs (call)`; `crates/metal2vulkan-air/src/bitcode/function.rs (constants)`; `crates/metal2vulkan-air/src/bitcode/function.rs (count_record, 2 sites)`; `crates/metal2vulkan-air/src/bitcode/function.rs (decode)`; `crates/metal2vulkan-air/src/bitcode/function.rs (forward)`; `crates/metal2vulkan-air/src/bitcode/function.rs (push, 2 sites)`
|
|
- `limit::LayoutNesting`: `crates/metal2vulkan-air/src/abi/structs.rs (finish)`; `crates/metal2vulkan-air/src/abi/structs.rs (open)`; `crates/metal2vulkan/src/bind/argument_buffer.rs (layout)`
|
|
- `limit::ConstructNesting`: `crates/metal2vulkan/src/structurize/emit.rs (check_tree)`; `crates/metal2vulkan/src/structurize/emit/predicate.rs (facts_of)`
|
|
- `limit::PrivateArenaBytes`: `crates/metal2vulkan/src/lower/access/local.rs (use_arena)`; `crates/metal2vulkan/src/memory/plan.rs (place_allocas, 2 sites)`
|
|
- `limit::CallStackBytes`: `crates/metal2vulkan-air/src/canon/recursion.rs (metal_stack)`
|
|
- `ratemap::ScreenExtent`: `crates/metal2vulkan-runtime/src/rate_map.rs (compile_over)`; `crates/metal2vulkan/src/bind/rate_map.rs (new)`
|
|
- `ratemap::LayerCount`: `crates/metal2vulkan/src/bind/rate_map.rs (new)`
|
|
- `ratemap::DenseSamples`: `crates/metal2vulkan/src/bind/rate_map.rs (new)`
|
|
- `ratemap::SampleOutOfRange`: `crates/metal2vulkan/src/bind/rate_map.rs (new)`
|
|
- `ratemap::SampleCount`: `crates/metal2vulkan/src/bind/rate_map.rs (new)`
|
|
- `budget::Time`: `crates/metal2vulkan-air/src/budget/mod.rs (counted)`
|
|
- `invalid::EncoderOpen`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_refusal)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (queue_commit)`
|
|
- `invalid::ProtectedEncoder`: `crates/metal2vulkan-runtime/src/blit.rs (refuse_aborted)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs (refuse_protected)`
|
|
- `invalid::EncoderAbandoned`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_refusal)`
|
|
- `invalid::AlreadyCommitted`: `crates/metal2vulkan-runtime/src/command_buffer/checks.rs (set_submission_check)`; `crates/metal2vulkan-runtime/src/command_buffer/group.rs (set_completion_joins_next)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (commit_refusal)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (encode_signal_event_scheduled)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (refusal)`
|
|
- `invalid::ScheduledSignalAfterCompletion`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (encode_signal_event_scheduled)`
|
|
- `invalid::ForeignObject`: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)`
|
|
- `invalid::DmaBuf`: `crates/metal2vulkan-runtime/src/dma_buf.rs (import_from_source)`; `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_runs_as_dma_buf)`; `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_span_as_dma_buf)`
|
|
- `invalid::HostRam`: `crates/metal2vulkan-runtime/src/host_ram.rs (new)`; `crates/metal2vulkan-runtime/src/host_ram.rs (ram_use_on)`; `crates/metal2vulkan-runtime/src/host_ram.rs (route_runs)`; `crates/metal2vulkan-runtime/src/host_ram/copy.rs (record_host_ram_copy)`; `crates/metal2vulkan-runtime/src/host_ram/copy.rs (record_regions)`; `crates/metal2vulkan-runtime/src/host_ram/texture.rs (record_host_ram_texture_copy)`
|
|
- `invalid::HostPagesBacking`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)`
|
|
- `invalid::WrappedImage`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`
|
|
- `invalid::NotShareable`: `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_handle)`
|
|
- `invalid::Semaphore`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (binary_command)`
|
|
- `invalid::NotExportable`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file)`; `crates/metal2vulkan-runtime/src/exported_memory.rs (export_memory, 2 sites)`; `crates/metal2vulkan-runtime/src/exported_memory.rs (external_write_done)`; `crates/metal2vulkan-runtime/src/exported_semaphore.rs (export_semaphore_fd)`
|
|
- `invalid::SyncFile`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)`; `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file, 4 sites)`
|
|
- `invalid::CopyQueue`: `crates/metal2vulkan-runtime/src/blit.rs (logged_after)`; `crates/metal2vulkan-runtime/src/blit.rs (refuse_unshared)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (refuse_for_copies)`
|
|
- `invalid::NoPipelineState`: `crates/metal2vulkan-runtime/src/compute.rs`; `crates/metal2vulkan-runtime/src/compute.rs (dispatch_indirect_resident)`; `crates/metal2vulkan-runtime/src/compute.rs (dispatch_resident)`; `crates/metal2vulkan-runtime/src/compute.rs (inherited_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (drawn_by)`; `crates/metal2vulkan-runtime/src/render/executions.rs (inherited_pipeline)`; `crates/metal2vulkan-runtime/src/render/mesh.rs (mesh_draws_nothing)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `invalid::IndexOutOfRange`: `crates/metal2vulkan-runtime/src/argument_table.rs (check_index)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (problem)`
|
|
- `invalid::OffsetOutOfRange`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (buffer_word)`; `crates/metal2vulkan-runtime/src/argument_table.rs (check_bound_buffer)`; `crates/metal2vulkan-runtime/src/argument_table.rs (check_offsets)`; `crates/metal2vulkan-runtime/src/argument_table.rs (take_buffer_offset)`; `crates/metal2vulkan-runtime/src/render/table_facts.rs (set_buffer_offset)`
|
|
- `invalid::InlineBytesLength`: `crates/metal2vulkan-runtime/src/argument_table.rs (set_bytes)`; `crates/metal2vulkan-runtime/src/render/table_facts.rs (set_bytes)`
|
|
- `invalid::ImageblockSize`: `crates/metal2vulkan-runtime/src/compute.rs (imageblock_size, 2 sites)`; `crates/metal2vulkan-runtime/src/compute.rs (validated_imageblock_size)`
|
|
- `invalid::EmptyThreadgroup`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `invalid::SizeOutOfRange`: `crates/metal2vulkan-runtime/src/render/mesh.rs`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `invalid::BufferLength`: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`; `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (placed_new_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (pooled_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (unzeroed_buffer_with)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (buffer_over_host_parts)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (copied_buffer)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (host_window)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)`; `crates/metal2vulkan-runtime/src/exported_memory.rs (exportable_buffer, 2 sites)`; `crates/metal2vulkan-runtime/src/heap.rs (check_length)`; `crates/metal2vulkan-runtime/src/heap.rs (new_buffer)`; `crates/metal2vulkan-runtime/src/managed_copy.rs (two_copy_buffer)`; `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)`
|
|
- `invalid::UndefinedValue`: `crates/metal2vulkan-runtime/src/attributes.rs (from_raw)`; `crates/metal2vulkan-runtime/src/degradation.rs (refuse_private_bit)`; `crates/metal2vulkan-runtime/src/heap.rs (from_raw)`; `crates/metal2vulkan-runtime/src/render_values.rs (undefined)`; `crates/metal2vulkan-runtime/src/sparse/mod.rs (undefined)`; `crates/metal2vulkan-runtime/src/values.rs (undefined)`; `crates/metal2vulkan-runtime/src/visibility.rs (from_raw, 2 sites)`
|
|
- `invalid::StorageMode`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target)`; `crates/metal2vulkan-runtime/src/buffer.rs (buffer_class)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (host_class)`; `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)`; `crates/metal2vulkan-runtime/src/heap.rs (no_copy_heap_with_token)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (new_indirect_command_buffer_now)`; `crates/metal2vulkan-runtime/src/rate_map.rs (copy_parameter_data_to_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs (check_viewable)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_layout)`; `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_now)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`; `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)`
|
|
- `invalid::HandlerAfterCommit`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completed_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completion_seen_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_scheduled_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_submission_handler)`; `crates/metal2vulkan-runtime/src/executed_commands.rs (add_executed_commands_handler)`
|
|
- `invalid::LengthMismatch`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (set_buffers)`; `crates/metal2vulkan-runtime/src/argument_table.rs (set_buffers_with_strides)`; `crates/metal2vulkan-runtime/src/argument_table.rs (set_samplers)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now, 2 sites)`; `crates/metal2vulkan-runtime/src/render/table_facts.rs (check_samplers)`; `crates/metal2vulkan-runtime/src/render/table_facts.rs (set_buffers)`; `crates/metal2vulkan-runtime/src/sparse/mod.rs (convert_sparse_pixel_regions_now)`
|
|
- `invalid::PaddingUnobservedNoCopy`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)`
|
|
- `invalid::AlignedByteNoCopy`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)`
|
|
- `invalid::ExportedNoCopy`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (new_buffer_with_descriptor_now)`
|
|
- `invalid::LongTextureBufferFillPattern`: `crates/metal2vulkan-runtime/src/blit_fill.rs (check_pattern)`
|
|
- `invalid::RangeOutOfBounds`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target_offset)`; `crates/metal2vulkan-runtime/src/blit.rs (out_of_bounds)`; `crates/metal2vulkan-runtime/src/managed.rs (did_modify_range)`; `crates/metal2vulkan-runtime/src/rate_map.rs (copy_parameter_data_to_buffer)`
|
|
- `invalid::ShaderCacheCapacity`: `crates/metal2vulkan-runtime/src/shader_cache/mod.rs (of_in)`
|
|
- `invalid::MaxCommandBufferCount`: `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_unshared_now)`; `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_with_max_command_buffer_count_now)`
|
|
- `invalid::Texture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (error, 2 sites)`
|
|
- `invalid::TextureView`: `crates/metal2vulkan-runtime/src/texture.rs (checked_view, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (subview, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (view_error, 2 sites)`
|
|
- `invalid::Copy`: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (check_slice_level)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_error)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_from_texture_to_buffer)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_texture_slices)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (multisampled_region)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (plan_copy, 2 sites)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (plane_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (region)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (bytes)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (past_runs)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (write_past)`; `crates/metal2vulkan-runtime/src/host_ram/texture.rs (record_host_ram_texture_copy, 2 sites)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (copy_error)`; `crates/metal2vulkan-runtime/src/texture.rs (get_bytes)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy, 5 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (replace)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (contents)`
|
|
- `invalid::Mipmap`: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)`
|
|
- `invalid::BufferTexture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error, 2 sites)`; `crates/metal2vulkan-runtime/src/capabilities.rs (linear_alignment_rule)`
|
|
- `invalid::RenderPass`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (check_descriptor)`; `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (of)`; `crates/metal2vulkan-runtime/src/render.rs (store_problem)`; `crates/metal2vulkan-runtime/src/render/late_resolve.rs (problem)`; `crates/metal2vulkan-runtime/src/render_pass.rs (2 sites)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil, 2 sites)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout, 4 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (problem)`; `crates/metal2vulkan-runtime/src/sample_positions.rs (problem)`
|
|
- `invalid::Draw`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives_in)`; `crates/metal2vulkan-runtime/src/render.rs (draw_problem)`
|
|
- `invalid::PointSizeTopology`: `crates/metal2vulkan-runtime/src/pipeline/render.rs (create_checked)`
|
|
- `invalid::IndirectScaledTessellation`: `crates/metal2vulkan-runtime/src/pipeline/render.rs (make_reflecting)`
|
|
- `invalid::CompiledKernel`: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)`
|
|
- `invalid::UnspecializedFunction`: `crates/metal2vulkan-runtime/src/pipeline/unspecialized.rs (check)`
|
|
- `invalid::DuplicateLinkedFunction`: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)`
|
|
- `invalid::RenderState`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)`
|
|
- `invalid::Visibility`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
|
|
- `invalid::Heap`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/heap.rs (check_type)`; `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (max_available_size)`; `crates/metal2vulkan-runtime/src/heap.rs (new_buffer_at_offset)`; `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)`; `crates/metal2vulkan-runtime/src/heap.rs (no_copy_heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (past_end)`; `crates/metal2vulkan-runtime/src/heap.rs (placed_options)`; `crates/metal2vulkan-runtime/src/texture.rs (new_texture)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_offset)`
|
|
- `invalid::ResourceId`: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_limit)`
|
|
- `invalid::ReservationHangs`: `crates/metal2vulkan-runtime/src/resource_ids.rs (reserve_resource_ids_now)`
|
|
- `invalid::OutsidePlacement`: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_sampler_placement)`; `crates/metal2vulkan-runtime/src/resource_ids.rs (check_texture_placement)`; `crates/metal2vulkan-runtime/src/resource_ids.rs (pipeline_placement)`; `crates/metal2vulkan-runtime/src/resource_ids.rs (records_placement)`
|
|
- `invalid::FunctionTable`: `crates/metal2vulkan-runtime/src/argument_table.rs (check_function_tables)`; `crates/metal2vulkan-runtime/src/function_table.rs (not_one_stage)`; `crates/metal2vulkan-runtime/src/function_table.rs (set)`
|
|
- `invalid::IndirectCommandBuffer`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (problem)`
|
|
- `invalid::RateMap`: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates, 2 sites)`; `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates, 2 sites)`; `crates/metal2vulkan-runtime/src/rate_map.rs (reset)`; `crates/metal2vulkan-runtime/src/rate_map.rs (validate)`
|
|
- `invalid::ArgumentEncoder`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (new_argument_encoder_for_buffer_at_index)`; `crates/metal2vulkan-runtime/src/argument_encoder.rs (problem)`
|
|
- `invalid::IndirectDispatchRange`: `crates/metal2vulkan-runtime/src/indirect_dispatch.rs (arguments_offset)`
|
|
- `invalid::Sparse`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (move_texture_mappings)`; `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mapping_indirect)`; `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mappings)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture, 2 sites)`
|
|
- `invalid::WrappedBuffer`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)`
|
|
- `invalid::RequiredThreads`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`; `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel_maximum)`
|
|
- `invalid::BinaryFunctions`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added, 2 sites)`; `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_mesh)`; `crates/metal2vulkan-runtime/src/pipeline/additions.rs (new_compute_pipeline_state_with_additional_binary_functions)`; `crates/metal2vulkan-runtime/src/pipeline/additions.rs (not_precompiled)`
|
|
- `invalid::DynamicLibraryFunction`: `crates/metal2vulkan-runtime/src/library.rs (function)`
|
|
- `invalid::Rebind`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/detach.rs (detach_backing, 2 sites)`; `crates/metal2vulkan-runtime/src/rebind.rs (rebind_bytes_no_copy, 2 sites)`
|
|
- `invalid::IndirectCommandsDirectArgument`: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (refusal)`
|
|
- `invalid::UnrasterizedVertexReturn`: `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (rasterizes)`
|
|
- `invalid::RasterizedVoidVertex`: `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (compiled)`; `crates/metal2vulkan-runtime/src/pipeline/unrasterized.rs (rasterizes)`
|
|
- `invalid::IndirectCommandsDirectArgumentUnproven`: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (check_render)`
|
|
- `invalid::IndirectCommandsDirectArgumentUndecided`: `crates/metal2vulkan-runtime/src/pipeline/indirect_arguments.rs (undecided)`
|
|
- `invalid::DepthWrittenWithoutAttachment`: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_depth)`
|
|
- `invalid::UnwrittenFragmentInputs`: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_inputs)`
|
|
- `invalid::UnwrittenFragmentInputsUnproven`: `crates/metal2vulkan-runtime/src/pipeline/linked_fragment.rs (check_inputs)`
|
|
- `invalid::AttachmentNotAFormat`: `crates/metal2vulkan-runtime/src/pipeline/attachment_formats.rs (check)`
|
|
- `invalid::RasterSampleCount`: `crates/metal2vulkan-runtime/src/pipeline/raster_samples.rs (refused)`
|
|
- `subproblem::WrappedImageProblem::NullImage`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`
|
|
- `subproblem::WrappedImageProblem::ImageType`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`
|
|
- `subproblem::WrappedImageProblem::Layout`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (check_layouts)`
|
|
- `subproblem::WrappedImageProblem::Untracked`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`
|
|
- `subproblem::SemaphoreProblem::Null`: `crates/metal2vulkan-runtime/src/interop.rs (semaphore_problem)`
|
|
- `subproblem::SemaphoreProblem::Timeline`: `crates/metal2vulkan-runtime/src/interop.rs (semaphore_problem)`
|
|
- `subproblem::SyncFileProblem::Committed`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (add_completion_sync_file)`
|
|
- `subproblem::SyncFileProblem::NotCommitted`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file)`
|
|
- `subproblem::SyncFileProblem::Exported`: `crates/metal2vulkan-runtime/src/command_buffer/sync_file.rs (export_completion_sync_file, 3 sites)`
|
|
- `subproblem::CopyQueueProblem::Encoder`: `crates/metal2vulkan-runtime/src/encoder.rs (open_placed)`; `crates/metal2vulkan-runtime/src/render.rs (render_command_encoder)`; `crates/metal2vulkan-runtime/src/sparse/encoder.rs (resource_state_command_encoder)`
|
|
- `subproblem::CopyQueueProblem::Command`: `crates/metal2vulkan-runtime/src/blit.rs (logged_after)`
|
|
- `subproblem::CopyQueueProblem::Buffer`: `crates/metal2vulkan-runtime/src/blit.rs (refuse_unshared)`
|
|
- `subproblem::TextureProblem::NotAFormat`: `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::ZeroExtent`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::ExtentForType`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::CubeNotSquare`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::ArrayLength`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::MipmapLevelCount`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::SampleCount`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)`
|
|
- `subproblem::TextureProblem::SwizzleWithWrites`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::ExtentOverflow`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::TypeForFormat`: `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_refused, 2 sites)`
|
|
- `subproblem::TextureProblem::ViewOnlyFormat`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format)`
|
|
- `subproblem::TextureProblem::ExtentForFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (extent_for_format)`
|
|
- `subproblem::TextureProblem::UsageForFormat`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 3 sites)`
|
|
- `subproblem::TextureProblem::Unspecialized`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::Rotation`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::RotationWithoutFramebufferOnly`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::TextureProblem::FramebufferOnly`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`
|
|
- `subproblem::TextureProblem::NoTextureOfFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)`
|
|
- `subproblem::TextureProblem::PastLargestSide`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`
|
|
- `subproblem::ViewProblem::NotAFormat`: `crates/metal2vulkan-runtime/src/view_plan.rs (check_format)`
|
|
- `subproblem::ViewProblem::FormatIncompatible`: `crates/metal2vulkan-runtime/src/texture.rs (checked_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 4 sites)`
|
|
- `subproblem::ViewProblem::TypeIncompatible`: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)`
|
|
- `subproblem::ViewProblem::LevelRange`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs (subview)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)`
|
|
- `subproblem::ViewProblem::SliceRange`: `crates/metal2vulkan-runtime/src/texture.rs (subview)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)`
|
|
- `subproblem::ViewProblem::SliceCount`: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)`
|
|
- `subproblem::ViewProblem::BufferSlices`: `crates/metal2vulkan-runtime/src/texture.rs (checked_view)`
|
|
- `subproblem::ViewProblem::SwizzledViewOfNoUsage`: `crates/metal2vulkan-runtime/src/view_plan.rs (check_view)`
|
|
- `subproblem::CopyProblem::CpuAccessPrivate`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (bytes)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (past_runs)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (write_past)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (plan_host_copy)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (contents)`
|
|
- `subproblem::CopyProblem::Region`: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (source_region, 2 sites)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (check_slice_level)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_texture_slices)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (multisampled_region)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (region)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (check_region, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`
|
|
- `subproblem::CopyProblem::Offset`: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_block_order_copy)`
|
|
- `subproblem::CopyProblem::BytesPerRow`: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (placed_rows)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (plan_host_copy)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan)`
|
|
- `subproblem::CopyProblem::BufferRange`: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_layout)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (placed_rows, 2 sites)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_block_order_copy)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_placed_copy)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_rows_copy, 2 sites)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan)`; `crates/metal2vulkan-runtime/src/texture.rs (get_bytes)`; `crates/metal2vulkan-runtime/src/texture.rs (replace)`
|
|
- `subproblem::CopyProblem::Format`: `crates/metal2vulkan-runtime/src/blit_plan.rs (check_formats)`
|
|
- `subproblem::CopyProblem::SampleCount`: `crates/metal2vulkan-runtime/src/blit_plan.rs (check)`
|
|
- `subproblem::CopyProblem::Size`: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_whole_copy, 2 sites)`
|
|
- `subproblem::MipmapProblem::NotColorRenderable`: `crates/metal2vulkan-runtime/src/mipmap_plan.rs (format_problem)`
|
|
- `subproblem::BufferTextureProblem::NotLinear`: `crates/metal2vulkan-runtime/src/linear_plan.rs (backed)`; `crates/metal2vulkan-runtime/src/linear_plan.rs (linear_alignment)`
|
|
- `subproblem::BufferTextureProblem::RowPitch`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (covers_its_row)`
|
|
- `subproblem::BufferTextureProblem::PastAllocation`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`
|
|
- `subproblem::RenderPassProblem::NoTargets`: `crates/metal2vulkan-runtime/src/render_pass.rs`
|
|
- `subproblem::RenderPassProblem::AttachmentFormat`: `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`
|
|
- `subproblem::RenderPassProblem::AttachmentSubresource`: `crates/metal2vulkan-runtime/src/render_pass.rs (check_planes, 2 sites)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`
|
|
- `subproblem::RenderPassProblem::SampleCounts`: `crates/metal2vulkan-runtime/src/render_pass.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)`
|
|
- `subproblem::RenderPassProblem::ClearDepth`: `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)`
|
|
- `subproblem::RenderPassProblem::StoreActionKnown`: `crates/metal2vulkan-runtime/src/render.rs (late_store)`; `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action_options)`
|
|
- `subproblem::RenderPassProblem::NoAttachment`: `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action)`; `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action_options)`; `crates/metal2vulkan-runtime/src/render.rs (set_color_store_action_options)`; `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_aspect_resolve_target, 2 sites)`; `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_color_resolve_target)`
|
|
- `subproblem::RenderPassProblem::ResolveWithoutTexture`: `crates/metal2vulkan-runtime/src/render.rs (late_store)`; `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_color_resolve_target)`; `crates/metal2vulkan-runtime/src/resolve.rs (resolves)`
|
|
- `subproblem::RenderPassProblem::ResolveStoreAction`: `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_aspect_resolve_target)`; `crates/metal2vulkan-runtime/src/render/late_resolve.rs (set_color_resolve_target)`
|
|
- `subproblem::RenderPassProblem::ResolveSourceSamples`: `crates/metal2vulkan-runtime/src/resolve.rs (single_sampled)`
|
|
- `subproblem::RenderPassProblem::ResolveSamples`: `crates/metal2vulkan-runtime/src/resolve.rs (destination)`
|
|
- `subproblem::RenderPassProblem::ResolveFormat`: `crates/metal2vulkan-runtime/src/resolve.rs (color)`; `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs (destination)`
|
|
- `subproblem::RenderPassProblem::ResolveSubresource`: `crates/metal2vulkan-runtime/src/resolve.rs (destination)`
|
|
- `subproblem::RenderPassProblem::ResolveSize`: `crates/metal2vulkan-runtime/src/resolve.rs (color)`; `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs (destination)`
|
|
- `subproblem::RenderPassProblem::DepthStencilResolveMix`: `crates/metal2vulkan-runtime/src/render.rs (set_aspect_store_action)`; `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)`
|
|
- `subproblem::RenderPassProblem::DepthResolvedSampleWithoutDepthResolve`: `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)`
|
|
- `subproblem::RenderPassProblem::MemorylessResolve`: `crates/metal2vulkan-runtime/src/resolve.rs (destination)`
|
|
- `subproblem::RenderPassProblem::TileSize`: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)`
|
|
- `subproblem::RenderPassProblem::TileSizeAtSamples`: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)`
|
|
- `subproblem::RenderPassProblem::PerSampleStorage`: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)`
|
|
- `subproblem::RenderPassProblem::ThreadgroupMemoryLength`: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)`
|
|
- `subproblem::RenderPassProblem::TileMemory`: `crates/metal2vulkan-runtime/src/tile_pass.rs (check)`
|
|
- `subproblem::RenderPassProblem::RateMapArrayLength`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (check_descriptor)`
|
|
- `subproblem::RenderPassProblem::RateMapTargetSize`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs (of)`
|
|
- `subproblem::RenderPassProblem::ArrayLengthPastSlices`: `crates/metal2vulkan-runtime/src/render_pass.rs (check_planes)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`
|
|
- `subproblem::RenderPassProblem::SamplePosition`: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)`
|
|
- `subproblem::RenderPassProblem::SamplePositionCount`: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)`
|
|
- `subproblem::RenderPassProblem::SamplePositionsSamples`: `crates/metal2vulkan-runtime/src/sample_positions.rs (refusal_error)`
|
|
- `subproblem::RenderPassProblem::StoreActionOptionsWithoutPositions`: `crates/metal2vulkan-runtime/src/sample_positions.rs (check_options)`
|
|
- `subproblem::RenderPassProblem::StoreActionOptions`: `crates/metal2vulkan-runtime/src/sample_positions.rs (check_options)`
|
|
- `subproblem::RenderPassProblem::CustomSampleDepthStore`: `crates/metal2vulkan-runtime/src/render.rs (late_store)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout, 2 sites)`
|
|
- `subproblem::RenderPassProblem::DefaultRasterSampleCount`: `crates/metal2vulkan-runtime/src/render_pass.rs`
|
|
- `subproblem::DrawProblem::AttachmentFormat`: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (check_tile)`
|
|
- `subproblem::DrawProblem::SampleCount`: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (check_tile)`
|
|
- `subproblem::DrawProblem::ImageblockSampleLength`: `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (check_tile)`
|
|
- `subproblem::DrawProblem::TileState`: `crates/metal2vulkan-runtime/src/render.rs (drawn_by)`; `crates/metal2vulkan-runtime/src/render/mesh.rs (mesh_draws_nothing)`
|
|
- `subproblem::DrawProblem::DrawKind`: `crates/metal2vulkan-runtime/src/render.rs (drawn_by, 2 sites)`; `crates/metal2vulkan-runtime/src/render/mesh.rs (mesh_draws_nothing)`
|
|
- `subproblem::DrawProblem::NoTessellationFactorBuffer`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`
|
|
- `subproblem::DrawProblem::IndirectBufferRange`: `crates/metal2vulkan-runtime/src/render.rs (check_arguments)`
|
|
- `subproblem::DrawProblem::NotTileState`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `subproblem::DrawProblem::ThreadsPerTilePastTile`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
|
|
- `subproblem::DrawProblem::AmplificationCount`: `crates/metal2vulkan-runtime/src/amplification.rs (bind_state)`
|
|
- `subproblem::DrawProblem::ViewMappings`: `crates/metal2vulkan-runtime/src/amplification.rs (new)`
|
|
- `subproblem::DrawProblem::PatchIndexBufferRange`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`; `crates/metal2vulkan-runtime/src/render.rs (check_patch_indices)`
|
|
- `subproblem::DrawProblem::ControlPointIndexBufferRange`: `crates/metal2vulkan-runtime/src/render.rs (check_control_point_indices)`
|
|
- `subproblem::DrawProblem::IndexBufferRange`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives_in)`
|
|
- `subproblem::RenderStateProblem::Count`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)`
|
|
- `subproblem::RenderStateProblem::ViewportNotFinite`: `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)`
|
|
- `subproblem::VisibilityProblem::NoBuffer`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
|
|
- `subproblem::VisibilityProblem::OffsetOutOfRange`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
|
|
- `subproblem::VisibilityProblem::OffsetReused`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
|
|
- `subproblem::HeapProblem::Size`: `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)`; `crates/metal2vulkan-runtime/src/heap.rs (no_copy_heap_with_token)`
|
|
- `subproblem::HeapProblem::HeapType`: `crates/metal2vulkan-runtime/src/heap.rs (check_type)`; `crates/metal2vulkan-runtime/src/texture.rs (new_texture)`
|
|
- `subproblem::HeapProblem::Offset`: `crates/metal2vulkan-runtime/src/heap.rs (new_buffer_at_offset)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_offset)`
|
|
- `subproblem::HeapProblem::PastEnd`: `crates/metal2vulkan-runtime/src/heap.rs (past_end)`
|
|
- `subproblem::HeapProblem::StorageMode`: `crates/metal2vulkan-runtime/src/heap.rs (placed_options)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`
|
|
- `subproblem::HeapProblem::CpuCacheMode`: `crates/metal2vulkan-runtime/src/heap.rs (placed_options)`
|
|
- `subproblem::HeapProblem::Alignment`: `crates/metal2vulkan-runtime/src/heap.rs (max_available_size)`
|
|
- `subproblem::HeapProblem::HostMemoryAlignment`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`
|
|
- `subproblem::FunctionTableProblem::HandleOfAnotherState`: `crates/metal2vulkan-runtime/src/function_table.rs (set)`
|
|
- `subproblem::FunctionTableProblem::TableAtBufferIndex`: `crates/metal2vulkan-runtime/src/argument_table.rs (check_function_tables)`
|
|
- `subproblem::FunctionTableProblem::StageWithoutFunction`: `crates/metal2vulkan-runtime/src/function_table.rs (not_one_stage)`
|
|
- `subproblem::IndirectCommandBufferProblem::NoCommandTypes`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_command_types)`
|
|
- `subproblem::IndirectCommandBufferProblem::Range`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_range)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (inside)`
|
|
- `subproblem::IndirectCommandBufferProblem::InheritedPipelineState`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in, 2 sites)`
|
|
- `subproblem::IndirectCommandBufferProblem::PipelineWithoutSupport`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in, 3 sites)`
|
|
- `subproblem::IndirectCommandBufferProblem::CommandType`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_draw)`
|
|
- `subproblem::IndirectCommandBufferProblem::CommandKind`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (buffer_in)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_draw)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_getter)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_kind)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (edit_in)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (reset)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (set_object_threadgroup_memory_length)`
|
|
- `subproblem::IndirectCommandBufferProblem::RenderState`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (render_state)`
|
|
- `subproblem::IndirectCommandBufferProblem::ObjectThreadgroupMemory`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (set_object_threadgroup_memory_length)`
|
|
- `subproblem::IndirectCommandBufferProblem::PipelineKind`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (pipeline_in)`
|
|
- `subproblem::RateMapProblem::ScreenSize`: `crates/metal2vulkan-runtime/src/rate_map.rs (validate)`
|
|
- `subproblem::RateMapProblem::LayerCount`: `crates/metal2vulkan-runtime/src/rate_map.rs (reset)`; `crates/metal2vulkan-runtime/src/rate_map.rs (validate)`
|
|
- `subproblem::RateMapProblem::NoLayers`: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates)`; `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates)`
|
|
- `subproblem::RateMapProblem::EmptyScreen`: `crates/metal2vulkan-runtime/src/rate_map.rs (map_screen_to_physical_coordinates)`
|
|
- `subproblem::RateMapProblem::NotCompiled`: `crates/metal2vulkan-runtime/src/rate_map.rs (map_physical_to_screen_coordinates)`
|
|
- `subproblem::ArgumentEncoderProblem::Layout`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (layout_error)`
|
|
- `subproblem::ArgumentEncoderProblem::NoNestedArgumentBuffer`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (new_argument_encoder_for_buffer_at_index)`
|
|
- `subproblem::ArgumentEncoderProblem::NoArgumentBuffer`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (mapped)`
|
|
- `subproblem::ArgumentEncoderProblem::NoArgument`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (argument_place)`; `crates/metal2vulkan-runtime/src/argument_encoder.rs (write)`
|
|
- `subproblem::ArgumentEncoderProblem::ArgumentType`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (argument_place)`
|
|
- `subproblem::SparseProblem::TextureType`: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`
|
|
- `subproblem::SparseProblem::DualPlane`: `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`
|
|
- `subproblem::SparseProblem::NotSparse`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (move_texture_mappings)`
|
|
- `subproblem::SparseProblem::Lengths`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mappings)`
|
|
- `subproblem::SparseProblem::IndirectArguments`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (update_texture_mapping_indirect)`
|
|
- `subproblem::WrappedBufferProblem::NullBuffer`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::NullMemory`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::Size`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::Usage`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::Sparse`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::Protected`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::QueueFamily`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::MemoryType`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::WrappedBufferProblem::Contents`: `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (problem)`
|
|
- `subproblem::RequiredThreadsProblem::EmptyAxis`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`
|
|
- `subproblem::RequiredThreadsProblem::OverDeviceLimit`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`
|
|
- `subproblem::RequiredThreadsProblem::OverMaxTotal`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`
|
|
- `subproblem::RequiredThreadsProblem::MaxTotalDiffers`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel)`
|
|
- `subproblem::RequiredThreadsProblem::OverKernelMax`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_kernel_maximum)`
|
|
- `subproblem::BinaryFunctionProblem::NotSupported`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added)`; `crates/metal2vulkan-runtime/src/pipeline/additions.rs (new_compute_pipeline_state_with_additional_binary_functions)`
|
|
- `subproblem::BinaryFunctionProblem::NotPrecompiled`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (not_precompiled)`
|
|
- `subproblem::BinaryFunctionProblem::ObjectOrMeshStage`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (check_mesh)`
|
|
- `subproblem::BinaryFunctionProblem::CompiledStage`: `crates/metal2vulkan-runtime/src/pipeline/additions.rs (added)`
|
|
- `subproblem::RebindProblem::NotHostMemory`: `crates/metal2vulkan-runtime/src/detach.rs (detach_backing, 2 sites)`; `crates/metal2vulkan-runtime/src/rebind.rs (rebind_bytes_no_copy, 2 sites)`
|
|
- `subproblem::RebindProblem::EncodedUses`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`
|
|
- `floor::Version`: `crates/metal2vulkan-rt/src/floor.rs (decide)`
|
|
- `floor::Extension`: `crates/metal2vulkan-rt/src/floor.rs (decide)`
|
|
- `floor::Feature`: `crates/metal2vulkan-rt/src/floor.rs (decide)`
|
|
- `floor::Limit`: `crates/metal2vulkan-rt/src/floor.rs (decide, 2 sites)`
|
|
- `floor::QueueFamily`: `crates/metal2vulkan-rt/src/floor.rs (decide)`
|
|
- `floor::MemoryType`: `crates/metal2vulkan-rt/src/floor.rs (choose)`
|
|
- `floor::TimeDomain`: `crates/metal2vulkan-rt/src/floor.rs (decide)`
|
|
- `floor::SetLayout`: `crates/metal2vulkan-rt/src/arrays.rs (supported)`
|
|
- `rt:Refusal::EmptyBuffer`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`; `crates/metal2vulkan-rt/src/buffer.rs (placed_buffer)`
|
|
- `rt:Refusal::BufferTooLong`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`; `crates/metal2vulkan-rt/src/buffer.rs (placed_buffer)`
|
|
- `rt:Refusal::BufferPastBlock`: `crates/metal2vulkan-rt/src/buffer.rs (placed)`
|
|
- `rt:Refusal::HeapBufferPlace`: `crates/metal2vulkan-rt/src/buffer.rs (new_heap_buffer)`
|
|
- `rt:Refusal::ManagedBlockNotShared`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`
|
|
- `rt:Refusal::ManagedCopyMissing`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`
|
|
- `rt:Refusal::ManagedCopyOnUnified`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`
|
|
- `rt:Refusal::ManagedCopyNotPrivate`: `crates/metal2vulkan-rt/src/buffer.rs (new_managed_buffer)`
|
|
- `rt:Refusal::ZeroRangePastBlock`: `crates/metal2vulkan-rt/src/buffer.rs (zero_block_range)`
|
|
- `rt:Refusal::ZeroRangeShared`: `crates/metal2vulkan-rt/src/buffer.rs (zero_block_range)`
|
|
- `rt:Refusal::NotExported`: `crates/metal2vulkan-rt/src/blit.rs (release_to_external)`; `crates/metal2vulkan-rt/src/export.rs (external_writes_done)`
|
|
- `rt:Refusal::SurfacePlanes`: `crates/metal2vulkan-rt/src/surface.rs (new_exported_surface, 2 sites)`
|
|
- `rt:Refusal::ModifiedRange`: `crates/metal2vulkan-rt/src/buffer.rs (did_modify_range)`
|
|
- `rt:Refusal::Committed`: `crates/metal2vulkan-rt/src/command.rs (open)`
|
|
- `rt:Refusal::InScheduledHandler`: `crates/metal2vulkan-rt/src/command.rs (not_in_scheduled_handler)`
|
|
- `rt:Refusal::WaitOnOwnThread`: `crates/metal2vulkan-rt/src/command.rs (wait_until_completed)`; `crates/metal2vulkan-rt/src/command.rs (wait_until_scheduled)`; `crates/metal2vulkan-rt/src/event.rs (wait_until_signaled_value)`; `crates/metal2vulkan-rt/src/queue.rs (command_buffer)`
|
|
- `rt:Refusal::OtherDevice`: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`; `crates/metal2vulkan-rt/src/blit.rs (copy_from_buffer_to_buffer)`; `crates/metal2vulkan-rt/src/blit.rs (copy_from_texture)`; `crates/metal2vulkan-rt/src/blit.rs (fill_buffer)`; `crates/metal2vulkan-rt/src/blit.rs (generate_mipmaps)`; `crates/metal2vulkan-rt/src/blit.rs (release_surface_to_external)`; `crates/metal2vulkan-rt/src/blit.rs (release_to_external)`; `crates/metal2vulkan-rt/src/blit.rs (synchronize_resource)`; `crates/metal2vulkan-rt/src/command.rs (check)`; `crates/metal2vulkan-rt/src/command.rs (present_drawable)`; `crates/metal2vulkan-rt/src/device.rs (release_block)`; `crates/metal2vulkan-rt/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)`; `crates/metal2vulkan-rt/src/encoder.rs (set_buffer)`; `crates/metal2vulkan-rt/src/encoder.rs (set_compute_pipeline_state)`; `crates/metal2vulkan-rt/src/encoder.rs (set_sampler_state)`; `crates/metal2vulkan-rt/src/encoder.rs (set_texture)`; `crates/metal2vulkan-rt/src/encoder.rs (use_resource, 2 sites)`; `crates/metal2vulkan-rt/src/fence.rs (check)`; `crates/metal2vulkan-rt/src/pass.rs (check, 2 sites)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_buffer)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_depth_stencil_state)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_render_pipeline_state)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_sampler_state)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_tessellation_factor_buffer)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_texture)`; `crates/metal2vulkan-rt/src/texture.rs (new_managed_texture)`
|
|
- `rt:Refusal::NoCommandBuffers`: `crates/metal2vulkan-rt/src/queue.rs (new_command_queue)`
|
|
- `rt:Refusal::EncoderOpen`: `crates/metal2vulkan-rt/src/command.rs (open)`
|
|
- `rt:Refusal::NoPipeline`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw_reaches)`
|
|
- `rt:Refusal::PatchDraw`: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`
|
|
- `rt:Refusal::NoTessellationFactorBuffer`: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`
|
|
- `rt:Refusal::BufferIndex`: `crates/metal2vulkan-rt/src/encoder.rs (slot)`; `crates/metal2vulkan-rt/src/render_encoder.rs (slot)`
|
|
- `rt:Refusal::TextureArgumentIndex`: `crates/metal2vulkan-rt/src/encoder.rs (set_texture)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_texture)`
|
|
- `rt:Refusal::SamplerArgumentIndex`: `crates/metal2vulkan-rt/src/encoder.rs (set_sampler_state)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_sampler_state)`
|
|
- `rt:Refusal::SamplerIds`: `crates/metal2vulkan-rt/src/pipeline.rs (number_samplers)`
|
|
- `rt:Refusal::NoBufferAtIndex`: `crates/metal2vulkan-rt/src/encoder.rs (set_buffer_offset)`; `crates/metal2vulkan-rt/src/render_encoder.rs (find)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_buffer_offset)`
|
|
- `rt:Refusal::ThreadgroupSize`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch, 2 sites)`
|
|
- `rt:Refusal::IndirectOffset`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)`
|
|
- `rt:Refusal::BufferOffsetAlignment`: `crates/metal2vulkan-rt/src/encoder.rs (check_alignment)`
|
|
- `rt:Refusal::IndicesGranted`: `crates/metal2vulkan-rt/src/arrays.rs (grant)`
|
|
- `rt:Refusal::IndicesNotGranted`: `crates/metal2vulkan-rt/src/arrays.rs (place)`; `crates/metal2vulkan-rt/src/arrays.rs (release)`
|
|
- `rt:Refusal::IndicesInUse`: `crates/metal2vulkan-rt/src/arrays.rs (release)`
|
|
- `rt:Refusal::TextureIndex`: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)`; `crates/metal2vulkan-rt/src/texture.rs (surface_texture)`; `crates/metal2vulkan-rt/src/texture.rs (texture)`; `crates/metal2vulkan-rt/src/texture.rs (view)`
|
|
- `rt:Refusal::TextureZeroExtent`: `crates/metal2vulkan-rt/src/texture.rs (shape)`
|
|
- `rt:Refusal::TextureExtentForType`: `crates/metal2vulkan-rt/src/texture.rs (shape)`
|
|
- `rt:Refusal::TextureCubeNotSquare`: `crates/metal2vulkan-rt/src/texture.rs (shape)`
|
|
- `rt:Refusal::TextureArrayLength`: `crates/metal2vulkan-rt/src/texture.rs (shape, 2 sites)`
|
|
- `rt:Refusal::TextureLevelCount`: `crates/metal2vulkan-rt/src/texture.rs (shape)`
|
|
- `rt:Refusal::TextureSampleCount`: `crates/metal2vulkan-rt/src/texture.rs (shape)`
|
|
- `rt:Refusal::TextureSwizzleWithWrites`: `crates/metal2vulkan-rt/src/texture.rs (own_checks)`
|
|
- `rt:Refusal::TextureBytesPrivate`: `crates/metal2vulkan-rt/src/texture.rs (copy)`
|
|
- `rt:Refusal::TextureRegion`: `crates/metal2vulkan-rt/src/texture.rs (place)`
|
|
- `rt:Refusal::TextureBytesLayout`: `crates/metal2vulkan-rt/src/texture.rs (copy)`
|
|
- `rt:Refusal::BufferCopyLayout`: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`
|
|
- `rt:Refusal::FillRange`: `crates/metal2vulkan-rt/src/blit.rs (fill_range)`
|
|
- `rt:Refusal::TextureViewRange`: `crates/metal2vulkan-rt/src/texture.rs (view)`
|
|
- `rt:Refusal::TextureViewFormat`: `crates/metal2vulkan-rt/src/texture.rs (view)`
|
|
- `rt:Refusal::MipmapFormat`: `crates/metal2vulkan-rt/src/blit.rs (generate_mipmaps)`
|
|
- `rt:Refusal::TextureCopyMismatch`: `crates/metal2vulkan-rt/src/blit.rs (texture_copy)`
|
|
- `rt:Refusal::ManagedTextureBytes`: `crates/metal2vulkan-rt/src/texture.rs (check_places)`; `crates/metal2vulkan-rt/src/texture.rs (named)`; `crates/metal2vulkan-rt/src/texture.rs (named_host)`; `crates/metal2vulkan-rt/src/texture.rs (upload_region, 2 sites)`
|
|
- `rt:Refusal::BufferTextureLayout`: `crates/metal2vulkan-rt/src/texture.rs (check_over)`
|
|
- `rt:Refusal::HeapTexturePlace`: `crates/metal2vulkan-rt/src/texture.rs (make)`
|
|
- `rt:Refusal::DrawableDescriptor`: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)`
|
|
- `rt:Refusal::DrawableFormat`: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)`
|
|
- `rt:Refusal::DrawableUsage`: `crates/metal2vulkan-rt/src/texture.rs (new_drawable_texture)`
|
|
- `rt:Refusal::NotDrawable`: `crates/metal2vulkan-rt/src/texture.rs (drawable_acquired)`; `crates/metal2vulkan-rt/src/texture.rs (present_turn)`
|
|
- `rt:Refusal::DrawableAcquired`: `crates/metal2vulkan-rt/src/texture.rs (drawable_acquired)`
|
|
- `rt:Refusal::DrawableNotAcquired`: `crates/metal2vulkan-rt/src/texture.rs (present_turn)`
|
|
- `rt:Refusal::DrawableSemaphoreRepeated`: `crates/metal2vulkan-rt/src/command.rs (present_drawable)`
|
|
- `rt:Refusal::BufferCopyRange`: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)`
|
|
- `rt:Refusal::BufferCopyUnaligned`: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)`
|
|
- `rt:Refusal::BufferCopyOverlap`: `crates/metal2vulkan-rt/src/blit.rs (buffer_to_buffer)`
|
|
- `rt:Refusal::AttachmentUsage`: `crates/metal2vulkan-rt/src/texture.rs (attachment)`
|
|
- `rt:Refusal::AttachmentPlace`: `crates/metal2vulkan-rt/src/texture.rs (attachment)`
|
|
- `rt:Refusal::AttachmentFormat`: `crates/metal2vulkan-rt/src/pass.rs (check, 3 sites)`
|
|
- `rt:Refusal::VertexBufferOffset`: `crates/metal2vulkan-rt/src/render_encoder.rs (find)`
|
|
- `rt:Refusal::IndexBufferOffset`: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`
|
|
- `rt:Refusal::TessellationFactorOffset`: `crates/metal2vulkan-rt/src/render_encoder.rs (set_tessellation_factor_buffer)`
|
|
- `rt:Refusal::ArgumentPlace`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch_threadgroups_with_indirect_buffer)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`
|
|
- `rt:Refusal::ViewportNotFinite`: `crates/metal2vulkan-rt/src/render_encoder.rs (set_viewport)`
|
|
- `rt:Refusal::StencilAttachment`: `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`
|
|
- `rt:Limit::BlockLen`: `crates/metal2vulkan-rt/src/import.rs (check_len)`; `crates/metal2vulkan-rt/src/memory.rs (round)`; `crates/metal2vulkan-rt/src/surface.rs (copy_form)`; `crates/metal2vulkan-rt/src/surface.rs (dma_buf_in_place)`
|
|
- `rt:Limit::BlockIds`: `crates/metal2vulkan-rt/src/memory.rs (allocation_number)`; `crates/metal2vulkan-rt/src/memory.rs (number)`
|
|
- `rt:Limit::ThreadgroupMemory`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`
|
|
- `rt:Limit::ThreadgroupThreads`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`
|
|
- `rt:Limit::BytesLength`: `crates/metal2vulkan-rt/src/encoder.rs (set_bytes)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_bytes)`
|
|
- `rt:Limit::IndexRange`: `crates/metal2vulkan-rt/src/arrays.rs (grant)`
|
|
- `rt:Limit::TextureSize`: `crates/metal2vulkan-rt/src/texture.rs (plan)`
|
|
- `rt:Limit::DeviceSamplers`: `crates/metal2vulkan-rt/src/sampler.rs (take)`
|
|
- `rt:Limit::MemoryAllocations`: `crates/metal2vulkan-rt/src/memory.rs (allocate)`
|
|
- `rt:Limit::AllocationNotMapped`: `crates/metal2vulkan-rt/src/memory.rs (own)`
|
|
- `rt:Limit::NoImport`: `crates/metal2vulkan-rt/src/import.rs (import_dma_buf)`; `crates/metal2vulkan-rt/src/import.rs (import_host_memory)`; `crates/metal2vulkan-rt/src/import.rs (surface_import)`
|
|
- `rt:Limit::ImportType`: `crates/metal2vulkan-rt/src/import.rs (import_dma_buf)`; `crates/metal2vulkan-rt/src/import.rs (import_host_memory)`
|
|
- `rt:Limit::ImportAlignment`: `crates/metal2vulkan-rt/src/import.rs (check_len)`; `crates/metal2vulkan-rt/src/import.rs (check_size)`; `crates/metal2vulkan-rt/src/import.rs (import_host_memory)`
|
|
- `rt:Limit::NoExport`: `crates/metal2vulkan-rt/src/export.rs (handle, 2 sites)`; `crates/metal2vulkan-rt/src/export.rs (new_exported_block)`; `crates/metal2vulkan-rt/src/surface.rs (dma_buf_in_place)`; `crates/metal2vulkan-rt/src/surface.rs (new_exported_surface)`
|
|
- `rt:Limit::ExportType`: `crates/metal2vulkan-rt/src/export.rs (new_exported_block)`; `crates/metal2vulkan-rt/src/import.rs (surface_import)`; `crates/metal2vulkan-rt/src/memory.rs (export)`; `crates/metal2vulkan-rt/src/memory.rs (surface_view)`; `crates/metal2vulkan-rt/src/surface.rs (dma_buf_in_place)`; `crates/metal2vulkan-rt/src/surface.rs (new_exported_surface)`
|
|
- `rt:Limit::TextureSamples`: `crates/metal2vulkan-rt/src/texture.rs (plan)`
|
|
- `rt:Gap::IndirectCommandBuffers`: `crates/metal2vulkan-rt/src/pipeline.rs (new_compute_pipeline_state)`; `crates/metal2vulkan-rt/src/render.rs (refuse)`
|
|
- `rt:Gap::KernelInput`: `crates/metal2vulkan-rt/src/pipeline.rs (gap)`
|
|
- `rt:Gap::ImageblockLength`: `crates/metal2vulkan-rt/src/pipeline.rs (imageblock_memory_length_for_dimensions)`; `crates/metal2vulkan-rt/src/render.rs (imageblock_sample_length)`
|
|
- `rt:Gap::PartialSimdgroups`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`
|
|
- `rt:Gap::PartialThreadgroups`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`
|
|
- `rt:Gap::NoStageInRegion`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`
|
|
- `rt:Gap::MemorylessTexture`: `crates/metal2vulkan-rt/src/texture.rs (checked)`
|
|
- `rt:Gap::TextureBuffer`: `crates/metal2vulkan-rt/src/texture.rs (shape, 2 sites)`
|
|
- `rt:Gap::CubeArrayTexture`: `crates/metal2vulkan-rt/src/texture.rs (checked)`
|
|
- `rt:Gap::TextureFormat`: `crates/metal2vulkan-rt/src/texture.rs (attachment)`; `crates/metal2vulkan-rt/src/texture.rs (form)`; `crates/metal2vulkan-rt/src/texture.rs (plan)`
|
|
- `rt:Gap::MipmapFilter`: `crates/metal2vulkan-rt/src/blit.rs (generate_mipmaps)`
|
|
- `rt:Gap::CubicSampler`: `crates/metal2vulkan-rt/src/sampler.rs (new_sampler_state)`
|
|
- `rt:Gap::LodClamps`: `crates/metal2vulkan-rt/src/sampler.rs (clamps_at_bind)`
|
|
- `rt:Gap::TextureBytes`: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`; `crates/metal2vulkan-rt/src/texture.rs (check_places)`; `crates/metal2vulkan-rt/src/texture.rs (copy)`
|
|
- `rt:Gap::FloatDepthUpload`: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`; `crates/metal2vulkan-rt/src/texture.rs (replace_region)`; `crates/metal2vulkan-rt/src/texture.rs (upload_region)`
|
|
- `rt:Gap::TextureCopy`: `crates/metal2vulkan-rt/src/blit.rs (texture_copy)`
|
|
- `rt:Gap::TextureOverBuffer`: `crates/metal2vulkan-rt/src/texture.rs (check_over)`; `crates/metal2vulkan-rt/src/texture.rs (make)`; `crates/metal2vulkan-rt/src/texture.rs (over_texel)`; `crates/metal2vulkan-rt/src/texture.rs (texture)`
|
|
- `rt:Gap::HeapTexture`: `crates/metal2vulkan-rt/src/texture.rs (heap_fit)`; `crates/metal2vulkan-rt/src/texture.rs (heap_source)`
|
|
- `rt:Gap::SurfaceUsage`: `crates/metal2vulkan-rt/src/surface.rs (plane)`; `crates/metal2vulkan-rt/src/texture.rs (surface_texture)`
|
|
- `rt:Gap::BufferCopyAlignment`: `crates/metal2vulkan-rt/src/blit.rs (buffer_copy)`
|
|
- `rt:Gap::FillAlignment`: `crates/metal2vulkan-rt/src/blit.rs (fill_range)`
|
|
- `rt:Gap::RenderPipeline`: `crates/metal2vulkan-rt/src/render.rs (draw_input)`; `crates/metal2vulkan-rt/src/render.rs (of, 3 sites)`; `crates/metal2vulkan-rt/src/render.rs (refuse)`
|
|
- `rt:Gap::SwizzledReadWrite`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch)`; `crates/metal2vulkan-rt/src/render_encoder.rs (find)`
|
|
- `rt:Gap::StorageElement`: `crates/metal2vulkan-rt/src/encoder.rs (dispatch, 2 sites)`; `crates/metal2vulkan-rt/src/render_encoder.rs (find)`
|
|
- `rt:Gap::TextureView`: `crates/metal2vulkan-rt/src/texture.rs (view)`
|
|
- `rt:Gap::RenderPass`: `crates/metal2vulkan-rt/src/pass.rs (check)`; `crates/metal2vulkan-rt/src/pass.rs (ops)`; `crates/metal2vulkan-rt/src/texture.rs (attachment)`
|
|
- `rt:Gap::Draw`: `crates/metal2vulkan-rt/src/render_encoder.rs (attachment_reads)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw)`; `crates/metal2vulkan-rt/src/render_encoder.rs (draw_patches)`; `crates/metal2vulkan-rt/src/render_encoder.rs (primitives)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_depth_bias)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_depth_clip_mode)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_scissor_rects)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_triangle_fill_mode)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_viewport)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_viewports)`; `crates/metal2vulkan-rt/src/render_encoder.rs (set_visibility_result_mode)`; `crates/metal2vulkan-rt/src/render_encoder.rs (shadow_copies)`
|
|
|