From 0ddba0e5720e7522df619e01117828d78b1947da Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 24 Oct 2026 03:20:06 +0300 Subject: [PATCH] Key the implemented denominator, which the map holds one item of twice The steps this packet landed as, in order: - Credit a container's own row, and state what no binding can reach - Stop dropping call edges, and read a class message broken after `::` - Report a site name held twice, instead of pairing the two by luck - Give the hand-declared Metal enums an SDK denominator - Read a braced `use`, which named values this axis counted nowhere - Separate what Metal answered from what a case named a site - State the two floors as what they are, not as what they were Content: the tree of `development` at 15adea8261, unchanged. --- .../metal2vulkan-conformance/src/compare.rs | 15 + crates/metal2vulkan-conformance/src/diff.rs | 16 + crates/metal2vulkan-conformance/src/tests.rs | 123 ++- .../src/transcript.rs | 29 + docs/CONFORMANCE-COVERAGE.md | 912 +++++++++--------- scripts/conformance-coverage/coverage.py | 321 +++++- .../metal_enumerators.tsv | 60 ++ scripts/conformance-coverage/metal_leg.py | 17 +- scripts/conformance-coverage/option_space.py | 296 +++++- .../conformance-coverage/test_option_space.py | 248 ++++- scripts/regen-metal-enums/README.md | 16 +- .../regen-metal-enums/regen_metal_enums.py | 86 ++ 12 files changed, 1607 insertions(+), 532 deletions(-) create mode 100644 scripts/conformance-coverage/metal_enumerators.tsv diff --git a/crates/metal2vulkan-conformance/src/compare.rs b/crates/metal2vulkan-conformance/src/compare.rs index 6c4789005..e7da28d29 100644 --- a/crates/metal2vulkan-conformance/src/compare.rs +++ b/crates/metal2vulkan-conformance/src/compare.rs @@ -424,6 +424,21 @@ impl Walk<'_> { // nowhere and its children everywhere. return; } + // Before pairing anything: a name held twice under one parent is a pair this walk cannot + // settle, and `Node::child` below would answer with the first namesake and compare the + // second against nothing. Reported on whichever side holds it, because a case builds both + // and either side's repeat loses the same comparison. + for (side, node) in [(Side::Metal, metal), (Side::Ours, ours)] { + for (name, held) in node.repeated_children() { + self.found.divergences.push(Divergence::new( + format!("{path}/{name}"), + DivergenceKind::DuplicateSite { + held_by: side, + held, + }, + )); + } + } for child in &metal.children { match ours.child(&child.name) { Some(theirs) => self.node(&path, child, theirs), diff --git a/crates/metal2vulkan-conformance/src/diff.rs b/crates/metal2vulkan-conformance/src/diff.rs index 2264e9363..e62e8c8d3 100644 --- a/crates/metal2vulkan-conformance/src/diff.rs +++ b/crates/metal2vulkan-conformance/src/diff.rs @@ -156,6 +156,17 @@ pub enum DivergenceKind { Digest { metal: String, ours: String }, /// A site one side holds and the other does not. Site { held_by: Side }, + /// One side holds more than one site of this name under one parent, so the comparison cannot + /// say which answer belongs to which. + /// + /// A case authoring defect rather than a difference from Metal, and reported because the + /// alternative is silence: the walk finds a site by name + /// ([`crate::transcript::Node::child`]) and answers with the first namesake, so the second + /// site's observation is compared against nothing at all and the case passes having measured + /// less than it says. **Not** loosenable, for the same reason + /// [`DivergenceKind::UndeclaredNotice`] is not: an allowance names a site by its path, and + /// where a path names two sites there is nothing for it to name. + DuplicateSite { held_by: Side, held: usize }, /// The case loosened this site, and the allowance does not hold: the difference it would have /// covered is one nobody is accounting for. Unjustified { why: String }, @@ -344,6 +355,11 @@ impl std::fmt::Display for DivergenceKind { write!(out, "the digest is {metal} on Metal and {ours} here") } DivergenceKind::Site { held_by } => write!(out, "only {held_by} observed this site"), + DivergenceKind::DuplicateSite { held_by, held } => write!( + out, + "{held_by} holds {held} sites of this name under one parent, so the comparison \ + cannot say which answer is which" + ), DivergenceKind::Unjustified { why } => { write!(out, "the case loosens this site, and {why}") } diff --git a/crates/metal2vulkan-conformance/src/tests.rs b/crates/metal2vulkan-conformance/src/tests.rs index f558dec5b..129cb469e 100644 --- a/crates/metal2vulkan-conformance/src/tests.rs +++ b/crates/metal2vulkan-conformance/src/tests.rs @@ -1758,6 +1758,119 @@ fn a_set_diff_prints_what_is_missing_and_what_is_extra() { assert!(printed.contains("extra {\"d\"}"), "{printed}"); } +/// **A site name held twice under one parent is reported, on either side, rather than compared by +/// luck.** +/// +/// `no_recorded_site_shares_its_name_with_a_sibling` holds the committed recordings to this, which +/// is Metal's half of it. Our side's transcript is built fresh at every replay and is written to no +/// recording, so that test cannot see it at all: a case whose *own* answer repeats a name would +/// have the repeat compared against nothing, with no error and no change of verdict, on every +/// venue forever. So the comparison itself refuses, which covers both sides and every run. +/// +/// The repeat Metal holds and the repeat we hold are separate assertions, because they fail for +/// different reasons: the first is a recording nobody should have committed, the second is a case +/// measuring less than it claims right now. +#[test] +fn a_site_name_held_twice_under_one_parent_is_reported_on_either_side() { + let twins = || { + Transcript::new(vec![Node::branch( + "pass", + vec![ + Node::leaf("buffer", Observed::value(Value::Uint(1))), + Node::leaf("buffer", Observed::value(Value::Uint(2))), + ], + )]) + }; + let single = || { + Transcript::new(vec![Node::branch( + "pass", + vec![Node::leaf("buffer", Observed::value(Value::Uint(1)))], + )]) + }; + + // Neither side repeats: the comparison is of one pair and says nothing about names. + let clean = compare(&single(), &single(), &[], Offered::notices(&[])); + assert!( + clean.divergences.is_empty(), + "a transcript with no repeat is reported: {:?}", + clean.divergences + ); + + for (who, metal, ours) in [ + (crate::diff::Side::Ours, single(), twins()), + (crate::diff::Side::Metal, twins(), single()), + ] { + let found = compare(&metal, &ours, &[], Offered::notices(&[])); + let repeats: Vec<_> = found + .divergences + .iter() + .filter(|held| { + matches!( + held.kind, + DivergenceKind::DuplicateSite { held_by, held: 2 } if held_by == who + ) + }) + .collect(); + assert_eq!( + repeats.len(), + 1, + "{who} holding two `buffer` sites is reported {} time(s): {:?}", + repeats.len(), + found.divergences + ); + assert_eq!(repeats[0].path, "case/pass/buffer"); + let printed = repeats[0].to_string(); + assert!(printed.contains("2 sites of this name"), "{printed}"); + // The two sides do not fail the same way, and the difference is why the report has to be + // on both of them. The sites hold 1 and 2, and Metal's side is what the walk iterates: + // + // - the repeat is **ours**, so Metal's one site pairs with our first namesake, matches it, + // and our second observation is compared with nothing. Without the report above these + // transcripts compare clean while a value nobody read sits in the answer. The loss is + // total and silent, and the repeat is the whole of what is reported. + // - the repeat is **Metal's**, so both its namesakes pair with our one site: one matches + // and the other reports a difference against an answer that was never its own. Nothing + // is lost, but what is reported is about a pair that does not exist. + let expected = match who { + crate::diff::Side::Ours => 1, + crate::diff::Side::Metal => 2, + }; + assert_eq!( + found.divergences.len(), + expected, + "the repeat on {who} reported {} divergence(s), not {expected}: {:?}", + found.divergences.len(), + found.divergences + ); + } + + // And no allowance may excuse it: a tolerance names a site by its path, and a path that names + // two sites names nothing the allowance could be about. + let loosened = compare( + &single(), + &twins(), + &[Allowance::new( + "pass/buffer", + Loosening::Unchecked, + Justification::accepted( + accepted_differences() + .first() + .expect("docs/API.md section 10 holds entries") + .clone(), + ), + )], + Offered::notices(&[]), + ); + assert!( + loosened + .divergences + .iter() + .any(|held| matches!(held.kind, DivergenceKind::DuplicateSite { .. })), + "an allowance at the path excused the repeat: {:?}", + loosened.divergences + ); +} + #[test] fn an_ordered_list_of_lines_names_the_line_that_moved() { let lines = |words: &[&str]| { @@ -2585,12 +2698,10 @@ fn no_recorded_site_shares_its_name_with_a_sibling() { true => node.name.to_string(), false => format!("{path}/{}", node.name), }; - let mut seen = std::collections::BTreeSet::new(); - for child in &node.children { - let name = child.name.to_string(); - if !seen.insert(name.clone()) { - found.push(format!("{here}: two children named {name}")); - } + // The same reading of the rule the comparison uses, so the two cannot drift: a recording + // this accepts is one `compare` will not report a duplicate at, and the other way about. + for (name, held) in node.repeated_children() { + found.push(format!("{here}: {held} children named {name}")); } for child in &node.children { duplicates(&here, child, found); diff --git a/crates/metal2vulkan-conformance/src/transcript.rs b/crates/metal2vulkan-conformance/src/transcript.rs index 2e683b6eb..231c5b8e6 100644 --- a/crates/metal2vulkan-conformance/src/transcript.rs +++ b/crates/metal2vulkan-conformance/src/transcript.rs @@ -62,6 +62,35 @@ impl Node { pub fn child(&self, name: &str) -> Option<&Node> { self.children.iter().find(|child| child.name == name) } + + /// The names this node holds more than one child under, each with how many it holds. + /// + /// A site's path is how the comparison finds the answer to hold it against, and [`Self::child`] + /// answers with the **first** namesake, so two children under one name are a pair the walk + /// cannot settle: it compares a site against whichever namesake it reaches, and the other + /// site's observation is never compared with anything. Nothing refuses it -- [`Self::with`] + /// and [`Sites::push`] append whatever they are given -- so the loss is silent, with no error + /// and no change of verdict. A case of this round named the call that made its buffer and the + /// buffer's bytes after the pass both `buffer`, and its replay reported a difference at + /// `case/buffer` between Metal's bytes and our `Ok` of the make, having compared no byte of + /// either. + /// + /// So this is the one reading of the rule, and both the places that hold it call it: the + /// comparison, which reports a repeat rather than pairing by luck, and + /// `no_recorded_site_shares_its_name_with_a_sibling`, which holds every committed recording to + /// it. Children keep their order, so the names come back in the order the repeats appear. + pub fn repeated_children(&self) -> Vec<(&str, usize)> { + let mut held: Vec<(&str, usize)> = Vec::new(); + for child in &self.children { + let name = child.name.as_str(); + match held.iter_mut().find(|(seen, _)| *seen == name) { + Some((_, count)) => *count += 1, + None => held.push((name, 1)), + } + } + held.retain(|(_, count)| *count > 1); + held + } } /// What one site observed. diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index bbb5c60e6..90a2fa62e 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -12,13 +12,19 @@ The suite reaches Metal through `objc2-metal`, whose Rust name for a binding is Its limits, measured rather than asserted: -- **1383 of 1545 call sites** in the Metal leg resolve to an item of the SDK. 50 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. +- **1384 of 1546 call sites** in the Metal leg resolve to an item of the SDK. 50 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. - **126 call sites resolve to no item**: an instance send whose receiver this could not type, or a message to a Metal class whose name `objc2-metal` declares on no Metal type. They cost the count 3 selectors, which the suite calls and which this attributes to no item: - `alloc`, which `objc2-metal` declares on no Metal type, so it is an item of no Metal container - `class`, which `objc2-metal` declares on no Metal type, so it is an item of no Metal container - `count`, bound by `MTL4CounterHeap`, `MTL4CounterHeapDescriptor` So every per-item count below is a **floor**, by at least these. That list is what this derivation recognises as a call to Metal and cannot attribute; it is not a proof that nothing else is unmeasured. - **0 call sites typed to a receiver that does not bind the selector sent to it.** The generator fails rather than writing this document if any does, which is what keeps the typing from quietly counting the wrong item. +- **96 of the map's implemented rows are a container's own**: the `class`, `protocol` and `category` rows, whose name is the container's and not a selector's. No call site can resolve to one, because `objc2-metal` binds no selector by that name, so these are credited by the suite **messaging** the type instead — a call whose receiver is the container or a subtype of it — under the same gate and the same family attribution as the selector it sends. +- **12 are the header's free functions**, which no container declares. `objc2-metal` binds these as Rust functions, so the receiver typing never sees one; the leg calls such a function by its own C name and the walk reads it as an edge of the call graph. +- **3 implemented items `objc2-metal` binds no name for at all**, so no case can call them whatever it is authored to do. They are counted apart from the gap below rather than folded into it, because a gap is work and these are not: + - `MTLDevice`'s `programmableSamplePositionsSupported` + - `MTLDevice`'s `rasterOrderGroupsSupported` + - `MTLFunctionReflection`'s `userAnnotation` - The unit a call is attributed to is the **case module**, not the case: a module's cases share one `run`, so which of them encodes which step is not a property of the text. Where a module holds one case the two are the same. - **No verdict is recorded here.** A verdict is what a replay on one venue measured, and a number like that in a generated document is a journal entry that rots. What is durable, and is here, is whether a case compares **exactly**: the allowances a module declares, and the rows of the suite's ledger. @@ -26,15 +32,18 @@ Its limits, measured rather than asserted: | | | |---|---| -| implemented Metal items | 958 | -| of those, exercised by the suite's Metal leg | 663 | -| of those, not exercised | 295 | -| share exercised | 69% | -| of those exercised, no case reaching it loosens anything | 520 | -| of those exercised, a case reaching it loosens some site | 143 | +| implemented Metal items | 957 | +| of those, unreachable: `objc2-metal` binds no name for them | 3 | +| so reachable by some case | 954 | +| of the reachable, exercised by the suite's Metal leg | 750 | +| of the reachable, not exercised | 204 | +| share of the reachable exercised | 79% | +| of those exercised, no case reaching it loosens anything | 572 | +| of those exercised, a case reaching it loosens some site | 178 | | case modules | 118 | | committed recordings | 949 | -| distinct SDK items the Metal leg calls | 673 | +| distinct SDK items the Metal leg reaches, of any status | 761 | +| of those, reached only where this cannot name the family | 7 | | ledger rows (a case whose gap is recorded) | 47 | A tolerance names a **site of a transcript**, not an item, so the last two rows are read as written: a case that loosens one site of its own transcript may compare every other field of it exactly, and this derivation cannot tell which of a case's fields came from which Metal call. Where the distinction matters, read the case. @@ -45,85 +54,115 @@ A tolerance names a **site of a transcript**, not an item, so the last two rows The axis above counts a Metal **item** as exercised where one call of it ran. A selector that takes an enum therefore counts whatever value reached it, so that axis says nothing about how much of an enum the suite ever put to Metal. This one does, over the values themselves. -The denominator is generated, never written here: `crates/metal2vulkan/src/metal/generated.rs` and the front end's hold every enumerator name and ordinal `scripts/regen-metal-enums/` extracts from the SDK's Metal headers. A Metal type this tree models by hand instead has **no denominator here** and is listed apart, below. +The denominator is generated, never written here: `crates/metal2vulkan/src/metal/generated.rs` and the front end's hold every enumerator name and ordinal `scripts/regen-metal-enums/` extracts from the SDK's Metal headers, and `scripts/conformance-coverage/metal_enumerators.tsv` holds the same for the Metal types this tree declares by hand instead, which have no generated Rust. A Metal type neither covers has **no denominator here** and is listed apart, below. A value is **compared** where either of two things holds, which are different claims: -- **answered** — the enumerator's name is in a committed recording's transcript of an answer Metal **ran**. Metal named the value back at a site the comparison reads, so the value is in the compared text itself. +- **answered** — the enumerator's name is in what a site of a committed recording **observed**, in an answer Metal **ran**. Metal named the value back at a site the comparison reads, so the value is in the compared text itself. +- **at a site** — the enumerator's name is a committed recording's site **name**, and in nothing that site observed: 105 of them. The comparison pairs sites by name, so the value is in the compared text and the case did put it to Metal — but the name is the **case's** label for the site, so it is no evidence that Metal said the value. It is its own column for that reason: read together with *answered* it reads as Metal having named back values that a case spelled itself, which for `MTLPixelFormat` is most of them. - **in effect** — a case module's own text names the value, and that module has at least one case whose recording is a Metal run. Metal's recorded answer was taken with the value in effect, so what is compared is Metal's behaviour **under** it, even where no site reads it back. A blend factor is this and not the first: what the recording holds is the texels Metal blended with it. What this axis cannot see, measured rather than asserted: - **A value Metal answers as a bare ordinal.** A transcript holds a `uint`, and nothing in it says which enum the number belongs to, so only a site that records the enumerator's **name** is read. The *answered* column is a floor by every site that records an ordinal instead. +- **A spelling of a value this derivation does not read.** Both numerators read names, and a name written in a shape the reading does not cover is counted nowhere and looks exactly like a value no case reaches. Four shapes are read: a variant beside its type, `objc2`'s own spelling, a renaming `use`, and a braced `use` whose variants the module then writes bare. A fifth shape would be invisible the same way, so every count here is a floor by that unknown — and the two shapes already found were each caught by someone checking a count against the code, not by this derivation, so the unknown is not small on the evidence. - **A value a case states as a raw ordinal.** A case may hand the Metal leg an enum's ordinal as a number — a sweep over `0..n` rather than over named variants — and no reading of the text can say which value a computed number is. So *in effect*, and the *stated* column of the hand-modelled table below, are floors by every sweep written that way: a type they report short of its values may in fact be swept exhaustively, and the case is what says so. Read the case before taking a row of the work list as work. - **Which case put a value in effect.** The unit is the case module, as it is for the items axis: a value named anywhere in a module whose cases include a Metal run counts for that module, even where one of its cases names it and the rest do not. -- **A value only the suite's shared sources name** — 3 of them. Some case puts it to Metal through the render or texture vocabulary, but which case is not a property of the text, so it is neither compared nor missing and has its own column. +- **A value only the suite's shared sources name** — 30 of them. Some case puts it to Metal through the render or texture vocabulary, but which case is not a property of the text, so it is neither compared nor missing and has its own column. - **Combinations.** Every column here is per value. A type whose values are all compared says nothing about the pairs and triples of them, which is where most of the behaviour an implementation can get wrong lives. - **Metal's API validation is excluded.** Its complaints name enumerators, and the suite records that leg and never compares it, so reading it would count Apple's prose as a comparison. So are the cost and timing tables: a site name there is what was measured, not an answer that was compared. - **A `#[cfg(test)]` item is excluded.** One of the suite's unit tests names four blend factors to assert that no case uses them; counting those would have this report the opposite of what the code says. | | | |---|---| -| Metal enums and option sets with a generated value list | 43 | -| their values | 703 | -| values compared | 463 | -| share compared | 66% | -| values only the suite's shared sources name | 3 | -| values no source names and no recording holds | 237 | -| types every value of which is compared | 20 | -| types no value of which is compared | 3 | +| Metal enums and option sets with a generated value list | 59 | +| their values | 757 | +| values compared | 482 | +| share compared | 64% | +| values only the suite's shared sources name | 30 | +| values no source names and no recording holds | 245 | +| types every value of which is compared | 23 | +| types no value of which is compared | 10 | -The share is weakly informative on its own: `MTLPixelFormat`, `MTLDataType`, `MTLAttributeFormat`, `MTLVertexFormat` hold 506 of the 703 values between them, so an aggregate over types this uneven is mostly theirs. The per-type table is the one to read. +The share is weakly informative on its own: `MTLPixelFormat`, `MTLDataType`, `MTLAttributeFormat`, `MTLVertexFormat` hold 506 of the 757 values between them, so an aggregate over types this uneven is mostly theirs. The per-type table is the one to read. ### Depth by type -Deepest gap first, which is the order the work list reads in. *answered* and *in effect* overlap; *compared* is their union. +Deepest gap first, which is the order the work list reads in. *answered*, *at a site* and *in effect* overlap; *compared* is their union. -| Metal type | values | compared | answered | in effect | shared only | missing | -|---|---|---|---|---|---|---| -| `MTLPixelFormat` | 301 | 219 | 112 | 151 | 0 | 82 | -| `MTLAttributeFormat` | 54 | 1 | 0 | 1 | 0 | 53 | -| `MTLVertexFormat` | 54 | 18 | 2 | 16 | 0 | 36 | -| `MTLDataType` | 97 | 75 | 74 | 9 | 0 | 22 | -| `MTLBindingType` | 12 | 6 | 6 | 0 | 0 | 6 | -| `MTLFunctionType` | 7 | 3 | 3 | 0 | 0 | 4 | -| `MTLStepFunction` | 9 | 5 | 0 | 5 | 0 | 4 | -| `MTLFunctionOptions` | 5 | 2 | 1 | 2 | 0 | 3 | -| `MTLReadWriteTextureTier` | 3 | 0 | 0 | 0 | 0 | 3 | -| `MTLStencilOperation` | 8 | 5 | 0 | 5 | 0 | 3 | -| `MTLTextureUsage` | 9 | 6 | 0 | 6 | 0 | 3 | -| `MTLIndirectCommandType` | 8 | 5 | 0 | 5 | 1 | 2 | -| `MTLArgumentBuffersTier` | 2 | 0 | 0 | 0 | 0 | 2 | -| `MTLBarrierScope` | 3 | 1 | 0 | 1 | 0 | 2 | -| `MTLPrimitiveTopologyClass` | 4 | 2 | 2 | 0 | 0 | 2 | -| `MTLTessellationFactorStepFunction` | 4 | 2 | 2 | 0 | 0 | 2 | -| `MTLTessellationPartitionMode` | 4 | 2 | 2 | 0 | 0 | 2 | -| `MTLVertexStepFunction` | 5 | 3 | 2 | 2 | 0 | 2 | -| `MTLColorWriteMask` | 7 | 6 | 0 | 6 | 0 | 1 | -| `MTLPatchType` | 3 | 2 | 2 | 0 | 0 | 1 | -| `MTLResourceUsage` | 3 | 2 | 0 | 2 | 0 | 1 | -| `MTLTessellationControlPointIndexType` | 3 | 2 | 2 | 0 | 0 | 1 | -| `MTLDispatchType` | 2 | 0 | 0 | 0 | 2 | 0 | -| `MTLBindingAccess` | 3 | 3 | 3 | 0 | 0 | 0 | -| `MTLBlendFactor` | 20 | 20 | 10 | 20 | 0 | 0 | -| `MTLBlendOperation` | 6 | 6 | 5 | 6 | 0 | 0 | -| `MTLCompareFunction` | 8 | 8 | 0 | 8 | 0 | 0 | -| `MTLCullMode` | 3 | 3 | 0 | 3 | 0 | 0 | -| `MTLDepthClipMode` | 2 | 2 | 0 | 2 | 0 | 0 | -| `MTLIndexType` | 2 | 2 | 0 | 2 | 0 | 0 | -| `MTLMutability` | 3 | 3 | 3 | 0 | 0 | 0 | -| `MTLPrimitiveType` | 5 | 5 | 0 | 5 | 0 | 0 | -| `MTLRenderStages` | 5 | 5 | 0 | 5 | 0 | 0 | -| `MTLSamplerAddressMode` | 6 | 6 | 0 | 6 | 0 | 0 | -| `MTLSamplerBorderColor` | 3 | 3 | 0 | 3 | 0 | 0 | -| `MTLSamplerMinMagFilter` | 3 | 3 | 0 | 3 | 0 | 0 | -| `MTLSamplerMipFilter` | 3 | 3 | 0 | 3 | 0 | 0 | -| `MTLSamplerReductionMode` | 3 | 3 | 0 | 3 | 0 | 0 | -| `MTLTessellationFactorFormat` | 1 | 1 | 1 | 0 | 0 | 0 | -| `MTLTextureSwizzle` | 6 | 6 | 0 | 6 | 0 | 0 | -| `MTLTextureType` | 10 | 10 | 7 | 10 | 0 | 0 | -| `MTLTriangleFillMode` | 2 | 2 | 0 | 2 | 0 | 0 | -| `MTLWinding` | 2 | 2 | 2 | 2 | 0 | 0 | +| Metal type | values | compared | answered | at a site | in effect | shared only | missing | +|---|---|---|---|---|---|---|---| +| `MTLPixelFormat` | 301 | 219 | 7 | 105 | 151 | 0 | 82 | +| `MTLAttributeFormat` | 54 | 1 | 0 | 0 | 1 | 0 | 53 | +| `MTLVertexFormat` | 54 | 18 | 2 | 0 | 16 | 0 | 36 | +| `MTLDataType` | 97 | 75 | 74 | 0 | 9 | 0 | 22 | +| `MTLBindingType` | 12 | 6 | 6 | 0 | 0 | 0 | 6 | +| `MTLFunctionType` | 7 | 3 | 3 | 0 | 0 | 0 | 4 | +| `MTLStepFunction` | 9 | 5 | 0 | 0 | 5 | 0 | 4 | +| `MTLFunctionOptions` | 5 | 2 | 1 | 0 | 2 | 0 | 3 | +| `MTLReadWriteTextureTier` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | +| `MTLStencilOperation` | 8 | 5 | 0 | 0 | 5 | 0 | 3 | +| `MTLTextureUsage` | 9 | 6 | 0 | 0 | 6 | 0 | 3 | +| `MTLPipelineOption` | 4 | 0 | 0 | 0 | 0 | 2 | 2 | +| `MTLIndirectCommandType` | 8 | 5 | 0 | 0 | 5 | 1 | 2 | +| `MTLMultisampleDepthResolveFilter` | 3 | 0 | 0 | 0 | 0 | 1 | 2 | +| `MTLArgumentBuffersTier` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `MTLBarrierScope` | 3 | 1 | 0 | 0 | 1 | 0 | 2 | +| `MTLPrimitiveTopologyClass` | 4 | 2 | 2 | 0 | 0 | 0 | 2 | +| `MTLStoreAction` | 6 | 4 | 0 | 0 | 4 | 0 | 2 | +| `MTLTessellationFactorStepFunction` | 4 | 2 | 2 | 0 | 0 | 0 | 2 | +| `MTLTessellationPartitionMode` | 4 | 2 | 2 | 0 | 0 | 0 | 2 | +| `MTLVertexStepFunction` | 5 | 3 | 2 | 0 | 2 | 0 | 2 | +| `MTLStorageMode` | 4 | 0 | 0 | 0 | 0 | 3 | 1 | +| `MTLMultisampleStencilResolveFilter` | 2 | 0 | 0 | 0 | 0 | 1 | 1 | +| `MTLColorWriteMask` | 7 | 6 | 0 | 0 | 6 | 0 | 1 | +| `MTLPatchType` | 3 | 2 | 2 | 0 | 0 | 0 | 1 | +| `MTLResourceUsage` | 3 | 2 | 0 | 0 | 2 | 0 | 1 | +| `MTLTessellationControlPointIndexType` | 3 | 2 | 2 | 0 | 0 | 0 | 1 | +| `MTLCommandBufferStatus` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `MTLBlitOption` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `MTLPurgeableState` | 4 | 1 | 0 | 0 | 1 | 3 | 0 | +| `MTLDispatchType` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `MTLHazardTrackingMode` | 3 | 1 | 0 | 0 | 1 | 2 | 0 | +| `MTLSparseTextureRegionAlignmentMode` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `MTLCPUCacheMode` | 2 | 1 | 0 | 0 | 1 | 1 | 0 | +| `MTLHeapType` | 3 | 2 | 0 | 0 | 2 | 1 | 0 | +| `MTLLoadAction` | 3 | 2 | 0 | 0 | 2 | 1 | 0 | +| `MTLBindingAccess` | 3 | 3 | 3 | 0 | 0 | 0 | 0 | +| `MTLBlendFactor` | 20 | 20 | 10 | 0 | 20 | 0 | 0 | +| `MTLBlendOperation` | 6 | 6 | 5 | 0 | 6 | 0 | 0 | +| `MTLCompareFunction` | 8 | 8 | 0 | 0 | 8 | 0 | 0 | +| `MTLCullMode` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLDepthClipMode` | 2 | 2 | 0 | 0 | 2 | 0 | 0 | +| `MTLIndexType` | 2 | 2 | 0 | 0 | 2 | 0 | 0 | +| `MTLMutability` | 3 | 3 | 3 | 0 | 0 | 0 | 0 | +| `MTLPrimitiveType` | 5 | 5 | 0 | 0 | 5 | 0 | 0 | +| `MTLRenderStages` | 5 | 5 | 0 | 0 | 5 | 0 | 0 | +| `MTLSamplerAddressMode` | 6 | 6 | 0 | 0 | 6 | 0 | 0 | +| `MTLSamplerBorderColor` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLSamplerMinMagFilter` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLSamplerMipFilter` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLSamplerReductionMode` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLSparsePageSize` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLStoreActionOptions` | 2 | 2 | 0 | 0 | 2 | 0 | 0 | +| `MTLTessellationFactorFormat` | 1 | 1 | 1 | 0 | 0 | 0 | 0 | +| `MTLTextureSwizzle` | 6 | 6 | 0 | 0 | 6 | 0 | 0 | +| `MTLTextureType` | 10 | 10 | 7 | 0 | 10 | 0 | 0 | +| `MTLTriangleFillMode` | 2 | 2 | 0 | 0 | 2 | 0 | 0 | +| `MTLVisibilityResultMode` | 3 | 3 | 0 | 0 | 3 | 0 | 0 | +| `MTLWinding` | 2 | 2 | 2 | 0 | 2 | 0 | 0 | + +### Types a case is about, whose values this axis cannot read + +The raw-ordinal limit above as a work list rather than a sentence. Each row is a type whose name a recorded case module uses and **none of whose values that module states by name**: a sweep written `for bits in 0..8` reads exactly this way, and so does a module that only mentions the type in passing. So a row is a question for the case, never a verdict on it -- the module may put every value of the type to Metal, and this axis would still count none of them. + +It names the type and the module, and no value: which value a computed number is is not a property of the text, and a rule that answered it would be inventing the answer. Closing a row means the case stating its values by name, or a transcript site recording the enumerator beside the ordinal it already stores. + +| Metal type | values | compared | modules naming it that state no value | +|---|---|---|---| +| `MTLBarrierScope` | 3 | 1 | `compute_encoder_commands`, `mesh_barriers` | +| `MTLLoadAction` | 3 | 2 | `srgb_fetch` | +| `MTLBindingAccess` | 3 | 3 | `texture_accesses` | ### The values not compared @@ -143,149 +182,152 @@ The work list. A name here is a value of Metal's that no committed recording hol - **`MTLArgumentBuffersTier`**, 2 of 2: `MTLArgumentBuffersTier1`, `MTLArgumentBuffersTier2` - **`MTLBarrierScope`**, 2 of 3: `MTLBarrierScopeBuffers`, `MTLBarrierScopeRenderTargets` - **`MTLIndirectCommandType`**, 2 of 8: `MTLIndirectCommandTypeDrawPatches`, `MTLIndirectCommandTypeDrawIndexedPatches` +- **`MTLMultisampleDepthResolveFilter`**, 2 of 3: `MTLMultisampleDepthResolveFilterMin`, `MTLMultisampleDepthResolveFilterMax` +- **`MTLPipelineOption`**, 2 of 4: `MTLPipelineOptionBufferTypeInfo`, `MTLPipelineOptionFailOnBinaryArchiveMiss` - **`MTLPrimitiveTopologyClass`**, 2 of 4: `MTLPrimitiveTopologyClassPoint`, `MTLPrimitiveTopologyClassLine` +- **`MTLStoreAction`**, 2 of 6: `MTLStoreActionUnknown`, `MTLStoreActionCustomSampleDepthStore` - **`MTLTessellationFactorStepFunction`**, 2 of 4: `MTLTessellationFactorStepFunctionPerPatch`, `MTLTessellationFactorStepFunctionPerInstance` - **`MTLTessellationPartitionMode`**, 2 of 4: `MTLTessellationPartitionModeInteger`, `MTLTessellationPartitionModeFractionalEven` - **`MTLVertexStepFunction`**, 2 of 5: `MTLVertexStepFunctionPerPatch`, `MTLVertexStepFunctionPerPatchControlPoint` - **`MTLColorWriteMask`**, 1 of 7: `MTLColorWriteMaskUnspecialized` +- **`MTLMultisampleStencilResolveFilter`**, 1 of 2: `MTLMultisampleStencilResolveFilterDepthResolvedSample` - **`MTLPatchType`**, 1 of 3: `MTLPatchTypeQuad` - **`MTLResourceUsage`**, 1 of 3: `MTLResourceUsageSample` +- **`MTLStorageMode`**, 1 of 4: `MTLStorageModeMemoryless` - **`MTLTessellationControlPointIndexType`**, 1 of 3: `MTLTessellationControlPointIndexTypeUInt16` And the values only the suite's shared sources name, which some case reaches and this cannot attribute: +- **`MTLBlitOption`**: `MTLBlitOptionNone`, `MTLBlitOptionDepthFromDepthStencil`, `MTLBlitOptionStencilFromDepthStencil`, `MTLBlitOptionRowLinearPVRTC` +- **`MTLCPUCacheMode`**: `MTLCPUCacheModeWriteCombined` +- **`MTLCommandBufferStatus`**: `MTLCommandBufferStatusNotEnqueued`, `MTLCommandBufferStatusEnqueued`, `MTLCommandBufferStatusCommitted`, `MTLCommandBufferStatusScheduled`, `MTLCommandBufferStatusCompleted`, `MTLCommandBufferStatusError` - **`MTLDispatchType`**: `MTLDispatchTypeSerial`, `MTLDispatchTypeConcurrent` +- **`MTLHazardTrackingMode`**: `MTLHazardTrackingModeUntracked`, `MTLHazardTrackingModeTracked` +- **`MTLHeapType`**: `MTLHeapTypeSparse` - **`MTLIndirectCommandType`**: `MTLIndirectCommandTypeDrawMeshThreads` +- **`MTLLoadAction`**: `MTLLoadActionDontCare` +- **`MTLMultisampleDepthResolveFilter`**: `MTLMultisampleDepthResolveFilterSample0` +- **`MTLMultisampleStencilResolveFilter`**: `MTLMultisampleStencilResolveFilterSample0` +- **`MTLPipelineOption`**: `MTLPipelineOptionNone`, `MTLPipelineOptionArgumentInfo` +- **`MTLPurgeableState`**: `MTLPurgeableStateNonVolatile`, `MTLPurgeableStateVolatile`, `MTLPurgeableStateEmpty` +- **`MTLSparseTextureRegionAlignmentMode`**: `MTLSparseTextureRegionAlignmentModeOutward`, `MTLSparseTextureRegionAlignmentModeInward` +- **`MTLStorageMode`**: `MTLStorageModeShared`, `MTLStorageModeManaged`, `MTLStorageModePrivate` ### Metal types with no generated value list -These the tree models by hand: a Rust item whose own doc comment opens by naming a Metal type, and whose shape is a closed enum or a newtype over one integer. `regen-metal-enums` holds no value list for them, so **this axis has no denominator here**, and *declared* is our own sources' variant count rather than the SDK's — a newtype option set declares none. There is no *answered* column either: a recording names a value by its Metal enumerator, and for these types this has no list of those names to match against. Giving one a denominator means appending its Metal name to `scripts/regen-metal-enums/`'s `ENUMS` or `OPTIONS` and regenerating. +These the tree models by hand: a Rust item whose own doc comment opens by naming a Metal type, and whose shape is a closed enum or a newtype over one integer. The tree declares them itself because the compile-and-plan layer never reads them, and that stays — but a declaration measured against itself is no measurement, so `scripts/regen-metal-enums/`'s `TABLE_ONLY` list generates `scripts/conformance-coverage/metal_enumerators.tsv`, the SDK's own values for them, and every type it covers is in the per-type table above with a real denominator. What is left here is what the table does not cover. -These 17 are what that shape finds, and the list is a floor: a type the tree models without saying so on the item lands in neither table, and so is nowhere in this axis at all. +For a row here **this axis has no denominator**: *declared* is our own sources' variant count rather than the SDK's — a newtype option set declares none — and there is no *answered* column, because a recording names a value by its Metal enumerator and this has no list of those names to match against. + +1 are left, and the list is a floor: a type the tree models without saying so on the item lands in neither table, and so is nowhere in this axis at all. | Metal type | the tree's type | declared | stated by a recorded case | shared only | |---|---|---|---|---| -| `MTLBlitOption` | `BlitOption` | 4 | 0 | 4 | -| `MTLCPUCacheMode` | `CpuCacheMode` | 2 | 1 | 1 | -| `MTLCommandBufferStatus` | `CommandBufferStatus` | 6 | 0 | 6 | -| `MTLHazardTrackingMode` | `HazardTrackingMode` | 3 | 1 | 2 | -| `MTLHeapType` | `HeapType` | 3 | 2 | 1 | -| `MTLLoadAction` | `LoadAction` | 3 | 2 | 1 | -| `MTLMultisampleDepthResolveFilter` | `MultisampleDepthResolveFilter` | 3 | 0 | 1 | -| `MTLMultisampleStencilResolveFilter` | `MultisampleStencilResolveFilter` | 2 | 0 | 1 | -| `MTLPipelineOption` | `PipelineOption` | — a bit set | 0 | 0 | -| `MTLPurgeableState` | `PurgeableState` | 4 | 1 | 3 | | `MTLResourceOptions` | `ResourceOptions` | — a bit set | 0 | 0 | -| `MTLSparsePageSize` | `SparsePageSize` | 3 | 3 | 0 | -| `MTLSparseTextureRegionAlignmentMode` | `SparseTextureRegionAlignmentMode` | 2 | 0 | 2 | -| `MTLStorageMode` | `StorageMode` | 4 | 0 | 3 | -| `MTLStoreAction` | `StoreAction` | 6 | 4 | 0 | -| `MTLStoreActionOptions` | `StoreActionOptions` | — a bit set | 0 | 0 | -| `MTLVisibilityResultMode` | `VisibilityResultMode` | 3 | 3 | 0 | ## By container -Every container with an implemented item, by how much of it the suite reaches. +Every container with an implemented item, by how much of it the suite reaches. *no binding* is the container's share of the unreachable items above, held out of *unexercised* so each ratio reads as what authoring could close. -| container | implemented | exercised | unexercised | families | -|---|---|---|---|---| -| `MTLRenderCommandEncoder` | 119 | 64 | 55 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | -| `MTLArgument` | 17 | 0 | 17 | | -| `MTLDevice` | 63 | 48 | 15 | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`… | -| `MTLComputeCommandEncoder` | 36 | 23 | 13 | `argument_encoders`, `astc_textures`, `blit_encoder_commands`, `border_swizzles`… | -| the header's free functions | 12 | 0 | 12 | | -| `MTLIndirectRenderCommand` | 23 | 12 | 11 | `indirect_commands`, `mesh_commands` | -| `MTLRasterizationRateLayerDescriptor` | 10 | 0 | 10 | | -| `MTLComputePipelineState` | 15 | 6 | 9 | `compute_threadgroups`, `pipeline_facts`, `pipeline_handlers` | -| `MTLRenderPipelineState` | 15 | 8 | 7 | `pipeline_facts`, `pipeline_handlers`, `tile_threadgroups` | -| `MTLTextureDescriptor` | 19 | 13 | 6 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLRasterizationRateMapDescriptor` | 10 | 5 | 5 | `rate_map_sweeps`, `rate_maps` | -| `MTLBlitCommandEncoder` | 22 | 18 | 4 | `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`… | -| `MTLLibrary` | 11 | 7 | 4 | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`… | -| `MTLRenderPipelineReflection` | 9 | 5 | 4 | `pipeline_options`, `texture_accesses` | -| `MTLVisibleFunctionTable` | 4 | 0 | 4 | | -| `MTLBuffer` | 6 | 3 | 3 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLDepthStencilState` | 3 | 0 | 3 | | -| `MTLFence` | 3 | 0 | 3 | | -| `MTLFunctionHandle` | 3 | 0 | 3 | | -| `MTLFunctionReflection` | 3 | 0 | 3 | | -| `MTLObjectPayloadBinding` | 3 | 0 | 3 | | -| `MTLRasterizationRateSampleArray` | 3 | 0 | 3 | | -| `MTLVisibleFunctionTableDescriptor` | 3 | 0 | 3 | | -| `MTLArgumentEncoder` | 23 | 21 | 2 | `argument_encoders` | -| `MTLAttributeDescriptorArray` | 3 | 1 | 2 | `indirect_commands`, `stage_in_regions` | -| `MTLBufferLayoutDescriptorArray` | 3 | 1 | 2 | `indirect_commands`, `stage_in_regions` | -| `MTLComputePipelineReflection` | 3 | 1 | 2 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLFunction` | 12 | 10 | 2 | `argument_encoders`, `function_facts`, `library_facts`, `tile_pipeline_descriptors` | -| `MTLFunctionConstantValues` | 5 | 3 | 2 | `function_facts`, `library_facts` | -| `MTLIndirectCommandBuffer` | 6 | 4 | 2 | `indirect_commands`, `mesh_commands` | -| `MTLIndirectComputeCommand` | 12 | 10 | 2 | `indirect_commands` | -| `MTLLinkedFunctions` | 6 | 4 | 2 | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | -| `MTLPipelineBufferDescriptorArray` | 3 | 1 | 2 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | -| `MTLRasterizationRateLayerArray` | 3 | 1 | 2 | `rate_map_sweeps` | -| `MTLRenderPipelineColorAttachmentDescriptorArray` | 3 | 1 | 2 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | -| `MTLSamplerState` | 3 | 1 | 2 | `pixel_downscales`, `pixel_samplers` | -| `MTLSharedEvent` | 5 | 3 | 2 | `event_orders`, `shared_events` | -| `MTLSharedEventListener` | 2 | 0 | 2 | | -| `MTLStageInputOutputDescriptor` | 7 | 5 | 2 | `indirect_commands`, `stage_in_regions` | -| `MTLTileRenderPipelineColorAttachmentDescriptorArray` | 3 | 1 | 2 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | -| `MTLType` | 2 | 0 | 2 | | -| `MTLVertexAttributeDescriptorArray` | 3 | 1 | 2 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | -| `MTLVertexBufferLayoutDescriptorArray` | 3 | 1 | 2 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | -| `MTLVertexDescriptor` | 5 | 3 | 2 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | -| `MTLAllocation` | 1 | 0 | 1 | | -| `MTLArgumentDescriptor` | 8 | 7 | 1 | `argument_encoders` | -| `MTLArrayType` | 9 | 8 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLAttribute` | 7 | 6 | 1 | `function_facts`, `library_facts` | -| `MTLAttributeDescriptor` | 4 | 3 | 1 | `indirect_commands`, `stage_in_regions` | -| `MTLBinaryArchive` | 7 | 6 | 1 | `binary_archives` | -| `MTLBinaryArchiveDescriptor` | 2 | 1 | 1 | `binary_archives` | -| `MTLBinding` | 7 | 6 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options`, `texture_accesses` | -| `MTLBufferBinding` | 6 | 5 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLBufferLayoutDescriptor` | 4 | 3 | 1 | `indirect_commands`, `stage_in_regions` | -| `MTLCommandBuffer` | 21 | 20 | 1 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLCommandEncoder` | 2 | 1 | 1 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLCommandQueue` | 4 | 3 | 1 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLComputePipelineDescriptor` | 16 | 15 | 1 | `binary_archives`, `compute_pipeline_descriptors`, `indirect_commands`, `pipeline_facts`… | -| `MTLDepthStencilDescriptor` | 5 | 4 | 1 | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | -| `MTLDynamicLibrary` | 5 | 4 | 1 | `dynamic_libraries` | -| `MTLEvent` | 3 | 2 | 1 | `shared_events` | -| `MTLFunctionConstant` | 5 | 4 | 1 | `function_facts`, `library_facts` | -| `MTLFunctionDescriptor` | 5 | 4 | 1 | `library_facts` | -| `MTLHeap` | 17 | 16 | 1 | `compressed_moves`, `heap_facts`, `resource_facts`, `sparse_heaps`… | -| `MTLHeapDescriptor` | 8 | 7 | 1 | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`… | -| `MTLIndirectCommandBufferDescriptor` | 19 | 18 | 1 | `indirect_commands`, `mesh_commands` | -| `MTLMeshRenderPipelineDescriptor` | 18 | 17 | 1 | `binary_archives`, `mesh_barriers`, `mesh_commands`, `mesh_draws`… | -| `MTLPipelineBufferDescriptor` | 2 | 1 | 1 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | -| `MTLPointerType` | 8 | 7 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLRasterizationRateMap` | 11 | 10 | 1 | `rate_map_sweeps`, `rate_maps` | -| `MTLRenderPassAttachmentDescriptor` | 12 | 11 | 1 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | -| `MTLRenderPassColorAttachmentDescriptor` | 2 | 1 | 1 | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… | -| `MTLRenderPassColorAttachmentDescriptorArray` | 3 | 2 | 1 | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… | -| `MTLRenderPassDepthAttachmentDescriptor` | 3 | 2 | 1 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | -| `MTLRenderPassDescriptor` | 17 | 16 | 1 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | -| `MTLRenderPassStencilAttachmentDescriptor` | 3 | 2 | 1 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | -| `MTLRenderPipelineColorAttachmentDescriptor` | 10 | 9 | 1 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | -| `MTLRenderPipelineDescriptor` | 35 | 34 | 1 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | -| `MTLRenderPipelineFunctionsDescriptor` | 4 | 3 | 1 | `pipeline_functions` | -| `MTLResource` | 12 | 11 | 1 | `buffer_textures`, `heap_facts`, `resource_facts` | -| `MTLResourceStateCommandEncoder` | 7 | 6 | 1 | `sparse_mappings` | -| `MTLSamplerDescriptor` | 16 | 15 | 1 | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`… | -| `MTLSharedEventHandle` | 2 | 1 | 1 | `shared_events` | -| `MTLSharedTextureHandle` | 2 | 1 | 1 | `texture_views` | -| `MTLStencilDescriptor` | 7 | 6 | 1 | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | -| `MTLStructMember` | 9 | 8 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLStructType` | 3 | 2 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLTexture` | 29 | 28 | 1 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | -| `MTLTextureBinding` | 5 | 4 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLTextureReferenceType` | 5 | 4 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLTextureViewDescriptor` | 6 | 5 | 1 | `texture_views` | -| `MTLThreadgroupBinding` | 3 | 2 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | -| `MTLTileRenderPipelineColorAttachmentDescriptor` | 2 | 1 | 1 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | -| `MTLTileRenderPipelineDescriptor` | 15 | 14 | 1 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | -| `MTLVertexAttribute` | 7 | 6 | 1 | `function_facts`, `library_facts` | -| `MTLVertexAttributeDescriptor` | 4 | 3 | 1 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | -| `MTLVertexBufferLayoutDescriptor` | 4 | 3 | 1 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | +| container | implemented | no binding | exercised | unexercised | families | +|---|---|---|---|---|---| +| `MTLRenderCommandEncoder` | 119 | 0 | 65 | 54 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | +| `MTLArgument` | 17 | 0 | 0 | 17 | | +| the header's free functions | 12 | 0 | 0 | 12 | | +| `MTLComputeCommandEncoder` | 36 | 0 | 24 | 12 | `argument_encoders`, `astc_textures`, `blit_encoder_commands`, `border_swizzles`… | +| `MTLDevice` | 63 | 2 | 49 | 12 | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`… | +| `MTLIndirectRenderCommand` | 23 | 0 | 13 | 10 | `indirect_commands`, `mesh_commands` | +| `MTLRasterizationRateLayerDescriptor` | 9 | 0 | 0 | 9 | | +| `MTLComputePipelineState` | 15 | 0 | 7 | 8 | `compute_threadgroups`, `pipeline_facts`, `pipeline_handlers` | +| `MTLRenderPipelineState` | 15 | 0 | 9 | 6 | `pipeline_facts`, `pipeline_handlers`, `tile_threadgroups` | +| `MTLTextureDescriptor` | 19 | 0 | 15 | 4 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLVisibleFunctionTable` | 4 | 0 | 0 | 4 | | +| `MTLBlitCommandEncoder` | 22 | 0 | 19 | 3 | `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`… | +| `MTLDepthStencilState` | 3 | 0 | 0 | 3 | | +| `MTLFence` | 3 | 0 | 0 | 3 | | +| `MTLFunctionHandle` | 3 | 0 | 0 | 3 | | +| `MTLLibrary` | 11 | 0 | 8 | 3 | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`… | +| `MTLObjectPayloadBinding` | 3 | 0 | 0 | 3 | | +| `MTLRasterizationRateMapDescriptor` | 10 | 0 | 7 | 3 | `rate_map_sweeps`, `rate_maps` | +| `MTLRasterizationRateSampleArray` | 3 | 0 | 0 | 3 | | +| `MTLRenderPipelineReflection` | 9 | 0 | 6 | 3 | `pipeline_options`, `texture_accesses` | +| `MTLVisibleFunctionTableDescriptor` | 3 | 0 | 0 | 3 | | +| `MTLBuffer` | 6 | 0 | 4 | 2 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLFunctionReflection` | 3 | 1 | 0 | 2 | | +| `MTLSharedEventListener` | 2 | 0 | 0 | 2 | | +| `MTLArgumentEncoder` | 23 | 0 | 22 | 1 | `argument_encoders` | +| `MTLAttributeDescriptorArray` | 3 | 0 | 2 | 1 | `indirect_commands`, `stage_in_regions` | +| `MTLBufferLayoutDescriptorArray` | 3 | 0 | 2 | 1 | `indirect_commands`, `stage_in_regions` | +| `MTLComputePipelineReflection` | 3 | 0 | 2 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLFunction` | 12 | 0 | 11 | 1 | `argument_encoders`, `function_facts`, `library_facts`, `tile_pipeline_descriptors` | +| `MTLFunctionConstantValues` | 5 | 0 | 4 | 1 | `function_facts`, `library_facts` | +| `MTLIndirectCommandBuffer` | 6 | 0 | 5 | 1 | `indirect_commands`, `mesh_commands` | +| `MTLIndirectComputeCommand` | 12 | 0 | 11 | 1 | `indirect_commands` | +| `MTLLinkedFunctions` | 6 | 0 | 5 | 1 | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | +| `MTLPipelineBufferDescriptorArray` | 3 | 0 | 2 | 1 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | +| `MTLRasterizationRateLayerArray` | 3 | 0 | 2 | 1 | `rate_map_sweeps` | +| `MTLRenderPipelineColorAttachmentDescriptorArray` | 3 | 0 | 2 | 1 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | +| `MTLSamplerState` | 3 | 0 | 2 | 1 | `pixel_downscales`, `pixel_samplers` | +| `MTLSharedEvent` | 5 | 0 | 4 | 1 | `event_orders`, `shared_events` | +| `MTLStageInputOutputDescriptor` | 7 | 0 | 6 | 1 | `indirect_commands`, `stage_in_regions` | +| `MTLTileRenderPipelineColorAttachmentDescriptorArray` | 3 | 0 | 2 | 1 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | +| `MTLType` | 2 | 0 | 1 | 1 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLVertexAttributeDescriptorArray` | 3 | 0 | 2 | 1 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | +| `MTLVertexBufferLayoutDescriptorArray` | 3 | 0 | 2 | 1 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | +| `MTLVertexDescriptor` | 5 | 0 | 4 | 1 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | +| `MTLAllocation` | 1 | 0 | 1 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLArgumentDescriptor` | 8 | 0 | 8 | 0 | `argument_encoders` | +| `MTLArrayType` | 9 | 0 | 9 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLAttribute` | 7 | 0 | 7 | 0 | `function_facts`, `library_facts` | +| `MTLAttributeDescriptor` | 4 | 0 | 4 | 0 | `indirect_commands`, `stage_in_regions` | +| `MTLBinaryArchive` | 7 | 0 | 7 | 0 | `binary_archives` | +| `MTLBinaryArchiveDescriptor` | 2 | 0 | 2 | 0 | `binary_archives` | +| `MTLBinding` | 7 | 0 | 7 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options`, `texture_accesses` | +| `MTLBufferBinding` | 6 | 0 | 6 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLBufferLayoutDescriptor` | 4 | 0 | 4 | 0 | `indirect_commands`, `stage_in_regions` | +| `MTLCommandBuffer` | 21 | 0 | 21 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLCommandEncoder` | 2 | 0 | 2 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLCommandQueue` | 4 | 0 | 4 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLComputePipelineDescriptor` | 16 | 0 | 16 | 0 | `binary_archives`, `compute_pipeline_descriptors`, `indirect_commands`, `pipeline_facts`… | +| `MTLDepthStencilDescriptor` | 5 | 0 | 5 | 0 | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | +| `MTLDynamicLibrary` | 5 | 0 | 5 | 0 | `dynamic_libraries` | +| `MTLEvent` | 3 | 0 | 3 | 0 | `event_orders`, `shared_events` | +| `MTLFunctionConstant` | 5 | 0 | 5 | 0 | `function_facts`, `library_facts` | +| `MTLFunctionDescriptor` | 5 | 0 | 5 | 0 | `library_facts` | +| `MTLHeap` | 17 | 0 | 17 | 0 | `compressed_moves`, `heap_facts`, `resource_facts`, `sparse_heaps`… | +| `MTLHeapDescriptor` | 8 | 0 | 8 | 0 | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`… | +| `MTLIndirectCommandBufferDescriptor` | 19 | 0 | 19 | 0 | `indirect_commands`, `mesh_commands` | +| `MTLMeshRenderPipelineDescriptor` | 18 | 0 | 18 | 0 | `binary_archives`, `mesh_barriers`, `mesh_commands`, `mesh_draws`… | +| `MTLPipelineBufferDescriptor` | 2 | 0 | 2 | 0 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | +| `MTLPointerType` | 8 | 0 | 8 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLRasterizationRateMap` | 11 | 0 | 11 | 0 | `rate_map_sweeps`, `rate_maps` | +| `MTLRenderPassAttachmentDescriptor` | 12 | 0 | 12 | 0 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | +| `MTLRenderPassColorAttachmentDescriptor` | 2 | 0 | 2 | 0 | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… | +| `MTLRenderPassColorAttachmentDescriptorArray` | 3 | 0 | 3 | 0 | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… | +| `MTLRenderPassDepthAttachmentDescriptor` | 3 | 0 | 3 | 0 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | +| `MTLRenderPassDescriptor` | 17 | 0 | 17 | 0 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | +| `MTLRenderPassStencilAttachmentDescriptor` | 3 | 0 | 3 | 0 | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`… | +| `MTLRenderPipelineColorAttachmentDescriptor` | 10 | 0 | 10 | 0 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | +| `MTLRenderPipelineDescriptor` | 35 | 0 | 35 | 0 | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… | +| `MTLRenderPipelineFunctionsDescriptor` | 4 | 0 | 4 | 0 | `pipeline_functions` | +| `MTLResource` | 12 | 0 | 12 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLResourceStateCommandEncoder` | 7 | 0 | 7 | 0 | `sparse_mappings` | +| `MTLSamplerDescriptor` | 16 | 0 | 16 | 0 | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`… | +| `MTLSharedEventHandle` | 2 | 0 | 2 | 0 | `shared_events` | +| `MTLSharedTextureHandle` | 2 | 0 | 2 | 0 | `texture_views` | +| `MTLStencilDescriptor` | 7 | 0 | 7 | 0 | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | +| `MTLStructMember` | 9 | 0 | 9 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLStructType` | 3 | 0 | 3 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLTexture` | 29 | 0 | 29 | 0 | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`… | +| `MTLTextureBinding` | 5 | 0 | 5 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLTextureReferenceType` | 5 | 0 | 5 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLTextureViewDescriptor` | 6 | 0 | 6 | 0 | `texture_views` | +| `MTLThreadgroupBinding` | 3 | 0 | 3 | 0 | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | +| `MTLTileRenderPipelineColorAttachmentDescriptor` | 2 | 0 | 2 | 0 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | +| `MTLTileRenderPipelineDescriptor` | 15 | 0 | 15 | 0 | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | +| `MTLVertexAttribute` | 7 | 0 | 7 | 0 | `function_facts`, `library_facts` | +| `MTLVertexAttributeDescriptor` | 4 | 0 | 4 | 0 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | +| `MTLVertexBufferLayoutDescriptor` | 4 | 0 | 4 | 0 | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… | ## By header, which is the family of behaviour @@ -293,45 +335,45 @@ A container is one Objective-C type; the SDK header it sits in is the family of | header | implemented | exercised | unexercised | |---|---|---|---| -| `MTLRenderCommandEncoder.h` | 119 | 64 | 55 | -| `MTLArgument.h` | 77 | 46 | 31 | -| `MTLRasterizationRate.h` | 37 | 16 | 21 | -| `MTLRenderPipeline.h` | 114 | 93 | 21 | -| `MTLDevice.h` | 73 | 55 | 18 | -| `MTLComputeCommandEncoder.h` | 36 | 23 | 13 | -| `MTLIndirectCommandEncoder.h` | 35 | 22 | 13 | -| `MTLComputePipeline.h` | 34 | 22 | 12 | -| `MTLLibrary.h` | 45 | 33 | 12 | -| `MTLTexture.h` | 57 | 47 | 10 | -| `MTLStageInputOutputDescriptor.h` | 21 | 13 | 8 | -| `MTLVertexDescriptor.h` | 19 | 11 | 8 | -| `MTLRenderPass.h` | 41 | 34 | 7 | +| `MTLRenderCommandEncoder.h` | 119 | 65 | 54 | +| `MTLArgument.h` | 77 | 56 | 21 | +| `MTLRasterizationRate.h` | 36 | 20 | 16 | +| `MTLDevice.h` | 73 | 59 | 14 | +| `MTLComputeCommandEncoder.h` | 36 | 24 | 12 | +| `MTLIndirectCommandEncoder.h` | 35 | 24 | 11 | +| `MTLRenderPipeline.h` | 114 | 103 | 11 | +| `MTLComputePipeline.h` | 34 | 25 | 9 | | `MTLTypes.h` | 7 | 0 | 7 | | `MTLVisibleFunctionTable.h` | 7 | 0 | 7 | -| `MTLEvent.h` | 12 | 6 | 6 | -| `MTLDepthStencil.h` | 15 | 10 | 5 | -| `MTLBlitCommandEncoder.h` | 22 | 18 | 4 | -| `MTLIndirectCommandBuffer.h` | 26 | 22 | 4 | -| `MTLBuffer.h` | 6 | 3 | 3 | +| `MTLLibrary.h` | 45 | 39 | 6 | +| `MTLTexture.h` | 57 | 52 | 5 | +| `MTLBlitCommandEncoder.h` | 22 | 19 | 3 | +| `MTLDepthStencil.h` | 15 | 12 | 3 | +| `MTLEvent.h` | 12 | 9 | 3 | | `MTLFence.h` | 3 | 0 | 3 | | `MTLFunctionHandle.h` | 3 | 0 | 3 | -| `MTLPipeline.h` | 5 | 2 | 3 | -| `MTLSampler.h` | 19 | 16 | 3 | -| `MTLArgumentEncoder.h` | 23 | 21 | 2 | -| `MTLBinaryArchive.h` | 9 | 7 | 2 | -| `MTLFunctionConstantValues.h` | 5 | 3 | 2 | -| `MTLHeap.h` | 25 | 23 | 2 | -| `MTLLinkedFunctions.h` | 6 | 4 | 2 | -| `MTLAllocation.h` | 1 | 0 | 1 | -| `MTLCommandBuffer.h` | 21 | 20 | 1 | -| `MTLCommandEncoder.h` | 2 | 1 | 1 | -| `MTLCommandQueue.h` | 4 | 3 | 1 | -| `MTLDynamicLibrary.h` | 5 | 4 | 1 | -| `MTLFunctionDescriptor.h` | 5 | 4 | 1 | -| `MTLResource.h` | 12 | 11 | 1 | -| `MTLResourceStateCommandEncoder.h` | 7 | 6 | 1 | +| `MTLStageInputOutputDescriptor.h` | 21 | 18 | 3 | +| `MTLVertexDescriptor.h` | 19 | 16 | 3 | +| `MTLBuffer.h` | 6 | 4 | 2 | +| `MTLIndirectCommandBuffer.h` | 26 | 24 | 2 | +| `MTLArgumentEncoder.h` | 23 | 22 | 1 | +| `MTLFunctionConstantValues.h` | 5 | 4 | 1 | +| `MTLLinkedFunctions.h` | 6 | 5 | 1 | +| `MTLPipeline.h` | 5 | 4 | 1 | +| `MTLRenderPass.h` | 41 | 40 | 1 | +| `MTLSampler.h` | 19 | 18 | 1 | +| `MTLAllocation.h` | 1 | 1 | 0 | +| `MTLBinaryArchive.h` | 9 | 9 | 0 | +| `MTLCommandBuffer.h` | 21 | 21 | 0 | +| `MTLCommandEncoder.h` | 2 | 2 | 0 | +| `MTLCommandQueue.h` | 4 | 4 | 0 | +| `MTLDynamicLibrary.h` | 5 | 5 | 0 | +| `MTLFunctionDescriptor.h` | 5 | 5 | 0 | +| `MTLHeap.h` | 25 | 25 | 0 | +| `MTLResource.h` | 12 | 12 | 0 | +| `MTLResourceStateCommandEncoder.h` | 7 | 7 | 0 | -5 of 37 headers have no exercised item at all, 21 implemented items between them: `MTLAllocation.h`, `MTLFence.h`, `MTLFunctionHandle.h`, `MTLTypes.h`, `MTLVisibleFunctionTable.h`. +4 of 37 headers have no exercised item at all, 20 implemented items between them: `MTLFence.h`, `MTLFunctionHandle.h`, `MTLTypes.h`, `MTLVisibleFunctionTable.h`. ## Containers with no case at all @@ -340,21 +382,19 @@ An implemented container no case's Metal leg touches. These are the families of | container | implemented items | header | |---|---|---| | the header's free functions | 12 | `MTLDevice.h` | -| `MTLAllocation` | 1 | `MTLAllocation.h` | | `MTLArgument` | 17 | `MTLArgument.h` | | `MTLDepthStencilState` | 3 | `MTLDepthStencil.h` | | `MTLFence` | 3 | `MTLFence.h` | | `MTLFunctionHandle` | 3 | `MTLFunctionHandle.h` | | `MTLFunctionReflection` | 3 | `MTLLibrary.h` | | `MTLObjectPayloadBinding` | 3 | `MTLArgument.h` | -| `MTLRasterizationRateLayerDescriptor` | 10 | `MTLRasterizationRate.h` | +| `MTLRasterizationRateLayerDescriptor` | 9 | `MTLRasterizationRate.h` | | `MTLRasterizationRateSampleArray` | 3 | `MTLRasterizationRate.h` | | `MTLSharedEventListener` | 2 | `MTLEvent.h` | -| `MTLType` | 2 | `MTLArgument.h` | | `MTLVisibleFunctionTable` | 4 | `MTLVisibleFunctionTable.h` | | `MTLVisibleFunctionTableDescriptor` | 3 | `MTLVisibleFunctionTable.h` | -14 containers, 69 implemented items. +12 containers, 65 implemented items. ## The suite's shape @@ -377,11 +417,11 @@ An implemented container no case's Metal leg touches. These are the families of | modules forbidding a re-record | 8 | | `Side` methods (the suite's whole device vocabulary) | 118 | | `Side` methods the Metal leg reaches an SDK item through | 113 | -| SDK items a case's Metal leg reaches, median | 45 | -| the same, least and most | 0 and 142 | -| Metal call sites in the leg | 1545 | -| distinct selectors the leg sends | 602 | -| of those, resolved to an item of the coverage map | 598 | +| SDK items a case's Metal leg reaches, median | 60 | +| the same, least and most | 0 and 179 | +| Metal call sites in the leg | 1546 | +| distinct selectors the leg sends | 603 | +| of those, resolved to an item of the coverage map | 599 | | oracles the recordings name | `apple-m3-max` ×949 | ## By family @@ -390,124 +430,124 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many | family | cases | Metal ran | compared | items reached | |---|---|---|---|---| -| `argument_encoders` | 5 | 5 | every field | 68 | -| `astc_textures` | 28 | 28 | 1 tolerance(s): `Degradation` | 31 | -| `binary_archives` | 6 | 6 | every field | 28 | -| `blend_sweeps` | 11 | 11 | every field | 78 | -| `blit_encoder_commands` | 9 | 9 | every field | 57 | -| `border_swizzles` | 8 | 8 | 1 tolerance(s): `Degradation` | 47 | -| `buffer_blits` | 4 | 4 | every field | 28 | -| `buffer_depth_samples` | 5 | 5 | every field | 52 | -| `buffer_target_clears` | 6 | 6 | every field | 38 | -| `buffer_texture_blits` | 2 | 2 | every field | 40 | -| `buffer_textures` | 3 | 2 | every field | 52 | -| `chroma_pairs` | 6 | 6 | every field | 58 | -| `color_write_masks` | 3 | 3 | every field | 76 | -| `command_buffer_facts` | 1 | 1 | every field | 20 | -| `command_queues` | 1 | 1 | every field | 3 | -| `compressed_blits` | 4 | 4 | every field | 42 | -| `compressed_decode` | 10 | 10 | 1 tolerance(s): `Degradation` | 31 | -| `compressed_moves` | 14 | 14 | every field | 29 | -| `compressed_views` | 14 | 14 | every field | 40 | -| `compute_encoder_commands` | 8 | 8 | every field | 53 | -| `compute_pipeline_descriptors` | 3 | 3 | every field | 17 | -| `compute_render_chains` | 3 | 3 | every field | 101 | -| `compute_threadgroups` | 2 | 1 | every field | 17 | -| `denormal_word_fetches` | 1 | 1 | every field | 31 | -| `depth_texel_reads` | 1 | 1 | every field | 37 | -| `device_queries` | 5 | 5 | every field | 6 | -| `discard_hoist` | 1 | 1 | 1 tolerance(s): `Degradation` | 95 | -| `draw_state_changes` | 1 | 1 | every field | 97 | -| `dynamic_libraries` | 3 | 3 | every field | 12 | -| `etc_textures` | 10 | 10 | 2 tolerance(s): `Degradation` | 31 | -| `event_orders` | 4 | 4 | every field | 17 | -| `extended_range_blends` | 18 | 18 | every field | 85 | -| `extended_range_planes` | 4 | 4 | every field | 19 | -| `extended_range_targets` | 22 | 22 | every field | 82 | -| `extended_range_two_planes` | 2 | 2 | every field | 21 | -| `extended_swizzles` | 15 | 15 | every field | 47 | -| `fetch_ordered` | 4 | 4 | every field | 77 | -| `format_copies` | 16 | 16 | every field | 41 | -| `frame_chains` | 1 | 1 | every field | 99 | -| `fresh_contents` | 87 | 87 | every field | 43 | -| `function_bindings` | 15 | 15 | every field | 49 | -| `function_facts` | 12 | 12 | every field | 31 | -| `half_output_blends` | 6 | 6 | every field | 77 | -| `half_read_nans` | 6 | 6 | every field | 37 | -| `half_storage_writes` | 9 | 9 | every field | 22 | -| `half_texel_nans` | 8 | 8 | every field | 21 | -| `half_write_nans` | 7 | 7 | every field | 21 | +| `argument_encoders` | 5 | 5 | every field | 83 | +| `astc_textures` | 28 | 28 | 1 tolerance(s): `Degradation` | 42 | +| `binary_archives` | 6 | 6 | every field | 40 | +| `blend_sweeps` | 11 | 11 | every field | 104 | +| `blit_encoder_commands` | 9 | 9 | every field | 72 | +| `border_swizzles` | 8 | 8 | 1 tolerance(s): `Degradation` | 59 | +| `buffer_blits` | 4 | 4 | every field | 41 | +| `buffer_depth_samples` | 5 | 5 | every field | 72 | +| `buffer_target_clears` | 6 | 6 | every field | 54 | +| `buffer_texture_blits` | 2 | 2 | every field | 55 | +| `buffer_textures` | 3 | 2 | every field | 65 | +| `chroma_pairs` | 6 | 6 | every field | 74 | +| `color_write_masks` | 3 | 3 | every field | 101 | +| `command_buffer_facts` | 1 | 1 | every field | 28 | +| `command_queues` | 1 | 1 | every field | 5 | +| `compressed_blits` | 4 | 4 | every field | 57 | +| `compressed_decode` | 10 | 10 | 1 tolerance(s): `Degradation` | 42 | +| `compressed_moves` | 14 | 14 | every field | 49 | +| `compressed_views` | 14 | 14 | every field | 55 | +| `compute_encoder_commands` | 8 | 8 | every field | 65 | +| `compute_pipeline_descriptors` | 3 | 3 | every field | 22 | +| `compute_render_chains` | 3 | 3 | every field | 129 | +| `compute_threadgroups` | 2 | 1 | every field | 27 | +| `denormal_word_fetches` | 1 | 1 | every field | 42 | +| `depth_texel_reads` | 1 | 1 | every field | 49 | +| `device_queries` | 5 | 5 | every field | 7 | +| `discard_hoist` | 1 | 1 | 1 tolerance(s): `Degradation` | 122 | +| `draw_state_changes` | 1 | 1 | every field | 124 | +| `dynamic_libraries` | 3 | 3 | every field | 15 | +| `etc_textures` | 10 | 10 | 2 tolerance(s): `Degradation` | 42 | +| `event_orders` | 4 | 4 | every field | 27 | +| `extended_range_blends` | 18 | 18 | every field | 112 | +| `extended_range_planes` | 4 | 4 | every field | 29 | +| `extended_range_targets` | 22 | 22 | every field | 109 | +| `extended_range_two_planes` | 2 | 2 | every field | 32 | +| `extended_swizzles` | 15 | 15 | every field | 59 | +| `fetch_ordered` | 4 | 4 | every field | 103 | +| `format_copies` | 16 | 16 | every field | 56 | +| `frame_chains` | 1 | 1 | every field | 126 | +| `fresh_contents` | 87 | 87 | every field | 58 | +| `function_bindings` | 15 | 15 | every field | 62 | +| `function_facts` | 12 | 12 | every field | 38 | +| `half_output_blends` | 6 | 6 | every field | 103 | +| `half_read_nans` | 6 | 6 | every field | 49 | +| `half_storage_writes` | 9 | 9 | every field | 33 | +| `half_texel_nans` | 8 | 8 | every field | 32 | +| `half_write_nans` | 7 | 7 | every field | 32 | | `handler_waits` | 3 | 0 | every field | 0 | -| `heap_facts` | 5 | 5 | every field | 30 | -| `heap_metal_sizes` | 7 | 7 | every field | 12 | -| `host_detach` | 1 | 1 | every field | 10 | -| `host_page_writes` | 4 | 4 | every field | 84 | -| `indirect_commands` | 6 | 6 | every field | 141 | +| `heap_facts` | 5 | 5 | every field | 35 | +| `heap_metal_sizes` | 7 | 7 | every field | 14 | +| `host_detach` | 1 | 1 | every field | 18 | +| `host_page_writes` | 4 | 4 | every field | 111 | +| `indirect_commands` | 6 | 6 | every field | 178 | | `indirect_private_types` | 1 | 0 | every field | 0 | -| `int_attributes` | 1 | 1 | every field | 67 | -| `level_sizes` | 2 | 2 | every field | 31 | -| `library_facts` | 5 | 5 | every field | 38 | -| `math_routines` | 2 | 2 | every field | 16 | -| `mesh_barriers` | 2 | 2 | every field | 33 | -| `mesh_commands` | 2 | 2 | 1 tolerance(s): `AcceptedDifference` | 39 | -| `mesh_draws` | 6 | 6 | every field | 30 | -| `mesh_pipeline_descriptors` | 3 | 3 | every field | 32 | -| `nearest_positions` | 1 | 1 | every field | 37 | -| `norm_storage_writes` | 7 | 7 | every field | 33 | -| `pass_bytes` | 4 | 4 | 1 tolerance(s): `Degradation` | 16 | -| `pipeline_descriptors` | 3 | 3 | every field | 62 | -| `pipeline_facts` | 6 | 6 | every field | 53 | -| `pipeline_functions` | 8 | 8 | every field | 4 | -| `pipeline_handlers` | 24 | 24 | every field | 74 | -| `pipeline_option_reflection` | 3 | 3 | every field | 49 | -| `pipeline_options` | 21 | 21 | every field | 57 | -| `pixel_downscales` | 7 | 7 | every field | 39 | -| `pixel_samplers` | 16 | 16 | every field | 39 | -| `pvrtc_cpu_order` | 6 | 6 | every field | 41 | -| `pvrtc_rows` | 8 | 8 | every field | 41 | -| `rate_map_sweeps` | 8 | 8 | every field | 20 | -| `rate_maps` | 2 | 2 | every field | 15 | -| `render_chains` | 3 | 3 | every field | 95 | -| `render_depth_stencil_state` | 3 | 3 | every field | 94 | -| `render_draw_forms` | 4 | 4 | every field | 83 | -| `render_pass_descriptors` | 12 | 12 | every field | 34 | -| `render_residency` | 2 | 2 | every field | 95 | -| `render_state` | 3 | 3 | every field | 115 | -| `resource_facts` | 4 | 4 | every field | 46 | -| `rgb10a2_srgb` | 8 | 8 | every field | 56 | -| `rotated_planes` | 20 | 20 | 1 tolerance(s): `Degradation` | 76 | -| `rotated_targets` | 14 | 14 | every field | 78 | +| `int_attributes` | 1 | 1 | every field | 91 | +| `level_sizes` | 2 | 2 | every field | 42 | +| `library_facts` | 5 | 5 | every field | 46 | +| `math_routines` | 2 | 2 | every field | 25 | +| `mesh_barriers` | 2 | 2 | every field | 51 | +| `mesh_commands` | 2 | 2 | 1 tolerance(s): `AcceptedDifference` | 60 | +| `mesh_draws` | 6 | 6 | every field | 48 | +| `mesh_pipeline_descriptors` | 3 | 3 | every field | 38 | +| `nearest_positions` | 1 | 1 | every field | 49 | +| `norm_storage_writes` | 7 | 7 | every field | 44 | +| `pass_bytes` | 4 | 4 | 1 tolerance(s): `Degradation` | 25 | +| `pipeline_descriptors` | 3 | 3 | every field | 75 | +| `pipeline_facts` | 6 | 6 | every field | 67 | +| `pipeline_functions` | 8 | 8 | every field | 7 | +| `pipeline_handlers` | 24 | 24 | every field | 92 | +| `pipeline_option_reflection` | 3 | 3 | every field | 62 | +| `pipeline_options` | 21 | 21 | every field | 74 | +| `pixel_downscales` | 7 | 7 | every field | 52 | +| `pixel_samplers` | 16 | 16 | every field | 52 | +| `pvrtc_cpu_order` | 6 | 6 | every field | 56 | +| `pvrtc_rows` | 8 | 8 | every field | 56 | +| `rate_map_sweeps` | 8 | 8 | every field | 28 | +| `rate_maps` | 2 | 2 | every field | 21 | +| `render_chains` | 3 | 3 | every field | 122 | +| `render_depth_stencil_state` | 3 | 3 | every field | 122 | +| `render_draw_forms` | 4 | 4 | every field | 109 | +| `render_pass_descriptors` | 12 | 12 | every field | 40 | +| `render_residency` | 2 | 2 | every field | 122 | +| `render_state` | 3 | 3 | every field | 142 | +| `resource_facts` | 4 | 4 | every field | 54 | +| `rgb10a2_srgb` | 8 | 8 | every field | 77 | +| `rotated_planes` | 20 | 20 | 1 tolerance(s): `Degradation` | 101 | +| `rotated_targets` | 14 | 14 | every field | 104 | | `sample_fills` | 17 | 0 | 1 tolerance(s): `Degradation` | 0 | -| `sample_positions` | 19 | 16 | every field | 76 | -| `sampler_filtering` | 15 | 15 | every field | 49 | -| `scheduled_handlers` | 1 | 1 | every field | 11 | -| `shader_stencil` | 2 | 2 | every field | 90 | -| `shared_events` | 2 | 2 | every field | 13 | -| `shared_exponent_storage` | 5 | 5 | every field | 32 | -| `simdgroup_lockstep` | 2 | 2 | every field | 16 | -| `snorm_tile_store` | 7 | 7 | 1 tolerance(s): `Degradation` | 76 | -| `sparse_heaps` | 6 | 6 | every field | 22 | -| `sparse_mappings` | 9 | 9 | every field | 39 | -| `sparse_tiles` | 4 | 4 | every field | 4 | -| `srgb_fetch` | 2 | 2 | every field | 89 | -| `stage_in_regions` | 1 | 1 | every field | 33 | +| `sample_positions` | 19 | 16 | every field | 102 | +| `sampler_filtering` | 15 | 15 | every field | 61 | +| `scheduled_handlers` | 1 | 1 | every field | 16 | +| `shader_stencil` | 2 | 2 | every field | 118 | +| `shared_events` | 2 | 2 | every field | 19 | +| `shared_exponent_storage` | 5 | 5 | every field | 43 | +| `simdgroup_lockstep` | 2 | 2 | every field | 25 | +| `snorm_tile_store` | 7 | 7 | 1 tolerance(s): `Degradation` | 101 | +| `sparse_heaps` | 6 | 6 | every field | 29 | +| `sparse_mappings` | 9 | 9 | every field | 52 | +| `sparse_tiles` | 4 | 4 | every field | 5 | +| `srgb_fetch` | 2 | 2 | every field | 117 | +| `stage_in_regions` | 1 | 1 | every field | 48 | | `surface_fills` | 1 | 0 | every field | 0 | -| `swizzled_storage` | 6 | 6 | every field | 33 | -| `texel_swizzles` | 6 | 6 | every field | 31 | -| `texture_accesses` | 1 | 1 | every field | 13 | +| `swizzled_storage` | 6 | 6 | every field | 44 | +| `texel_swizzles` | 6 | 6 | every field | 42 | +| `texture_accesses` | 1 | 1 | every field | 20 | | `texture_buffer_fills` | 3 | 0 | every field | 0 | -| `texture_fills` | 54 | 2 | 1 tolerance(s): `Degradation` | 44 | -| `texture_views` | 4 | 4 | every field | 40 | -| `textures` | 75 | 75 | every field | 6 | -| `tile_pipeline_descriptors` | 3 | 3 | every field | 24 | -| `tile_threadgroups` | 8 | 8 | every field | 35 | -| `two_plane_copies` | 3 | 1 | every field | 44 | -| `two_plane_heap_blits` | 1 | 1 | every field | 42 | -| `two_plane_samples` | 16 | 16 | every field | 37 | -| `visibility` | 10 | 10 | every field | 88 | -| `wide_points` | 1 | 1 | every field | 77 | -| `ycbcr_minify` | 2 | 2 | every field | 39 | -| `ycbcr_textures` | 2 | 2 | every field | 29 | +| `texture_fills` | 54 | 2 | 1 tolerance(s): `Degradation` | 60 | +| `texture_views` | 4 | 4 | every field | 48 | +| `textures` | 75 | 75 | every field | 11 | +| `tile_pipeline_descriptors` | 3 | 3 | every field | 33 | +| `tile_threadgroups` | 8 | 8 | every field | 54 | +| `two_plane_copies` | 3 | 1 | every field | 60 | +| `two_plane_heap_blits` | 1 | 1 | every field | 58 | +| `two_plane_samples` | 16 | 16 | every field | 49 | +| `visibility` | 10 | 10 | every field | 115 | +| `wide_points` | 1 | 1 | every field | 103 | +| `ycbcr_minify` | 2 | 2 | every field | 50 | +| `ycbcr_textures` | 2 | 2 | every field | 39 | ## Every implemented item @@ -534,7 +574,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLAllocation` | no | — | — | +| `MTLAllocation` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pipeline_facts`, `pipeline_handlers`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 747 | ### `MTLArgument` @@ -562,7 +602,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLArgumentDescriptor` | no | — | — | +| `MTLArgumentDescriptor` | yes | `argument_encoders` | 5 | | `argumentDescriptor` | yes | `argument_encoders` | 5 | | `dataType` | yes | `argument_encoders` | 5 | | `index` | yes | `argument_encoders` | 5 | @@ -575,7 +615,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLArgumentEncoder` | no | — | — | +| `MTLArgumentEncoder` | yes | `argument_encoders` | 5 | | `device` | yes | `argument_encoders` | 5 | | `label` | yes | `argument_encoders` | 5 | | `encodedLength` | yes | `argument_encoders` | 5 | @@ -603,7 +643,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLArrayType` | no | — | — | +| `MTLArrayType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `elementType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `arrayLength` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `stride` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -617,7 +657,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLAttribute` | no | — | — | +| `MTLAttribute` | yes | `function_facts`, `library_facts` | 17 | | `name` | yes | `function_facts`, `library_facts` | 17 | | `attributeIndex` | yes | `function_facts`, `library_facts` | 17 | | `attributeType` | yes | `function_facts`, `library_facts` | 17 | @@ -629,7 +669,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLAttributeDescriptor` | no | — | — | +| `MTLAttributeDescriptor` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `format` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `offset` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `bufferIndex` | yes | `indirect_commands`, `stage_in_regions` | 7 | @@ -638,7 +678,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLAttributeDescriptorArray` | no | — | — | +| `MTLAttributeDescriptorArray` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `objectAtIndexedSubscript:` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -646,7 +686,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBinaryArchive` | no | — | — | +| `MTLBinaryArchive` | yes | `binary_archives` | 6 | | `label` | yes | `binary_archives` | 6 | | `device` | yes | `binary_archives` | 6 | | `addComputePipelineFunctionsWithDescriptor:error:` | yes | `binary_archives` | 6 | @@ -658,14 +698,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBinaryArchiveDescriptor` | no | — | — | +| `MTLBinaryArchiveDescriptor` | yes | `binary_archives` | 6 | | `url` | yes | `binary_archives` | 6 | ### `MTLBinding` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBinding` | no | — | — | +| `MTLBinding` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options`, `texture_accesses` | 40 | | `name` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `type` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `access` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -677,7 +717,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBlitCommandEncoder` | no | — | — | +| `MTLBlitCommandEncoder` | yes | `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `chroma_pairs`, `command_buffer_facts`, `compressed_blits`, `compressed_views`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `fresh_contents`, `half_output_blends`, `host_detach`, `host_page_writes`, `indirect_commands`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `scheduled_handlers`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `wide_points` | 315 | | `synchronizeResource:` | yes | `blit_encoder_commands` | 9 | | `synchronizeTexture:slice:level:` | yes | `blit_encoder_commands` | 9 | | `copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:` | yes | `buffer_texture_blits`, `chroma_pairs`, `compressed_blits`, `format_copies`, `pvrtc_rows`, `two_plane_heap_blits` | 37 | @@ -704,7 +744,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBuffer` | no | — | — | +| `MTLBuffer` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 627 | | `length` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_texel_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 592 | | `contents` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 618 | | `didModifyRange:` | no | — | — | @@ -715,7 +755,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBufferBinding` | no | — | — | +| `MTLBufferBinding` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `bufferAlignment` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `bufferDataSize` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `bufferDataType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -726,7 +766,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBufferLayoutDescriptor` | no | — | — | +| `MTLBufferLayoutDescriptor` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `stride` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `stepFunction` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `stepRate` | yes | `indirect_commands`, `stage_in_regions` | 7 | @@ -735,7 +775,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBufferLayoutDescriptorArray` | no | — | — | +| `MTLBufferLayoutDescriptorArray` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `objectAtIndexedSubscript:` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -743,7 +783,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandBuffer` | no | — | — | +| `MTLCommandBuffer` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 616 | | `device` | yes | `command_buffer_facts` | 1 | | `commandQueue` | yes | `command_buffer_facts` | 1 | | `kernelStartTime` | yes | `command_buffer_facts` | 1 | @@ -769,14 +809,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandEncoder` | no | — | — | +| `MTLCommandEncoder` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 614 | | `endEncoding` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 587 | ### `MTLCommandQueue` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandQueue` | no | — | — | +| `MTLCommandQueue` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 617 | | `label` | yes | `command_buffer_facts` | 1 | | `device` | yes | `command_buffer_facts` | 1 | | `commandBuffer` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 617 | @@ -785,7 +825,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLComputeCommandEncoder` | no | — | — | +| `MTLComputeCommandEncoder` | yes | `argument_encoders`, `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `format_copies`, `frame_chains`, `fresh_contents`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `level_sizes`, `math_routines`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rgb10a2_srgb`, `sampler_filtering`, `shared_exponent_storage`, `simdgroup_lockstep`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `ycbcr_minify`, `ycbcr_textures` | 460 | | `dispatchType` | yes | `compute_encoder_commands` | 8 | | `setComputePipelineState:` | yes | `argument_encoders`, `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `format_copies`, `frame_chains`, `fresh_contents`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `level_sizes`, `math_routines`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rgb10a2_srgb`, `sampler_filtering`, `shared_exponent_storage`, `simdgroup_lockstep`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `ycbcr_minify`, `ycbcr_textures` | 460 | | `setBytes:length:atIndex:` | yes | `compute_encoder_commands` | 8 | @@ -826,7 +866,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLComputePipelineDescriptor` | no | — | — | +| `MTLComputePipelineDescriptor` | yes | `binary_archives`, `compute_pipeline_descriptors`, `indirect_commands`, `pipeline_facts`, `pipeline_handlers`, `stage_in_regions` | 46 | | `label` | yes | `compute_pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers` | 33 | | `computeFunction` | yes | `binary_archives`, `compute_pipeline_descriptors`, `indirect_commands`, `pipeline_facts`, `pipeline_handlers`, `stage_in_regions` | 46 | | `threadGroupSizeIsMultipleOfThreadExecutionWidth` | yes | `compute_pipeline_descriptors` | 3 | @@ -847,7 +887,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLComputePipelineReflection` | no | — | — | +| `MTLComputePipelineReflection` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `bindings` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `arguments` | no | — | — | @@ -855,7 +895,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLComputePipelineState` | no | — | — | +| `MTLComputePipelineState` | yes | `compute_threadgroups`, `pipeline_facts`, `pipeline_handlers` | 31 | | `label` | yes | `pipeline_facts`, `pipeline_handlers` | 30 | | `functionHandleWithBinaryFunction:` | no | — | — | | `newComputePipelineStateWithBinaryFunctions:error:` | no | — | — | @@ -875,7 +915,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLDepthStencilDescriptor` | no | — | — | +| `MTLDepthStencilDescriptor` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `depthCompareFunction` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `depthWriteEnabled` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `frontFaceStencil` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | @@ -893,7 +933,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLDevice` | no | — | — | +| `MTLDevice` | yes | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `device_queries`, `discard_hoist`, `draw_state_changes`, `dynamic_libraries`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `function_bindings`, `function_facts`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `heap_metal_sizes`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `library_facts`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_functions`, `pipeline_handlers`, `pipeline_option_reflection`, `pipeline_options`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `sparse_tiles`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `texture_views`, `textures`, `tile_pipeline_descriptors`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 853 | | `name` | no | — | — | | `registryID` | yes | `argument_encoders`, `binary_archives`, `command_buffer_facts`, `dynamic_libraries`, `function_facts`, `heap_facts`, `library_facts`, `pipeline_facts`, `pipeline_handlers`, `resource_facts`, `shared_events`, `texture_views` | 77 | | `maxThreadsPerThreadgroup` | no | — | — | @@ -961,7 +1001,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLDynamicLibrary` | no | — | — | +| `MTLDynamicLibrary` | yes | `dynamic_libraries` | 3 | | `label` | yes | `dynamic_libraries` | 3 | | `device` | yes | `dynamic_libraries` | 3 | | `installName` | yes | `dynamic_libraries` | 3 | @@ -971,7 +1011,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLEvent` | no | — | — | +| `MTLEvent` | yes | `event_orders`, `shared_events` | 6 | | `device` | yes | `shared_events` | 2 | | `label` | yes | `shared_events` | 2 | @@ -987,7 +1027,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLFunction` | no | — | — | +| `MTLFunction` | yes | `argument_encoders`, `function_facts`, `library_facts`, `tile_pipeline_descriptors` | 25 | | `device` | yes | `function_facts`, `library_facts` | 17 | | `functionType` | yes | `function_facts`, `library_facts` | 17 | | `patchType` | yes | `function_facts`, `library_facts` | 17 | @@ -1004,7 +1044,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLFunctionConstant` | no | — | — | +| `MTLFunctionConstant` | yes | `function_facts`, `library_facts` | 17 | | `name` | yes | `function_facts`, `library_facts` | 17 | | `type` | yes | `function_facts`, `library_facts` | 17 | | `index` | yes | `function_facts`, `library_facts` | 17 | @@ -1014,7 +1054,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLFunctionConstantValues` | no | — | — | +| `MTLFunctionConstantValues` | yes | `function_facts`, `library_facts` | 17 | | `setConstantValue:type:atIndex:` | yes | `function_facts`, `library_facts` | 17 | | `setConstantValues:type:withRange:` | yes | `function_facts`, `library_facts` | 17 | | `setConstantValue:type:withName:` | yes | `function_facts`, `library_facts` | 17 | @@ -1024,7 +1064,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLFunctionDescriptor` | no | — | — | +| `MTLFunctionDescriptor` | yes | `library_facts` | 5 | | `functionDescriptor` | yes | `library_facts` | 5 | | `name` | yes | `library_facts` | 5 | | `constantValues` | yes | `library_facts` | 5 | @@ -1050,7 +1090,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLHeap` | no | — | — | +| `MTLHeap` | yes | `compressed_moves`, `heap_facts`, `resource_facts`, `sparse_heaps`, `sparse_mappings`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` | 42 | | `label` | yes | `heap_facts`, `resource_facts` | 9 | | `device` | yes | `heap_facts`, `resource_facts` | 9 | | `storageMode` | yes | `heap_facts`, `resource_facts` | 9 | @@ -1072,7 +1112,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLHeapDescriptor` | no | — | — | +| `MTLHeapDescriptor` | yes | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `format_copies`, `fresh_contents`, `heap_facts`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_residency`, `resource_facts`, `sparse_heaps`, `sparse_mappings`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` | 207 | | `size` | yes | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `format_copies`, `fresh_contents`, `heap_facts`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_residency`, `resource_facts`, `sparse_heaps`, `sparse_mappings`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` | 207 | | `storageMode` | yes | `heap_facts`, `render_residency`, `resource_facts`, `sparse_heaps`, `sparse_mappings` | 26 | | `cpuCacheMode` | yes | `heap_facts`, `resource_facts` | 9 | @@ -1085,7 +1125,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLIndirectCommandBuffer` | no | — | — | +| `MTLIndirectCommandBuffer` | yes | `indirect_commands`, `mesh_commands` | 8 | | `size` | yes | `indirect_commands` | 6 | | `gpuResourceID` | no | — | — | | `resetWithRange:` | yes | `indirect_commands` | 6 | @@ -1096,7 +1136,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLIndirectCommandBufferDescriptor` | no | — | — | +| `MTLIndirectCommandBufferDescriptor` | yes | `indirect_commands`, `mesh_commands` | 8 | | `commandTypes` | yes | `indirect_commands`, `mesh_commands` | 8 | | `inheritPipelineState` | yes | `indirect_commands`, `mesh_commands` | 8 | | `inheritBuffers` | yes | `indirect_commands`, `mesh_commands` | 8 | @@ -1120,7 +1160,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLIndirectComputeCommand` | no | — | — | +| `MTLIndirectComputeCommand` | yes | `indirect_commands` | 6 | | `setComputePipelineState:` | yes | `indirect_commands` | 6 | | `setKernelBuffer:offset:atIndex:` | yes | `indirect_commands` | 6 | | `setKernelBuffer:offset:attributeStride:atIndex:` | yes | `indirect_commands` | 6 | @@ -1137,7 +1177,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLIndirectRenderCommand` | no | — | — | +| `MTLIndirectRenderCommand` | yes | `indirect_commands`, `mesh_commands` | 8 | | `setRenderPipelineState:` | yes | `indirect_commands`, `mesh_commands` | 8 | | `setVertexBuffer:offset:atIndex:` | yes | `indirect_commands` | 6 | | `setFragmentBuffer:offset:atIndex:` | yes | `indirect_commands` | 6 | @@ -1165,7 +1205,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLLibrary` | no | — | — | +| `MTLLibrary` | yes | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `dynamic_libraries`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `function_bindings`, `function_facts`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `library_facts`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_functions`, `pipeline_handlers`, `pipeline_option_reflection`, `pipeline_options`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 708 | | `device` | yes | `dynamic_libraries`, `library_facts` | 8 | | `newFunctionWithName:` | yes | `argument_encoders`, `astc_textures`, `binary_archives`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `function_bindings`, `function_facts`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_functions`, `pipeline_handlers`, `pipeline_option_reflection`, `pipeline_options`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 700 | | `newFunctionWithName:constantValues:error:` | yes | `function_facts` | 12 | @@ -1181,7 +1221,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLLinkedFunctions` | no | — | — | +| `MTLLinkedFunctions` | yes | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | | `linkedFunctions` | no | — | — | | `functions` | yes | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | | `binaryFunctions` | yes | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | @@ -1192,7 +1232,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLMeshRenderPipelineDescriptor` | no | — | — | +| `MTLMeshRenderPipelineDescriptor` | yes | `binary_archives`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_handlers` | 43 | | `label` | yes | `mesh_pipeline_descriptors` | 3 | | `objectFunction` | yes | `binary_archives`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_handlers` | 43 | | `meshFunction` | yes | `binary_archives`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_handlers` | 43 | @@ -1223,14 +1263,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLPipelineBufferDescriptor` | no | — | — | +| `MTLPipelineBufferDescriptor` | yes | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | | `mutability` | yes | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | ### `MTLPipelineBufferDescriptorArray` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLPipelineBufferDescriptorArray` | no | — | — | +| `MTLPipelineBufferDescriptorArray` | yes | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | | `objectAtIndexedSubscript:` | yes | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` | 9 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -1238,7 +1278,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLPointerType` | no | — | — | +| `MTLPointerType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `elementType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `access` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `alignment` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1251,7 +1291,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRasterizationRateLayerArray` | no | — | — | +| `MTLRasterizationRateLayerArray` | yes | `rate_map_sweeps` | 8 | | `objectAtIndexedSubscript:` | no | — | — | | `setObject:atIndexedSubscript:` | yes | `rate_map_sweeps` | 8 | @@ -1268,13 +1308,12 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `verticalSampleStorage` | no | — | — | | `horizontal` | no | — | — | | `vertical` | no | — | — | -| `MTLRasterizationRateLayerDescriptor` | no | — | — | ### `MTLRasterizationRateMap` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRasterizationRateMap` | no | — | — | +| `MTLRasterizationRateMap` | yes | `rate_map_sweeps`, `rate_maps` | 10 | | `device` | yes | `rate_map_sweeps` | 8 | | `label` | yes | `rate_map_sweeps`, `rate_maps` | 10 | | `screenSize` | yes | `rate_map_sweeps`, `rate_maps` | 10 | @@ -1290,9 +1329,9 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRasterizationRateMapDescriptor` | no | — | — | +| `MTLRasterizationRateMapDescriptor` | yes | `rate_map_sweeps`, `rate_maps` | 10 | | `rasterizationRateMapDescriptorWithScreenSize:` | yes | `rate_map_sweeps`, `rate_maps` | 10 | -| `rasterizationRateMapDescriptorWithScreenSize:layer:` | no | — | — | +| `rasterizationRateMapDescriptorWithScreenSize:layer:` | yes | `rate_map_sweeps` | 8 | | `rasterizationRateMapDescriptorWithScreenSize:layerCount:layers:` | no | — | — | | `layerAtIndex:` | no | — | — | | `setLayer:atIndex:` | yes | `rate_map_sweeps`, `rate_maps` | 10 | @@ -1313,7 +1352,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderCommandEncoder` | no | — | — | +| `MTLRenderCommandEncoder` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 205 | | `setRenderPipelineState:` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `int_attributes`, `mesh_barriers`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 186 | | `setVertexBytes:length:atIndex:` | yes | `compute_render_chains`, `draw_state_changes`, `frame_chains`, `host_page_writes`, `render_chains`, `wide_points` | 13 | | `setVertexBuffer:offset:atIndex:` | yes | `color_write_masks`, `fetch_ordered`, `int_attributes`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility` | 77 | @@ -1437,7 +1476,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassAttachmentDescriptor` | no | — | — | +| `MTLRenderPassAttachmentDescriptor` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 217 | | `texture` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 217 | | `level` | yes | `render_pass_descriptors` | 12 | | `slice` | yes | `buffer_depth_samples`, `render_pass_descriptors` | 17 | @@ -1454,14 +1493,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassColorAttachmentDescriptor` | no | — | — | +| `MTLRenderPassColorAttachmentDescriptor` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 212 | | `clearColor` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 196 | ### `MTLRenderPassColorAttachmentDescriptorArray` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassColorAttachmentDescriptorArray` | no | — | — | +| `MTLRenderPassColorAttachmentDescriptorArray` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 212 | | `objectAtIndexedSubscript:` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 212 | | `setObject:atIndexedSubscript:` | yes | `render_pass_descriptors` | 12 | @@ -1469,7 +1508,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassDepthAttachmentDescriptor` | no | — | — | +| `MTLRenderPassDepthAttachmentDescriptor` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 191 | | `clearDepth` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 191 | | `depthResolveFilter` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 186 | @@ -1477,7 +1516,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassDescriptor` | no | — | — | +| `MTLRenderPassDescriptor` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 217 | | `renderPassDescriptor` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 217 | | `colorAttachments` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 212 | | `depthAttachment` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 191 | @@ -1499,7 +1538,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPassStencilAttachmentDescriptor` | no | — | — | +| `MTLRenderPassStencilAttachmentDescriptor` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 191 | | `clearStencil` | yes | `blend_sweeps`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 191 | | `stencilResolveFilter` | yes | `blend_sweeps`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 186 | @@ -1507,7 +1546,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineColorAttachmentDescriptor` | no | — | — | +| `MTLRenderPipelineColorAttachmentDescriptor` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 250 | | `pixelFormat` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 250 | | `blendingEnabled` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 204 | | `sourceRGBBlendFactor` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 204 | @@ -1522,7 +1561,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineColorAttachmentDescriptorArray` | no | — | — | +| `MTLRenderPipelineColorAttachmentDescriptorArray` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 250 | | `objectAtIndexedSubscript:` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 250 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -1530,7 +1569,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineDescriptor` | no | — | — | +| `MTLRenderPipelineDescriptor` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 237 | | `label` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `vertexFunction` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 237 | | `fragmentFunction` | yes | `binary_archives`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `pipeline_options`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_accesses`, `visibility`, `wide_points` | 237 | @@ -1570,7 +1609,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineFunctionsDescriptor` | no | — | — | +| `MTLRenderPipelineFunctionsDescriptor` | yes | `pipeline_functions` | 8 | | `vertexAdditionalBinaryFunctions` | yes | `pipeline_functions` | 8 | | `fragmentAdditionalBinaryFunctions` | yes | `pipeline_functions` | 8 | | `tileAdditionalBinaryFunctions` | yes | `pipeline_functions` | 8 | @@ -1579,7 +1618,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineReflection` | no | — | — | +| `MTLRenderPipelineReflection` | yes | `pipeline_options`, `texture_accesses` | 22 | | `vertexBindings` | yes | `pipeline_options`, `texture_accesses` | 22 | | `fragmentBindings` | yes | `pipeline_options`, `texture_accesses` | 22 | | `tileBindings` | yes | `texture_accesses` | 1 | @@ -1593,7 +1632,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLRenderPipelineState` | no | — | — | +| `MTLRenderPipelineState` | yes | `pipeline_facts`, `pipeline_handlers`, `tile_threadgroups` | 38 | | `label` | yes | `pipeline_facts`, `pipeline_handlers` | 30 | | `device` | yes | `pipeline_facts`, `pipeline_handlers` | 30 | | `functionHandleWithBinaryFunction:stage:` | no | — | — | @@ -1613,7 +1652,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLResource` | no | — | — | +| `MTLResource` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_sweeps`, `rate_maps`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 717 | | `label` | yes | `heap_facts`, `resource_facts` | 9 | | `device` | yes | `heap_facts`, `resource_facts` | 9 | | `cpuCacheMode` | yes | `buffer_textures`, `heap_facts`, `resource_facts` | 11 | @@ -1630,7 +1669,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLResourceStateCommandEncoder` | no | — | — | +| `MTLResourceStateCommandEncoder` | yes | `sparse_mappings` | 9 | | `updateTextureMappings:mode:regions:mipLevels:slices:numRegions:` | yes | `sparse_mappings` | 9 | | `updateTextureMapping:mode:region:mipLevel:slice:` | yes | `sparse_mappings` | 9 | | `updateTextureMapping:mode:indirectBuffer:indirectBufferOffset:` | yes | `sparse_mappings` | 9 | @@ -1642,7 +1681,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSamplerDescriptor` | no | — | — | +| `MTLSamplerDescriptor` | yes | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`, `compute_render_chains`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_swizzles`, `frame_chains`, `half_read_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `render_chains`, `render_state`, `rgb10a2_srgb`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 126 | | `minFilter` | yes | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`, `compute_render_chains`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_swizzles`, `frame_chains`, `half_read_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `render_chains`, `render_state`, `rgb10a2_srgb`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 126 | | `magFilter` | yes | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`, `compute_render_chains`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_swizzles`, `frame_chains`, `half_read_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `render_chains`, `render_state`, `rgb10a2_srgb`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 126 | | `mipFilter` | yes | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`, `compute_render_chains`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_swizzles`, `frame_chains`, `half_read_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `render_chains`, `render_state`, `rgb10a2_srgb`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 126 | @@ -1663,7 +1702,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSamplerState` | no | — | — | +| `MTLSamplerState` | yes | `pixel_downscales`, `pixel_samplers` | 23 | | `device` | no | — | — | | `gpuResourceID` | yes | `pixel_downscales`, `pixel_samplers` | 23 | @@ -1671,7 +1710,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSharedEvent` | no | — | — | +| `MTLSharedEvent` | yes | `event_orders`, `shared_events` | 6 | | `notifyListener:atValue:block:` | no | — | — | | `newSharedEventHandle` | yes | `shared_events` | 2 | | `waitUntilSignaledValue:timeoutMS:` | yes | `event_orders`, `shared_events` | 6 | @@ -1681,7 +1720,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSharedEventHandle` | no | — | — | +| `MTLSharedEventHandle` | yes | `shared_events` | 2 | | `label` | yes | `shared_events` | 2 | ### `MTLSharedEventListener` @@ -1695,14 +1734,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSharedTextureHandle` | no | — | — | +| `MTLSharedTextureHandle` | yes | `texture_views` | 4 | | `device` | yes | `texture_views` | 4 | ### `MTLStageInputOutputDescriptor` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLStageInputOutputDescriptor` | no | — | — | +| `MTLStageInputOutputDescriptor` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `stageInputOutputDescriptor` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `layouts` | yes | `indirect_commands`, `stage_in_regions` | 7 | | `attributes` | yes | `indirect_commands`, `stage_in_regions` | 7 | @@ -1714,7 +1753,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLStencilDescriptor` | no | — | — | +| `MTLStencilDescriptor` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `stencilCompareFunction` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `stencilFailureOperation` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | | `depthFailureOperation` | yes | `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 17 | @@ -1726,7 +1765,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLStructMember` | no | — | — | +| `MTLStructMember` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `name` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `offset` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `dataType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1740,7 +1779,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLStructType` | no | — | — | +| `MTLStructType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `members` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `memberByName:` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1748,7 +1787,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTexture` | no | — | — | +| `MTLTexture` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `int_attributes`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points` | 682 | | `parentTexture` | yes | `texture_views` | 4 | | `parentRelativeLevel` | yes | `texture_views` | 4 | | `parentRelativeSlice` | yes | `texture_views` | 4 | @@ -1782,7 +1821,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTextureBinding` | no | — | — | +| `MTLTextureBinding` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `textureType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `textureDataType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `depthTexture` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1792,31 +1831,31 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTextureDescriptor` | no | — | — | +| `MTLTextureDescriptor` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 692 | | `texture2DDescriptorWithPixelFormat:width:height:mipmapped:` | yes | `argument_encoders`, `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_commands`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `texture_fills`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points` | 560 | | `textureCubeDescriptorWithPixelFormat:size:mipmapped:` | no | — | — | -| `textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:` | no | — | — | -| `textureType` | yes | `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_views`, `compute_render_chains`, `denormal_word_fetches`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 483 | +| `textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:` | yes | `blit_encoder_commands`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `format_copies`, `fresh_contents`, `pvrtc_cpu_order`, `pvrtc_rows`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` | 177 | +| `textureType` | yes | `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_render_chains`, `denormal_word_fetches`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 497 | | `pixelFormat` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_minify`, `ycbcr_textures` | 310 | | `width` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_minify`, `ycbcr_textures` | 310 | | `height` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_minify`, `ycbcr_textures` | 310 | -| `depth` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 308 | -| `mipmapLevelCount` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 308 | -| `sampleCount` | yes | `blend_sweeps`, `buffer_target_clears`, `buffer_textures`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `texture_views`, `visibility`, `wide_points`, `ycbcr_textures` | 203 | -| `arrayLength` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 308 | +| `depth` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 322 | +| `mipmapLevelCount` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 322 | +| `sampleCount` | yes | `blend_sweeps`, `blit_encoder_commands`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `visibility`, `wide_points`, `ycbcr_textures` | 378 | +| `arrayLength` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 322 | | `resourceOptions` | no | — | — | | `cpuCacheMode` | no | — | — | | `storageMode` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 692 | | `hazardTrackingMode` | no | — | — | | `usage` | yes | `argument_encoders`, `astc_textures`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_metal_sizes`, `host_page_writes`, `indirect_commands`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 692 | -| `allowGPUOptimizedContents` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 284 | +| `allowGPUOptimizedContents` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 298 | | `swizzle` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 284 | ### `MTLTextureReferenceType` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTextureReferenceType` | no | — | — | +| `MTLTextureReferenceType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `textureDataType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `textureType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `access` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1826,7 +1865,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTextureViewDescriptor` | no | — | — | +| `MTLTextureViewDescriptor` | yes | `texture_views` | 4 | | `pixelFormat` | yes | `texture_views` | 4 | | `textureType` | yes | `texture_views` | 4 | | `levelRange` | yes | `texture_views` | 4 | @@ -1837,7 +1876,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLThreadgroupBinding` | no | — | — | +| `MTLThreadgroupBinding` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `threadgroupMemoryAlignment` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `threadgroupMemoryDataSize` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | @@ -1845,14 +1884,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTileRenderPipelineColorAttachmentDescriptor` | no | — | — | +| `MTLTileRenderPipelineColorAttachmentDescriptor` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | | `pixelFormat` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | ### `MTLTileRenderPipelineColorAttachmentDescriptorArray` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTileRenderPipelineColorAttachmentDescriptorArray` | no | — | — | +| `MTLTileRenderPipelineColorAttachmentDescriptorArray` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | | `objectAtIndexedSubscript:` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -1860,7 +1899,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLTileRenderPipelineDescriptor` | no | — | — | +| `MTLTileRenderPipelineDescriptor` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | | `label` | yes | `tile_pipeline_descriptors` | 3 | | `tileFunction` | yes | `binary_archives`, `pipeline_handlers`, `tile_pipeline_descriptors`, `tile_threadgroups` | 41 | | `rasterSampleCount` | yes | `tile_pipeline_descriptors` | 3 | @@ -1880,14 +1919,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLType` | no | — | — | +| `MTLType` | yes | `function_bindings`, `pipeline_option_reflection`, `pipeline_options` | 39 | | `dataType` | no | — | — | ### `MTLVertexAttribute` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexAttribute` | no | — | — | +| `MTLVertexAttribute` | yes | `function_facts`, `library_facts` | 17 | | `name` | yes | `function_facts`, `library_facts` | 17 | | `attributeIndex` | yes | `function_facts`, `library_facts` | 17 | | `attributeType` | yes | `function_facts`, `library_facts` | 17 | @@ -1899,7 +1938,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexAttributeDescriptor` | no | — | — | +| `MTLVertexAttributeDescriptor` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `format` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `offset` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `bufferIndex` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | @@ -1908,7 +1947,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexAttributeDescriptorArray` | no | — | — | +| `MTLVertexAttributeDescriptorArray` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `objectAtIndexedSubscript:` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -1916,7 +1955,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexBufferLayoutDescriptor` | no | — | — | +| `MTLVertexBufferLayoutDescriptor` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `stride` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `stepFunction` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `stepRate` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | @@ -1925,7 +1964,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexBufferLayoutDescriptorArray` | no | — | — | +| `MTLVertexBufferLayoutDescriptorArray` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `objectAtIndexedSubscript:` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `setObject:atIndexedSubscript:` | no | — | — | @@ -1933,7 +1972,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLVertexDescriptor` | no | — | — | +| `MTLVertexDescriptor` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `vertexDescriptor` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `layouts` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | | `attributes` | yes | `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 201 | @@ -1969,16 +2008,17 @@ An item the suite's Metal leg calls whose coverage-map status is not implemented ## Called, attributed to no family -An item the Metal leg calls that no case module was found to reach: either a `Side` method no case calls, or a step of the vocabulary no case encodes. Each is suite code that no case runs. +An item the Metal leg calls that no case module was found to reach: a `Side` method no case calls, a step of the vocabulary no case encodes, or a call the leg makes outside every `Side` method — the side's own constructor, which runs for every case and which this walk has no family to attribute, because a family is read off which `Side` methods a case's text calls. The first two are suite code that no case runs; the third is measured and named here rather than counted as exercised. | item | status | |---|---| +| the header's free functions `MTLCreateSystemDefaultDevice` | implemented | | `MTLDevice` `name` | implemented | | `MTLIndirectComputeCommand` `setImageblockWidth:height:` | implemented | | `MTLIndirectRenderCommand` `setObjectThreadgroupMemoryLength:atIndex:` | implemented | | `MTLIndirectRenderCommand` `setVertexBuffer:offset:attributeStride:atIndex:` | implemented | +| `MTLRasterizationRateLayerDescriptor` `MTLRasterizationRateLayerDescriptor` | implemented | | `MTLRasterizationRateLayerDescriptor` `initWithSampleCount:horizontal:vertical:` | implemented | -| `MTLTextureDescriptor` `textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:` | implemented | ## Called, not in the coverage map diff --git a/scripts/conformance-coverage/coverage.py b/scripts/conformance-coverage/coverage.py index 75b1a8178..66c33d255 100644 --- a/scripts/conformance-coverage/coverage.py +++ b/scripts/conformance-coverage/coverage.py @@ -77,6 +77,66 @@ def item_index(rows) -> dict[tuple[str, str], dict[str, str]]: return {(row["container"], row["name"]): row for row in rows} +def self_named(rows) -> dict[str, tuple[str, str]]: + """Each container whose own implemented row the map holds, keyed by the container. + + A container's own row — `MTLComputeCommandEncoder`'s `MTLComputeCommandEncoder`, and every + other `class`, `protocol` and `category` row — names the **type**, not a selector of it. + `objc2-metal` binds no selector by that name, and the resolution below only ever yields + selectors, so no call site can resolve to one: left to that resolution every such row reads as + never exercised however much of the type the suite drives. + + So they are credited by what the row actually claims, which is that we implement the type: the + suite **messages** it. A call site whose receiver is the container or a subtype of it exercises + the container's own row, gated and attributed to a family exactly as the selector it sends is. + A class row and a protocol row are one rule here, because a message to the class + (`MTLTextureDescriptor::alloc()`) types its receiver to the class the same way an instance send + types its own. + """ + return { + row["container"]: (row["container"], row["name"]) + for row in rows + if row["status"] == "I" and row["container"] and row["name"] == row["container"] + } + + +def free_functions(rows) -> dict[str, tuple[str, str]]: + """The header's free functions the map holds as implemented, keyed by the function's name. + + These no container declares, so `objc2-metal` binds them as Rust functions rather than as + selectors and the receiver typing never sees one. The leg calls such a function by its own C + name, which the resolver records as a plain call — an edge of the reachability graph — so the + walk reads them there instead. + """ + return { + row["name"]: (row["container"], row["name"]) + for row in rows + if row["status"] == "I" and row["kind"] == "function" and not row["container"] + } + + +def unbound(rows, index, api: metal_leg.Api) -> list[tuple[str, str]]: + """The implemented items no case could call, because `objc2-metal` binds no name for them. + + The suite reaches Metal through `objc2-metal` alone. An item the crate binds no selector for + is not a gap in the **suite**: no case can call what has no binding, so counting it as not + exercised reads as work that no amount of authoring would close. Reported apart from the gap + for that reason, and derived rather than listed: every binding the crate declares is resolved + the same way a call site is, and what no binding lands on is what is left. + + A container's own row and a free function are excluded: neither is reached through a selector, + and both have their own rule above. + """ + bindable = set() + for (ty, rust), selector in api.selector.items(): + found = sdk_item(index, api, ty, selector) + if found is not None: + bindable.add(found) + keys = {(row["container"], row["name"]) for row in rows if row["status"] == "I"} + other = set(self_named(rows).values()) | set(free_functions(rows).values()) + return sorted(keys - bindable - other) + + def sdk_item(index, api: metal_leg.Api, ty: str, selector: str): """The coverage map's key for the item a call of `selector` on `ty` exercises, or `None`. @@ -198,12 +258,33 @@ def sdk_keyed(leg: metal_leg.Leg, index, api: metal_leg.Api): return keyed, sorted(set(unlisted)) -def gated_items(leg: metal_leg.Leg, entry_points: set[str], keyed): +def messaged_rows(leg: metal_leg.Leg, api: metal_leg.Api, selves) -> dict[int, set[tuple[str, str]]]: + """For each call site, the containers' own rows its receiver's type exercises. + + A send to a receiver typed `MTLTexture` messages `MTLTexture`, and through it every container + `MTLTexture` inherits from, so the row of each of those containers is exercised by that one + call. Keyed by the call so the walk gates and attributes it with the selector it sends. + """ + out: dict[int, set[tuple[str, str]]] = {} + for call in leg.calls: + if not call.receiver: + continue + keys = {selves[owner] for owner in api.chain(call.receiver) if owner in selves} + if keys: + out[id(call)] = keys + return out + + +def gated_items(leg: metal_leg.Leg, entry_points: set[str], keyed, messaged, frees): """For each entry point, the items it reaches and the variants each reaching needs. One walk of the leg's own call graph. A call inside `Step::GetBytes =>` is reached only by a case that encodes that step, so the variants of the `match` arms around a call travel with it; a call under no arm is reached by every case that calls the entry point at all. + + Three things a call reaches, and the same gate over all three: the SDK item its selector + resolves to (`keyed`), the containers' own rows its receiver messages (`messaged`), and, on an + edge of the graph rather than a call, a header free function the leg calls by name (`frees`). """ reached: dict[str, dict[tuple[str, str], set[frozenset]]] = {} @@ -214,9 +295,17 @@ def gated_items(leg: metal_leg.Leg, entry_points: set[str], keyed): return {} here: dict[tuple[str, str], set[frozenset]] = defaultdict(set) for call in leg.calls: - if call.function == fn and id(call) in keyed: - here[keyed[id(call)]].add(frozenset(call.arms)) + if call.function != fn: + continue + arms = frozenset(call.arms) + if id(call) in keyed: + here[keyed[id(call)]].add(arms) + for item in messaged.get(id(call), ()): + here[item].add(arms) for callee in leg.calls_function.get(fn, ()): + if callee in frees: + for arms in leg.function_arms.get((fn, callee), {()}): + here[frees[callee]].add(frozenset(arms)) below = walk(callee, stack + (fn,)) if not below: continue @@ -404,6 +493,9 @@ def inventory(): + "\n".join(f" {f}::{fn} sent {rust} to {ty}" for f, fn, rust, ty in sorted(set(leg.mistyped))) ) keyed, unlisted = sdk_keyed(leg, index, api) + selves = self_named(rows) + frees = free_functions(rows) + messaged = messaged_rows(leg, api, selves) side = side_methods() constructors = variant_constructors(enums) families = case_families(side, enums, constructors) @@ -411,7 +503,7 @@ def inventory(): # The call graph, from each `Side` method the Metal leg implements. entries = {fn for fn in leg.calls_function} | {call.function for call in leg.calls} - gated = gated_items(leg, entries & set(side), keyed) + gated = gated_items(leg, entries & set(side), keyed, messaged, frees) # An item to the families that reach it, and how. by_item: dict[tuple[str, str], dict[str, set[str]]] = defaultdict(lambda: defaultdict(set)) @@ -428,7 +520,11 @@ def inventory(): # Calls the leg makes that no family was found to reach: a call site this cannot attribute. reached = {item for method in gated.values() for item in method} - called = set(keyed.values()) + called = ( + set(keyed.values()) + | {item for items in messaged.values() for item in items} + | {frees[callee] for callees in leg.calls_function.values() for callee in callees if callee in frees} + ) return { "rows": rows, "index": index, @@ -439,9 +535,14 @@ def inventory(): "records": records, "gated": gated, "by_item": by_item, + "called": sorted(called), "unattributed": sorted(called - set(by_item)), "unreachable": sorted(called - reached), "keyed": keyed, + "selves": selves, + "frees": frees, + "messaged": messaged, + "unbound": unbound(rows, index, api), "unlisted": unlisted, "gaps": known_gaps(), # The second axis. A module with no case whose answer Metal ran puts no value to Metal, @@ -491,17 +592,28 @@ def write_option_space(w, space) -> None: w( "The denominator is generated, never written here: " "`crates/metal2vulkan/src/metal/generated.rs` and the front end's hold every enumerator " - "name and ordinal `scripts/regen-metal-enums/` extracts from the SDK's Metal headers. A " - "Metal type this tree models by hand instead has **no denominator here** and is listed " - "apart, below." + "name and ordinal `scripts/regen-metal-enums/` extracts from the SDK's Metal headers, and " + "`scripts/conformance-coverage/metal_enumerators.tsv` holds the same for the Metal types " + "this tree declares by hand instead, which have no generated Rust. A Metal type neither " + "covers has **no denominator here** and is listed apart, below." ) w("") w("A value is **compared** where either of two things holds, which are different claims:") w("") w( - "- **answered** — the enumerator's name is in a committed recording's transcript of an " - "answer Metal **ran**. Metal named the value back at a site the comparison reads, so the " - "value is in the compared text itself." + "- **answered** — the enumerator's name is in what a site of a committed recording " + "**observed**, in an answer Metal **ran**. Metal named the value back at a site the " + "comparison reads, so the value is in the compared text itself." + ) + site = sum(len(row["at_a_site"]) for row in rows) + w( + f"- **at a site** — the enumerator's name is a committed recording's site **name**, and " + f"in nothing that site observed: {site} of them. The comparison pairs sites by name, so " + "the value is in the compared text and the case did put it to Metal — but the name is the " + "**case's** label for the site, so it is no evidence that Metal said the value. It is its " + "own column for that reason: read together with *answered* it reads as Metal having " + "named back values that a case spelled itself, which for `MTLPixelFormat` is most of " + "them." ) w( "- **in effect** — a case module's own text names the value, and that module has at least " @@ -519,6 +631,16 @@ def write_option_space(w, space) -> None: "**name** is read. The *answered* column is a floor by every site that records an ordinal " "instead." ) + w( + "- **A spelling of a value this derivation does not read.** Both numerators read names, " + "and a name written in a shape the reading does not cover is counted nowhere and looks " + "exactly like a value no case reaches. Four shapes are read: a variant beside its type, " + "`objc2`'s own spelling, a renaming `use`, and a braced `use` whose variants the module " + "then writes bare. A fifth shape would be invisible the same way, so every count here is " + "a floor by that unknown — and the two shapes already found were each caught by someone " + "checking a count against the code, not by this derivation, so the unknown is not small " + "on the evidence." + ) w( "- **A value a case states as a raw ordinal.** A case may hand the Metal leg an enum's " "ordinal as a number — a sweep over `0..n` rather than over named variants — and no " @@ -580,19 +702,54 @@ def write_option_space(w, space) -> None: ) w("") w( - "Deepest gap first, which is the order the work list reads in. *answered* and *in effect* " - "overlap; *compared* is their union." + "Deepest gap first, which is the order the work list reads in. *answered*, *at a site* " + "and *in effect* overlap; *compared* is their union." ) w("") - w("| Metal type | values | compared | answered | in effect | shared only | missing |") - w("|---|---|---|---|---|---|---|") + w( + "| Metal type | values | compared | answered | at a site | in effect | shared only | " + "missing |" + ) + w("|---|---|---|---|---|---|---|---|") for row in sorted(rows, key=lambda r: (-len(r["missing"]), -len(r["shared"]), r["metal"])): w( f"| `{row['metal']}` | {len(row['values'])} | {len(row['compared'])} | " - f"{len(row['answered'])} | {len(row['in_effect'])} | {len(row['shared'])} | " - f"{len(row['missing'])} |" + f"{len(row['answered'])} | {len(row['at_a_site'])} | {len(row['in_effect'])} | " + f"{len(row['shared'])} | {len(row['missing'])} |" ) w("") + unreadable = [row for row in rows if row["named_no_value"]] + if unreadable: + w("### Types a case is about, whose values this axis cannot read") + w("") + w( + "The raw-ordinal limit above as a work list rather than a sentence. Each row is a type " + "whose name a recorded case module uses and **none of whose values that module states " + "by name**: a sweep written `for bits in 0..8` reads exactly this way, and so does a " + "module that only mentions the type in passing. So a row is a question for the case, " + "never a verdict on it -- the module may put every value of the type to Metal, and " + "this axis would still count none of them." + ) + w("") + w( + "It names the type and the module, and no value: which value a computed number is is " + "not a property of the text, and a rule that answered it would be inventing the " + "answer. Closing a row means the case stating its values by name, or a transcript site " + "recording the enumerator beside the ordinal it already stores." + ) + w("") + w("| Metal type | values | compared | modules naming it that state no value |") + w("|---|---|---|---|") + for row in sorted( + unreadable, key=lambda r: (len(r["compared"]), -len(r["values"]), r["metal"]) + ): + modules = ", ".join(f"`{m}`" for m in row["named_no_value"]) + w( + f"| `{row['metal']}` | {len(row['values'])} | {len(row['compared'])} | " + f"{modules} |" + ) + w("") + w("### The values not compared") w("") w( @@ -623,19 +780,26 @@ def write_option_space(w, space) -> None: w("") w( "These the tree models by hand: a Rust item whose own doc comment opens by naming a Metal " - "type, and whose shape is a closed enum or a newtype over one integer. " - "`regen-metal-enums` holds no value list for them, so **this axis has no denominator " - "here**, and *declared* is our own sources' variant count rather than the SDK's — a " - "newtype option set declares none. There is no *answered* column either: a recording names " - "a value by its Metal enumerator, and for these types this has no list of those names to " - "match against. Giving one a denominator means appending its Metal name to " - "`scripts/regen-metal-enums/`'s `ENUMS` or `OPTIONS` and regenerating." + "type, and whose shape is a closed enum or a newtype over one integer. The tree declares " + "them itself because the compile-and-plan layer never reads them, and that stays — but a " + "declaration measured against itself is no measurement, so " + "`scripts/regen-metal-enums/`'s `TABLE_ONLY` list generates " + "`scripts/conformance-coverage/metal_enumerators.tsv`, the SDK's own values for them, and " + "every type it covers is in the per-type table above with a real denominator. What is left " + "here is what the table does not cover." ) w("") w( - f"These {len(space['by_hand'])} are what that shape finds, and the list is a floor: a type " - "the tree models without saying so on the item lands in neither table, and so is nowhere " - "in this axis at all." + "For a row here **this axis has no denominator**: *declared* is our own sources' variant " + "count rather than the SDK's — a newtype option set declares none — and there is no " + "*answered* column, because a recording names a value by its Metal enumerator and this has " + "no list of those names to match against." + ) + w("") + w( + f"{len(space['by_hand'])} are left, and the list is a floor: a type the tree models " + "without saying so on the item lands in neither table, and so is nowhere in this axis at " + "all." ) w("") w("| Metal type | the tree's type | declared | stated by a recorded case | shared only |") @@ -652,8 +816,17 @@ def write(data) -> str: """The document's text.""" rows, index, api, leg = data["rows"], data["index"], data["api"], data["leg"] families, records, by_item = data["families"], data["records"], data["by_item"] - implemented = [row for row in rows if row["status"] == "I"] + # One row per `(container, name)`, not one per row of the map: it holds + # `MTLRasterizationRateLayerDescriptor` twice, once as a class and once as a category on it, + # and every number here is over keys. Counting the rows instead states a denominator the + # numerator cannot reach, and `item_index` resolves a call to the later row anyway. + implemented = list( + { + (row["container"], row["name"]): row for row in rows if row["status"] == "I" + }.values() + ) keys = {(row["container"], row["name"]) for row in implemented} + unreachable = set(data["unbound"]) exercised = {key for key in by_item if key in keys} cases_of = defaultdict(list) for record in records: @@ -733,6 +906,29 @@ def write(data) -> str: "generator fails rather than writing this document if any does, which is what keeps the " "typing from quietly counting the wrong item." ) + selves, frees = data["selves"], data["frees"] + w( + f"- **{len(selves)} of the map's implemented rows are a container's own**: the `class`, " + "`protocol` and `category` rows, whose name is the container's and not a selector's. No " + "call site can resolve to one, because `objc2-metal` binds no selector by that name, so " + "these are credited by the suite **messaging** the type instead — a call whose receiver is " + "the container or a subtype of it — under the same gate and the same family attribution as " + "the selector it sends." + ) + w( + f"- **{len(frees)} are the header's free functions**, which no container declares. " + "`objc2-metal` binds these as Rust functions, so the receiver typing never sees one; the " + "leg calls such a function by its own C name and the walk reads it as an edge of the call " + "graph." + ) + unreach = data["unbound"] + w( + f"- **{len(unreach)} implemented items `objc2-metal` binds no name for at all**, so no " + "case can call them whatever it is authored to do. They are counted apart from the gap " + "below rather than folded into it, because a gap is work and these are not:" + ) + for container, name in unreach: + w(f" - {_container(container)}'s `{name}`") w( "- The unit a call is attributed to is the **case module**, not the case: a module's cases " "share one `run`, so which of them encodes which step is not a property of the text. " @@ -751,10 +947,12 @@ def write(data) -> str: w("| | |") w("|---|---|") w(f"| implemented Metal items | {len(implemented)} |") - w(f"| of those, exercised by the suite's Metal leg | {len(exercised)} |") - w(f"| of those, not exercised | {len(implemented) - len(exercised)} |") - share = 100.0 * len(exercised) / len(implemented) - w(f"| share exercised | {share:.0f}% |") + w(f"| of those, unreachable: `objc2-metal` binds no name for them | {len(unreachable)} |") + w(f"| so reachable by some case | {len(keys) - len(unreachable)} |") + w(f"| of the reachable, exercised by the suite's Metal leg | {len(exercised)} |") + w(f"| of the reachable, not exercised | {len(keys) - len(unreachable) - len(exercised)} |") + share = 100.0 * len(exercised) / (len(keys) - len(unreachable)) + w(f"| share of the reachable exercised | {share:.0f}% |") loose = { key for key in exercised @@ -764,7 +962,13 @@ def write(data) -> str: w(f"| of those exercised, a case reaching it loosens some site | {len(loose)} |") w(f"| case modules | {len(families)} |") w(f"| committed recordings | {len(records)} |") - w(f"| distinct SDK items the Metal leg calls | {len(set(data['keyed'].values()))} |") + w( + f"| distinct SDK items the Metal leg reaches, of any status | {len(data['called'])} |" + ) + w( + f"| of those, reached only where this cannot name the family | " + f"{len(data['unattributed'])} |" + ) w(f"| ledger rows (a case whose gap is recorded) | {len(data['gaps'])} |") w("") w( @@ -787,27 +991,33 @@ def write(data) -> str: w("## By container") w("") - w("Every container with an implemented item, by how much of it the suite reaches.") + w( + "Every container with an implemented item, by how much of it the suite reaches. *no " + "binding* is the container's share of the unreachable items above, held out of " + "*unexercised* so each ratio reads as what authoring could close." + ) w("") - w("| container | implemented | exercised | unexercised | families |") - w("|---|---|---|---|---|") + w("| container | implemented | no binding | exercised | unexercised | families |") + w("|---|---|---|---|---|---|") by_container: dict[str, list[dict[str, str]]] = defaultdict(list) for row in implemented: by_container[row["container"]].append(row) - order = sorted( - by_container, - key=lambda c: ( - -(len(by_container[c]) - len({k for k in exercised if k[0] == c})), - c, - ), - ) + def container_left(container: str) -> int: + return sum( + 1 + for row in by_container[container] + if (row["container"], row["name"]) not in exercised + and (row["container"], row["name"]) not in unreachable + ) + order = sorted(by_container, key=lambda c: (-container_left(c), c)) for container in order: rows_here = by_container[container] hit = {key for key in exercised if key[0] == container} + blocked = sum(1 for key in unreachable if key[0] == container) modules = sorted({m for key in hit for m in by_item[key]}) w( - f"| {_container(container)} | {len(rows_here)} | {len(hit)} | " - f"{len(rows_here) - len(hit)} | " + f"| {_container(container)} | {len(rows_here)} | {blocked} | {len(hit)} | " + f"{container_left(container)} | " + (", ".join(f"`{m}`" for m in modules[:4]) + ("…" if len(modules) > 4 else "")) + " |" ) @@ -827,7 +1037,12 @@ def write(data) -> str: for row in implemented: by_header[row["header"]].append(row) def left(header: str) -> int: - return sum(1 for row in by_header[header] if (row["container"], row["name"]) not in exercised) + return sum( + 1 + for row in by_header[header] + if (row["container"], row["name"]) not in exercised + and (row["container"], row["name"]) not in unreachable + ) for header in sorted(by_header, key=lambda h: (-left(h), h)): hit = len(by_header[header]) - left(header) w(f"| `{header}` | {len(by_header[header])} | {hit} | {left(header)} |") @@ -967,9 +1182,12 @@ def write(data) -> str: w("## Called, attributed to no family") w("") w( - "An item the Metal leg calls that no case module was found to reach: either a `Side` " - "method no case calls, or a step of the vocabulary no case encodes. Each is suite code " - "that no case runs." + "An item the Metal leg calls that no case module was found to reach: a `Side` method no " + "case calls, a step of the vocabulary no case encodes, or a call the leg makes outside " + "every `Side` method — the side's own constructor, which runs for every case and which " + "this walk has no family to attribute, because a family is read off which `Side` methods " + "a case's text calls. The first two are suite code that no case runs; the third is " + "measured and named here rather than counted as exercised." ) w("") if data["unattributed"]: @@ -977,7 +1195,10 @@ def write(data) -> str: w("|---|---|") for key in data["unattributed"]: row = index.get(key) - w(f"| `{key[0]}` `{key[1]}` | {STATUS[row['status']] if row else 'not in the map'} |") + w( + f"| {_container(key[0])} `{key[1]}` | " + f"{STATUS[row['status']] if row else 'not in the map'} |" + ) else: w("None: every item the leg calls is reached by a case module.") w("") diff --git a/scripts/conformance-coverage/metal_enumerators.tsv b/scripts/conformance-coverage/metal_enumerators.tsv new file mode 100644 index 000000000..5fd93e967 --- /dev/null +++ b/scripts/conformance-coverage/metal_enumerators.tsv @@ -0,0 +1,60 @@ +# Generated from the macOS 27.0 SDK Metal.framework headers (names and values). +# Regenerate with scripts/regen-metal-enums/regen_metal_enums.py; do not edit. +# The SDK's values for the Metal enums and option sets this tree models by hand, which is +# the conformance suite's option-space denominator for them. +type kind role rust enumerator value +MTLBlitOption flags value NONE MTLBlitOptionNone 0 +MTLBlitOption flags value DEPTH_FROM_DEPTH_STENCIL MTLBlitOptionDepthFromDepthStencil 1 +MTLBlitOption flags value STENCIL_FROM_DEPTH_STENCIL MTLBlitOptionStencilFromDepthStencil 2 +MTLBlitOption flags value ROW_LINEAR_PVRTC MTLBlitOptionRowLinearPVRTC 4 +MTLCPUCacheMode enum value DefaultCache MTLCPUCacheModeDefaultCache 0 +MTLCPUCacheMode enum value WriteCombined MTLCPUCacheModeWriteCombined 1 +MTLCommandBufferStatus enum value NotEnqueued MTLCommandBufferStatusNotEnqueued 0 +MTLCommandBufferStatus enum value Enqueued MTLCommandBufferStatusEnqueued 1 +MTLCommandBufferStatus enum value Committed MTLCommandBufferStatusCommitted 2 +MTLCommandBufferStatus enum value Scheduled MTLCommandBufferStatusScheduled 3 +MTLCommandBufferStatus enum value Completed MTLCommandBufferStatusCompleted 4 +MTLCommandBufferStatus enum value Error MTLCommandBufferStatusError 5 +MTLHazardTrackingMode enum value Default MTLHazardTrackingModeDefault 0 +MTLHazardTrackingMode enum value Untracked MTLHazardTrackingModeUntracked 1 +MTLHazardTrackingMode enum value Tracked MTLHazardTrackingModeTracked 2 +MTLHeapType enum value Automatic MTLHeapTypeAutomatic 0 +MTLHeapType enum value Placement MTLHeapTypePlacement 1 +MTLHeapType enum value Sparse MTLHeapTypeSparse 2 +MTLLoadAction enum value DontCare MTLLoadActionDontCare 0 +MTLLoadAction enum value Load MTLLoadActionLoad 1 +MTLLoadAction enum value Clear MTLLoadActionClear 2 +MTLMultisampleDepthResolveFilter enum value Sample0 MTLMultisampleDepthResolveFilterSample0 0 +MTLMultisampleDepthResolveFilter enum value Min MTLMultisampleDepthResolveFilterMin 1 +MTLMultisampleDepthResolveFilter enum value Max MTLMultisampleDepthResolveFilterMax 2 +MTLMultisampleStencilResolveFilter enum value Sample0 MTLMultisampleStencilResolveFilterSample0 0 +MTLMultisampleStencilResolveFilter enum value DepthResolvedSample MTLMultisampleStencilResolveFilterDepthResolvedSample 1 +MTLPipelineOption flags value NONE MTLPipelineOptionNone 0 +MTLPipelineOption flags value ARGUMENT_INFO MTLPipelineOptionArgumentInfo 1 +MTLPipelineOption flags value BUFFER_TYPE_INFO MTLPipelineOptionBufferTypeInfo 2 +MTLPipelineOption flags value FAIL_ON_BINARY_ARCHIVE_MISS MTLPipelineOptionFailOnBinaryArchiveMiss 4 +MTLPipelineOption flags alias ARGUMENT_INFO MTLPipelineOptionBindingInfo 1 +MTLPurgeableState enum value KeepCurrent MTLPurgeableStateKeepCurrent 1 +MTLPurgeableState enum value NonVolatile MTLPurgeableStateNonVolatile 2 +MTLPurgeableState enum value Volatile MTLPurgeableStateVolatile 3 +MTLPurgeableState enum value Empty MTLPurgeableStateEmpty 4 +MTLSparsePageSize enum value Size16 MTLSparsePageSize16 101 +MTLSparsePageSize enum value Size64 MTLSparsePageSize64 102 +MTLSparsePageSize enum value Size256 MTLSparsePageSize256 103 +MTLSparseTextureRegionAlignmentMode enum value Outward MTLSparseTextureRegionAlignmentModeOutward 0 +MTLSparseTextureRegionAlignmentMode enum value Inward MTLSparseTextureRegionAlignmentModeInward 1 +MTLStorageMode enum value Shared MTLStorageModeShared 0 +MTLStorageMode enum value Managed MTLStorageModeManaged 1 +MTLStorageMode enum value Private MTLStorageModePrivate 2 +MTLStorageMode enum value Memoryless MTLStorageModeMemoryless 3 +MTLStoreAction enum value DontCare MTLStoreActionDontCare 0 +MTLStoreAction enum value Store MTLStoreActionStore 1 +MTLStoreAction enum value MultisampleResolve MTLStoreActionMultisampleResolve 2 +MTLStoreAction enum value StoreAndMultisampleResolve MTLStoreActionStoreAndMultisampleResolve 3 +MTLStoreAction enum value Unknown MTLStoreActionUnknown 4 +MTLStoreAction enum value CustomSampleDepthStore MTLStoreActionCustomSampleDepthStore 5 +MTLStoreActionOptions flags value NONE MTLStoreActionOptionNone 0 +MTLStoreActionOptions flags value CUSTOM_SAMPLE_POSITIONS MTLStoreActionOptionCustomSamplePositions 1 +MTLVisibilityResultMode enum value Disabled MTLVisibilityResultModeDisabled 0 +MTLVisibilityResultMode enum value Boolean MTLVisibilityResultModeBoolean 1 +MTLVisibilityResultMode enum value Counting MTLVisibilityResultModeCounting 2 diff --git a/scripts/conformance-coverage/metal_leg.py b/scripts/conformance-coverage/metal_leg.py index a7ea9c166..668dad380 100644 --- a/scripts/conformance-coverage/metal_leg.py +++ b/scripts/conformance-coverage/metal_leg.py @@ -719,13 +719,19 @@ def read_leg(api: Api, src: Path, files: list[str], enums: set[str]) -> Leg: # the `init` an `alloc()` is handed. The receiver is the class the path names, so # nothing has to be typed; the path is resolved against what `objc2-metal` binds on # that class, the same way an instance send is. + # + # `\s*` after each `::` because a long constructor's name does not fit beside its + # class: `MTLRasterizationRateMapDescriptor::` ends one line and + # `rasterizationRateMapDescriptorWithScreenSize_layer(..)` begins the next, and with + # the whitespace unmatched that call site was in no table at all -- not a call, not + # unresolved, nowhere. for match in re.finditer( - r"\b((?:[A-Za-z_][A-Za-z0-9_]*::)+)(?:r#)?([A-Za-z_][A-Za-z0-9_]*)\s*\(", + r"\b((?:[A-Za-z_][A-Za-z0-9_]*::\s*)+)(?:r#)?([A-Za-z_][A-Za-z0-9_]*)\s*\(", text[fn.start : fn.end], ): rust = match.group(2) at = fn.start + match.start() - ty = [part for part in match.group(1).split("::") if part][-1] + ty = [part for part in match.group(1).split("::") if part.strip()][-1].strip() if not api.declares(ty): # Not an Objective-C type of `objc2-metal` at all, so this sends no message: # a Rust type's associated function (`Vec::new`), an enum's variant, or a @@ -748,6 +754,11 @@ def read_leg(api: Api, src: Path, files: list[str], enums: set[str]) -> Leg: # qualifier is kept where it is a module (`crate::metal_work::run`) or `Self`, and # dropped where it is a type, because `MTLTextureDescriptor::new` is the class message # the loop above resolves and not this source's own `new`. + # + # A method send is excluded by the `.` before its name, and by that alone: `rustfmt` + # breaks a chain **before** the dot, so a continuation line reads `.label(` and the + # dot is beside the name wherever the call sits. Measured over the whole leg: 0 call + # sites have whitespace between the dot and the name. for match in re.finditer( r"\b((?:[A-Za-z_][A-Za-z0-9_]*::)*)([A-Za-z_][A-Za-z0-9_]*)\s*\(", text[fn.start : fn.end], @@ -759,8 +770,6 @@ def read_leg(api: Api, src: Path, files: list[str], enums: set[str]) -> Leg: qualifier = [part for part in match.group(1).split("::") if part] if qualifier and qualifier[-1][:1].isupper() and qualifier[-1] != "Self": continue - if api.receivers(rust): - continue here = tuple(v for lo, hi, v in arms if lo <= at < hi) leg.calls_function.setdefault(fn.name, set()).add(rust) leg.function_arms.setdefault((fn.name, rust), set()).add(here) diff --git a/scripts/conformance-coverage/option_space.py b/scripts/conformance-coverage/option_space.py index af70a9ec4..dd704bf0e 100644 --- a/scripts/conformance-coverage/option_space.py +++ b/scripts/conformance-coverage/option_space.py @@ -23,6 +23,27 @@ The numerator is two derived sets, which are different claims and are kept apart render vocabulary, say) is counted in neither: some case puts it to Metal, but which case is not a property of the text, so it is reported in its own column and is neither compared nor missing. +# What the floor is made of + +Every column here is a floor, and the honest thing is to say what of rather than only that it is +one. Two things, and as far as has been measured no third: + +1. **A value a case states as a raw ordinal**, which the next section is about. Measured where it + can be: the document lists each type a recorded module names and states no value of by name, + which is how a sweep over `0..n` reads, so the floor has a work list and not just a warning. +2. **A spelling of a value that `_stated_in` does not read.** A name written in a shape the + reading does not cover is counted nowhere and looks exactly like a value no case reaches. + `_stated_in` lists every shape read and `_resolved` is the one rule they all go through, so a + shape not on that list is the floor. Two have been found, both by someone checking a printed + count against the code rather than by this file, which is the evidence for taking the unknown + seriously rather than calling it small. + +What is **not** part of the floor, because it is measured: the generated denominator (every type +`regen-metal-enums` covers, by `ENUMS`, `OPTIONS` or `TABLE_ONLY`), the `#[cfg(test)]` exclusion, +Metal's validation leg, and which case put a value in effect. A type the tree models by hand and +says so nowhere on the item is outside both tables and so outside the axis, which the document +states where it lists them. + # Why a value stated as a raw ordinal is not resolved, and must not be Both numerators read **names**. A case may instead hand the Metal leg an enum's ordinal as a @@ -42,6 +63,7 @@ name, or a transcript site recording the enumerator beside the ordinal it alread cleverer reading of the text here. """ +import csv import json import re from pathlib import Path @@ -65,10 +87,21 @@ BY_HAND = ( RAN = "metal_run" +#: The generated table of SDK enumerators for the Metal types this tree models by hand. +ENUMERATORS = "scripts/conformance-coverage/metal_enumerators.tsv" + + class Type: """One Metal enum or option set, with the SDK's values as the generated table holds them.""" - def __init__(self, metal: str, rust: str, kind: str, values: list[tuple[str, str]]): + def __init__( + self, + metal: str, + rust: str, + kind: str, + values: list[tuple[str, str]], + aliases: dict[str, str] | None = None, + ): #: The Metal type name, `MTLBlendFactor`. self.metal = metal #: The Rust name the tree gives it, `BlendFactor`. @@ -77,12 +110,22 @@ class Type: self.kind = kind #: Each value as `(Rust name, Metal enumerator name)`, in declaration order. self.values = values + #: A deprecated enumerator to the canonical enumerator of the same value. A name, not a + #: value, so it is in no denominator -- but a recording that names a value by it is naming + #: that value, and a numerator reading names has to know so. + self.aliases = aliases or {} @property def names(self) -> list[str]: """The Metal enumerator names, in declaration order.""" return [metal for _, metal in self.values] + def value_named(self, name: str) -> str | None: + """The canonical enumerator `name` names, following an alias, or `None`.""" + if name in self.aliases: + return self.aliases[name] + return name if name in self.names else None + def read_types(root: Path) -> dict[str, Type]: """Every Metal type the generated tables hold, by Metal name. @@ -115,6 +158,51 @@ def read_types(root: Path) -> dict[str, Type]: return out +def read_table(root: Path, rust_names: dict[str, str]) -> dict[str, Type]: + """The SDK's values for the Metal types this tree models by hand, from the generated table. + + These have no generated Rust -- the runtime declares them itself, and `render_table`'s comment + says why that stays -- so without this table the axis had no SDK list for them and measured a + hand-written variant list against itself. It could not report a value the SDK declares and the + tree does not, and it reported an option-set newtype, which declares no variants at all, as a + type with no values: `MTLPipelineOption` read `0 of 0` while its four defined values were being + swept. + + `rust_names` is the tree's own name for each, which `by_hand` reads off the declaring item, so + a case naming `StoreAction::Unknown` resolves the same way one naming a generated type's + variant does. + """ + path = root / ENUMERATORS + values: dict[str, list[tuple[str, str]]] = {} + aliases: dict[str, dict[str, str]] = {} + kinds: dict[str, str] = {} + canonical: dict[tuple[str, str], str] = {} + with path.open() as handle: + rows = list( + csv.DictReader((line for line in handle if not line.startswith("#")), delimiter="\t") + ) + if not rows: + # A table that parsed to nothing would hand every type in it a denominator of zero and + # read as a closed option space, which is the one way this axis fails silently. + raise SystemExit(f"{ENUMERATORS}: parsed to no rows") + for row in rows: + metal, role = row["type"], row["role"] + kinds[metal] = row["kind"] + if role == "value": + values.setdefault(metal, []).append((row["rust"], row["enumerator"])) + canonical[(metal, row["rust"])] = row["enumerator"] + elif role == "alias": + aliases.setdefault(metal, {})[row["enumerator"]] = canonical[(metal, row["rust"])] + else: + raise SystemExit(f"{ENUMERATORS}: {metal} has a row whose role is {role!r}") + out: dict[str, Type] = {} + for metal, held in sorted(values.items()): + out[metal] = Type( + metal, rust_names.get(metal, metal[3:]), kinds[metal], held, aliases.get(metal) + ) + return out + + def without_tests(text: str) -> str: """`blanked(text)` with every `#[cfg(test)]` item blanked too. @@ -168,19 +256,60 @@ def without_tests(text: str) -> str: return "".join(out) -def _stated_in(text: str, by_rust: dict[str, Type], by_metal: dict[str, Type]): - """The `(Metal type, value)` pairs `text` names, in either of the two spellings it uses. +def _resolved(held: Type, tail: str, metal_spelling: bool) -> set[tuple[str, str]]: + """The values of `held` that the variant name `tail` names, by every spelling of one value. - The suite names a Metal value two ways, and both have to be read: + One reading of the rule, so every place that resolves a name uses the same one: a variant name + beside its type, a variant name brought in bare by a `use`, and the `objc2` spelling are the + same question asked of different text. + + Three ways a name reaches a value, and no fourth: + + - the Rust name the generated table gives it, which is what `BlendFactor::SourceAlpha` names; + - the type's name and the variant's spelled back together, where that concatenation is an + enumerator the table holds. `objc2` names a variant with its type's prefix dropped, so + `MTLStorageMode::Private` is `MTLStorageModePrivate` — and the same rule reads our own + spelling of a type we model unlike the SDK, `BlitOption::None` against `MTLBlitOptionNone`, + because we make a closed enum of what the SDK makes an `NS_OPTIONS`. Never by assuming the + rule held: the value credited is the one whose enumerator is exactly the concatenation, and + nothing is credited where the table holds no such name. + - a hand-modelled type with no table has no SDK enumerator list at all, so our own variant + name is the only name there is. + """ + out: set[tuple[str, str]] = set() + for rust, value in held.values: + if rust == tail: + out.add((held.metal, value)) + found = held.value_named(held.metal + tail) + if found is not None: + out.add((held.metal, found)) + elif metal_spelling and held.kind == "by hand" and tail in held.names: + out.add((held.metal, tail)) + return out + + +def _stated_in(text: str, by_rust: dict[str, Type], by_metal: dict[str, Type]): + """The `(Metal type, value)` pairs `text` names, in every spelling the suite uses. + + The suite names a Metal value three ways, and all three have to be read: - through the tree's own type, `BlendFactor::SourceAlpha` — and `rotated_targets.rs` writes `use BlendFactor as F;` and then every factor as `F::SourceAlpha`, so a derivation reading only `BlendFactor::` spellings reports a third of that module's blend factors as never exercised; - through `objc2-metal`'s own enum, `MTLStorageMode::Private`, which the Metal leg writes - directly. `objc2` names a variant with its type's prefix dropped, so the enumerator is the - two spelled back together, and it counts only where that concatenation is a name the - generated table holds — never by assuming the rule held. + directly; + - through a **braced `use`**, `use SamplerBorderColor::{OpaqueBlack, OpaqueWhite, + TransparentBlack};`, after which the module writes the variants bare and names + `SamplerBorderColor::` nowhere. `border_swizzles` sweeps all three border colours in nine + samplers written that way, and a reading of `Head::Tail` alone finds none of them. + + A `use` is taken as the module naming the value, and the bare name is not looked for + afterwards. That is sound here and nowhere else: an import nothing uses is a warning, warnings + are errors in this tree, so a variant in a `use` is one the text goes on to use. Looking for + the bare name instead would be the unsound reading — `border_swizzles` imports + `TextureSwizzle::Alpha as A`, and crediting a type's value for every `A` in a module is how a + derivation invents coverage. """ alias: dict[str, str] = {} for found in re.finditer(r"\b([A-Za-z_]\w*)\s+as\s+([A-Za-z_]\w*)\b", text): @@ -191,21 +320,46 @@ def _stated_in(text: str, by_rust: dict[str, Type], by_metal: dict[str, Type]): head, tail = found.group(1), found.group(2) held = by_rust.get(alias.get(head, head)) if held is not None: - for rust, value in held.values: - if rust == tail: - out.add((held.metal, value)) + out |= _resolved(held, tail, False) held = by_metal.get(head) - if held is None: - continue - if head + tail in held.names: - out.add((held.metal, head + tail)) - elif held.kind == "by hand" and tail in held.names: - # A hand-modelled type has no SDK enumerator list, so our own variant name is the only - # name there is; `objc2` spells the same value the same way after the prefix. - out.add((held.metal, tail)) + if held is not None: + out |= _resolved(held, tail, True) + # The braced form, which the loop above cannot see: after `::` comes `{` and not a name. The + # path may be qualified (`metal2vulkan::metal::TextureSwizzle::{..}`), so the type is its last + # segment, and each item may be renamed, in which case what names the value is the name + # imported and not the local one. + for found in re.finditer(r"\buse\s+([A-Za-z_][\w:]*?)\s*::\s*\{([^{}]*)\}", text): + head = found.group(1).split("::")[-1].strip() + for held, metal_spelling in ( + (by_rust.get(alias.get(head, head)), False), + (by_metal.get(head), True), + ): + if held is None: + continue + for item in found.group(2).split(","): + imported = item.split(" as ")[0].strip() + if imported: + out |= _resolved(held, imported, metal_spelling) return out +def _types_named_in(text: str, held: dict[str, Type]) -> set[str]: + """The Metal types `text` names **as a type**, by either spelling, as whole identifiers. + + A type's own name, never a value's: this says what a module is about, not what it put to + Metal. It is what turns the raw-ordinal limit from a sentence into a work list -- a module that + names `MTLPipelineOption` and states none of its values by name is a case this axis cannot read + the depth of, and saying which module that is costs no guess about which value it reached. + """ + found: set[str] = set() + for one in held.values(): + for spelling in (one.metal, one.rust): + if re.search(rf"\b{re.escape(spelling)}\b", text): + found.add(one.metal) + break + return found + + def stated(root: Path, types: dict[str, Type], ran: set[str]): """The values each case module names, and the ones only the suite's shared sources name. @@ -216,18 +370,26 @@ def stated(root: Path, types: dict[str, Type], ran: set[str]): by_metal = {held.metal: held for held in types.values()} src = root / "crates/metal2vulkan-conformance/src" in_effect: dict[tuple[str, str], set[str]] = {} + # Each module to the types its text is about, so a type a module names and states no value of + # can be reported as one whose depth is unreadable here rather than as one nothing reaches. + about: dict[str, set[str]] = {} for path in sorted((src / "cases").glob("*.rs")): if path.stem not in ran: continue - for pair in _stated_in(without_tests(path.read_text()), by_rust, by_metal): + text = without_tests(path.read_text()) + stated_here = _stated_in(text, by_rust, by_metal) + for pair in stated_here: in_effect.setdefault(pair, set()).add(path.stem) + said = {metal for metal, _ in stated_here} + for metal in _types_named_in(text, types) - said: + about.setdefault(metal, set()).add(path.stem) shared: set[tuple[str, str]] = set() for path in sorted(src.rglob("*.rs")): held = path.relative_to(src) if held.parts[0] in ("cases", "tests", "bin") or held.name == "tests.rs": continue shared |= _stated_in(without_tests(path.read_text()), by_rust, by_metal) - return in_effect, shared + return in_effect, shared, about def _tokens(value, key: str | None, out: list[str]) -> None: @@ -243,28 +405,79 @@ def _tokens(value, key: str | None, out: list[str]) -> None: _tokens(held, key, out) -def answered(root: Path, types: dict[str, Type]) -> dict[tuple[str, str], set[str]]: +def _site_and_observed(node, named: list[str], observed: list[str]) -> None: + """A transcript's tokens, split by where they came from: a site's **name**, or what it observed. + + The split is the whole point. A node's name is the **case's** label for a site, chosen by + whoever wrote the case; what the node observed is Metal's answer. Read into one bag they credit + a value to Metal because a case spelled the enumerator in its own site name, which across the + committed recordings is most of `MTLPixelFormat`: the suite labels the site it asks about with + the format's name and the site answers a number. + """ + if not isinstance(node, dict): + return + name = node.get("name") + if isinstance(name, str): + named.extend(re.findall(r"[A-Za-z0-9_]+", name)) + _tokens(node.get("observed"), None, observed) + for child in node.get("children") or []: + _site_and_observed(child, named, observed) + + +def answered( + root: Path, types: dict[str, Type] +) -> tuple[dict[tuple[str, str], set[str]], dict[tuple[str, str], set[str]]]: """The values a committed recording's compared transcript holds, by the cases holding them. + Two dicts, because they are two claims of different strength and were one number: + + - **answered**: the value is in what a site **observed**, which is Metal's own answer. This is + the strong claim the document makes for the column -- Metal named the value back at a site + the comparison reads. + - **at a site**: the value is in a site's **name**. The comparison does read those names, and + pairs sites by them, so the value is in the compared text and the case did put it to Metal. + But it is the case's label and not Metal's answer, so it is no evidence that Metal **said** + the value, and folding it into the first overstated what the recording holds. + + Both are inside *compared*, so no total moves; what moves is which column carries them. + Only `answers[].outcomes[].transcript` is read. An answer's `validated` leg is Metal's API validation, which the suite records and **never compares**, and its complaints name enumerators; reading it would count Apple's prose as a comparison. The cost and timing tables are not read either: a site name there is what was measured, not an answer that was compared. """ - of_name = {metal: held.metal for held in types.values() for metal in held.names} + of_name = {metal: (held.metal, metal) for held in types.values() for metal in held.names} + # A deprecated spelling names the value it is an alias of, so a recording holding + # `MTLPipelineOptionBindingInfo` is Metal naming bit 1 back at us, whatever the headers call + # that bit first. + for held in types.values(): + for name, canonical in held.aliases.items(): + of_name.setdefault(name, (held.metal, canonical)) out: dict[tuple[str, str], set[str]] = {} + at_a_site: dict[tuple[str, str], set[str]] = {} for path in sorted((root / "crates/metal2vulkan-conformance/recordings").glob("*.json")): data = json.loads(path.read_text()) - found: list[str] = [] + named: list[str] = [] + observed: list[str] = [] for answer in data.get("answers", []): if answer.get("provenance") != RAN: continue for outcome in answer.get("outcomes", []): - _tokens(outcome.get("transcript"), None, found) - for token in set(found): + _site_and_observed( + (outcome.get("transcript") or {}).get("root"), named, observed + ) + for token in set(observed): if token in of_name: - out.setdefault((of_name[token], token), set()).add(data["case"]) - return out + out.setdefault(of_name[token], set()).add(data["case"]) + for token in set(named): + if token in of_name and of_name[token] not in out: + at_a_site.setdefault(of_name[token], set()).add(data["case"]) + # A value Metal observed somewhere is answered, whatever else spells it, so the two columns + # never hold the same value twice. + for key in list(at_a_site): + if key in out: + del at_a_site[key] + return out, at_a_site #: A Rust item the tree declares to be one Metal enum or option set: a doc comment naming the @@ -332,20 +545,28 @@ def by_hand(root: Path, types: dict[str, Type]) -> list[tuple[str, str, list[str def inventory(root: Path, ran: set[str]) -> dict: """The axis, derived: every type with its three sets of values.""" types = read_types(root) - hand = by_hand(root, types) - # A hand-modelled type is carried through the same resolution, keyed by its own Rust variant - # names: this axis has no SDK enumerator list for it, so a variant is all there is to name. + # The tree's own name for each type it models by hand, read off the declaring item, so the + # generated table of their SDK values can be keyed the way a case spells them. + named = {metal: rust for metal, rust, _ in by_hand(root, types)} + # A hand-modelled type with a generated table of the SDK's values is no longer hand-modelled + # as far as this axis is concerned: it has a denominator, so it joins the per-type table and + # leaves the one below it. + types.update(read_table(root, named)) + hand = [row for row in by_hand(root, types) if row[0] not in types] + # A hand-modelled type the table does not cover is carried through the same resolution, keyed + # by its own Rust variant names: this axis has no SDK enumerator list for it, so a variant is + # all there is to name. held = dict(types) for metal, rust, names in hand: held[metal] = Type(metal, rust, "by hand", [(name, name) for name in names]) - effect, shared = stated(root, held, ran) - read_back = answered(root, types) + effect, shared, about = stated(root, held, ran) + read_back, at_a_site = answered(root, types) rows = [] for metal, held in sorted(types.items()): compared, only_shared, missing = [], [], [] for name in held.names: key = (metal, name) - if key in read_back or key in effect: + if key in read_back or key in at_a_site or key in effect: compared.append(name) elif key in shared: only_shared.append(name) @@ -359,10 +580,18 @@ def inventory(root: Path, ran: set[str]) -> dict: "values": held.names, "compared": compared, "answered": [n for n in held.names if (metal, n) in read_back], + # In a site's **name** rather than in what it observed: the case's label for the + # site, which the comparison does pair by, so the value is in the compared text -- + # but it is not Metal saying the value, which is what *answered* claims. + "at_a_site": [n for n in held.names if (metal, n) in at_a_site], "in_effect": [n for n in held.names if (metal, n) in effect], "shared": only_shared, "missing": missing, "modules": sorted({m for n in held.names for m in effect.get((metal, n), ())}), + # Modules whose text is about this type and states no value of it by name. A + # sweep written over ordinals reads this way, and so does a module that only + # mentions the type, so the row is a question for the case and not a verdict. + "named_no_value": sorted(about.get(metal, ())), } ) hand_rows = [ @@ -383,5 +612,6 @@ def inventory(root: Path, ran: set[str]) -> dict: "rows": rows, "by_hand": hand_rows, "answered": read_back, + "at_a_site": at_a_site, "in_effect": effect, } diff --git a/scripts/conformance-coverage/test_option_space.py b/scripts/conformance-coverage/test_option_space.py index 87436ce87..4e8f6d220 100644 --- a/scripts/conformance-coverage/test_option_space.py +++ b/scripts/conformance-coverage/test_option_space.py @@ -65,15 +65,44 @@ metal_flags! { """ +#: A generated enumerator table, as `regen-metal-enums` writes `TABLE_OUTPUT`: the SDK's values +#: for a type the tree models by hand, with one deprecated spelling. `MTLKept` is declared by no +#: generated Rust here, exactly as `MTLStoreAction` and `MTLPipelineOption` are declared by none. +TABLE = """\ +# Generated from the macOS 27.0 SDK Metal.framework headers (names and values). +type\tkind\trole\trust\tenumerator\tvalue +MTLKept\tenum\tvalue\tFirst\tMTLKeptFirst\t0 +MTLKept\tenum\tvalue\tSecond\tMTLKeptSecond\t1 +MTLKept\tenum\tvalue\tThird\tMTLKeptThird\t2 +MTLKept\tenum\talias\tSecond\tMTLKeptOldSecond\t1 +""" + +#: A hand-written declaration of `MTLKept`, whose variants are spelled unlike the table's derived +#: names, which is `MTLBlitOption`'s shape: the tree models an option set as a closed enum. +BY_HAND_KEPT = """\ +/// `MTLKept`, which this tree declares itself. +pub enum Kept { + First, + Second, + Third, +} +""" + + def tree( cases: dict[str, str], shared: str = "", recordings: tuple[dict, ...] = (), generated: str = GENERATED, + table: str = TABLE, + by_hand: str = "", ) -> Path: """A repository-shaped tree of exactly these sources and recordings.""" root = Path(tempfile.mkdtemp(prefix="option-space-selftest-")) MADE.append(root) + enumerators = root / option_space.ENUMERATORS + enumerators.parent.mkdir(parents=True, exist_ok=True) + enumerators.write_text(table) for name in option_space.GENERATED: path = root / name path.parent.mkdir(parents=True, exist_ok=True) @@ -82,6 +111,8 @@ def tree( path.write_text(generated) for name in option_space.BY_HAND: (root / name).mkdir(parents=True, exist_ok=True) + if by_hand: + (root / option_space.BY_HAND[0] / "kept.rs").write_text(by_hand) suite = root / "crates/metal2vulkan-conformance" (suite / "src/cases").mkdir(parents=True, exist_ok=True) (suite / "recordings").mkdir(parents=True, exist_ok=True) @@ -240,13 +271,18 @@ class Answered(unittest.TestCase): self.assertEqual(row["answered"], []) def test_a_compound_site_name_is_split_into_its_tokens(self): + # The tokenising is what this is about, and it still holds. The column is `at_a_site` and + # not `answered`: a site's name is the case's label, so a value found there is in the + # compared text without Metal having named it back. See `AtASite`. data = recording("one", "MTLThingGamma") data["answers"][0]["outcomes"][0]["transcript"]["root"] = { "name": "MTLThingZeta/TextureBuffer/64x1x1", "observed": {"value": "absent"}, } row = axis(tree({}, recordings=(data,)), set()) - self.assertEqual(row["answered"], ["MTLThingZeta"]) + self.assertEqual(row["at_a_site"], ["MTLThingZeta"]) + self.assertEqual(row["answered"], []) + self.assertIn("MTLThingZeta", row["compared"]) class SharedOnly(unittest.TestCase): @@ -362,5 +398,215 @@ impl Thingy { self.assertEqual([row["metal"] for row in found["by_hand"]], []) +def site_named(case: str, value: str) -> dict: + """A recording of `case` whose transcript holds `value` as a site's **name**, observing nothing. + + The shape 105 values of `MTLPixelFormat` are in across the committed recordings: a case labels + the site it asks about with the enumerator, and the site's own answer is a number. + """ + node = { + "name": "case", + "children": [{"name": value, "observed": {"value": {"uint": 7}}}], + } + return { + "format": 1, + "case": case, + "suite_version": 1, + "answers": [ + { + "provenance": option_space.RAN, + "runs": 1, + "outcomes": [{"runs": 1, "transcript": {"root": node}}], + } + ], + } + + +class AtASite(unittest.TestCase): + """A value in a site's **name** is not Metal naming it back, and was counted as if it were. + + The comparison pairs sites by name, so such a value is in the compared text and the case did + put it to Metal. But the name is the case's own label, so it is no evidence Metal said the + value -- and folding it into *answered* made that column read 172 where Metal's own + observations held 67. + """ + + def test_a_value_only_in_a_site_name_is_at_a_site_and_not_answered(self): + root = tree({"blends": "fn go() {}\n"}, recordings=(site_named("b-one", "MTLThingBeta"),)) + row = axis(root, {"blends"}) + self.assertEqual(row["at_a_site"], ["MTLThingBeta"]) + self.assertEqual(row["answered"], []) + # Still compared: the value is in the text the comparison reads. + self.assertEqual(row["compared"], ["MTLThingBeta"]) + self.assertEqual(row["missing"], [n for n in row["values"] if n != "MTLThingBeta"]) + + def test_a_value_a_site_observed_is_answered(self): + root = tree({"blends": "fn go() {}\n"}, recordings=(recording("b-one", "MTLThingBeta"),)) + row = axis(root, {"blends"}) + self.assertEqual(row["answered"], ["MTLThingBeta"]) + self.assertEqual(row["at_a_site"], []) + + def test_a_value_both_observed_and_named_is_answered_only(self): + # The two columns never hold one value twice: what Metal observed is answered, whatever + # else spells it. + root = tree( + {"blends": "fn go() {}\n"}, + recordings=( + recording("b-one", "MTLThingBeta"), + site_named("b-two", "MTLThingBeta"), + ), + ) + row = axis(root, {"blends"}) + self.assertEqual(row["answered"], ["MTLThingBeta"]) + self.assertEqual(row["at_a_site"], []) + + def test_a_carried_answers_site_name_is_not_read(self): + # The same gate the rest of `answered` applies: a carried answer ran no Metal. + held = site_named("b-one", "MTLThingBeta") + held["answers"][0]["provenance"] = "carried" + root = tree({"blends": "fn go() {}\n"}, recordings=(held,)) + row = axis(root, {"blends"}) + self.assertEqual(row["at_a_site"], []) + self.assertEqual(row["answered"], []) + + +class BracedUse(unittest.TestCase): + """`use Type::{A, B};` names those values, which only `Head::Tail` reading missed entirely. + + `border_swizzles` sweeps all three `MTLSamplerBorderColor` values in nine samplers through a + braced `use` and then writes the variants bare, naming `SamplerBorderColor::` nowhere. The + axis read 1 of 3 and the document said so while the sweep was complete. + """ + + def test_a_braced_use_names_every_variant_it_imports(self): + root = tree({"blends": "use Thing::{Alpha, Gamma};\nlet pair = [Alpha, Gamma];\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], ["MTLThingAlpha", "MTLThingGamma"]) + + def test_a_renamed_import_names_the_value_imported_not_the_local_name(self): + root = tree({"blends": "use Thing::{Beta as B};\nlet x = [B, B];\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], ["MTLThingBeta"]) + + def test_the_objc2_spelling_of_a_braced_use_is_read(self): + root = tree({"blends": "use MTLThing::{Delta, Epsilon};\nlet x = [Delta, Epsilon];\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], ["MTLThingDelta", "MTLThingEpsilon"]) + + def test_a_qualified_path_resolves_to_its_last_segment(self): + root = tree({"blends": "use metal2vulkan::metal::Thing::{Zeta};\nlet x = Zeta;\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], ["MTLThingZeta"]) + + def test_a_braced_use_of_something_else_names_no_value(self): + # The direction this could go wrong in: a brace list of names that are not the type's + # values, and a type name that is not a Metal type at all. + root = tree({"blends": "use Thing::{Omega};\nuse Other::{Alpha, Beta};\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], []) + + def test_a_bare_name_with_no_use_names_nothing(self): + # The unsound reading this deliberately does not take: a module that writes `Alpha` and + # imports nothing has not said which type's value it means. + root = tree({"blends": "let x = [Alpha, Beta, Gamma];\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], []) + + def test_a_braced_use_in_a_comment_names_nothing(self): + root = tree({"blends": "// use Thing::{Alpha, Beta};\nfn go() {}\n"}) + self.assertEqual(axis(root, {"blends"})["in_effect"], []) + + +class Table(unittest.TestCase): + """The generated enumerator table is the denominator for a type the tree declares by hand. + + These types have no generated Rust, so before the table the axis measured a hand-written + variant list against itself: it could not report a value the SDK declares and the tree does + not, and it reported an option-set newtype -- which declares no variants at all -- as a type + with no values. Each test here asserts both that the table's values are counted and that + nothing is counted the table does not hold. + """ + + def row(self, root: Path, ran: set[str]): + """`MTLKept`'s row of the per-type table.""" + held = option_space.inventory(root, ran) + return next(row for row in held["rows"] if row["metal"] == "MTLKept") + + def test_the_table_is_the_denominator_and_leaves_the_hand_modelled_list(self): + root = tree({}, by_hand=BY_HAND_KEPT) + held = option_space.inventory(root, set()) + row = next(one for one in held["rows"] if one["metal"] == "MTLKept") + self.assertEqual(row["values"], ["MTLKeptFirst", "MTLKeptSecond", "MTLKeptThird"]) + self.assertEqual(row["compared"], []) + self.assertEqual(row["missing"], row["values"]) + # And it is no longer in the table of types with no denominator, which is where it sat. + self.assertNotIn("MTLKept", [one["metal"] for one in held["by_hand"]]) + + def test_a_value_the_table_does_not_hold_is_not_counted(self): + # The one direction a table-backed denominator could go wrong in: a name shaped like an + # enumerator of the type, which the SDK does not declare. + root = tree({"kept": "let x = Kept::Fourth;\n"}, by_hand=BY_HAND_KEPT) + row = self.row(root, {"kept"}) + self.assertEqual(row["compared"], []) + self.assertEqual(len(row["values"]), 3) + + def test_the_trees_own_variant_name_states_the_sdk_value(self): + # `MTLBlitOption`'s shape: our variant is `Second`, the table's derived name is `Second` + # here but the join that matters is the enumerator, so a tree whose spelling differs from + # the table's still resolves. The objc2 spelling resolves the same way. + root = tree({"kept": "let x = Kept::Second;\n"}, by_hand=BY_HAND_KEPT) + self.assertEqual(self.row(root, {"kept"})["in_effect"], ["MTLKeptSecond"]) + root = tree({"kept": "let x = MTLKept::Third;\n"}, by_hand=BY_HAND_KEPT) + self.assertEqual(self.row(root, {"kept"})["in_effect"], ["MTLKeptThird"]) + + def test_a_deprecated_spelling_names_the_value_it_is_an_alias_of(self): + # `MTLPipelineOption`'s shape: the headers declare `MTLPipelineOptionArgumentInfo` first, + # so the canonical enumerator of bit 1 is the one nothing in the tree writes, and the + # spelling the leg does write -- `MTLPipelineOption::BindingInfo` -- is the alias. Without + # the alias rows that value reads as named nowhere. + root = tree({"kept": "let x = MTLKept::OldSecond;\n"}, by_hand=BY_HAND_KEPT) + row = self.row(root, {"kept"}) + self.assertEqual(row["in_effect"], ["MTLKeptSecond"]) + self.assertNotIn("MTLKeptOldSecond", row["values"]) + # And answered reads an alias in a recording's transcript as the value too. + root = tree( + {"kept": "fn run() {}\n"}, + recordings=(recording("kept-one", "MTLKeptOldSecond"),), + by_hand=BY_HAND_KEPT, + ) + self.assertEqual(self.row(root, {"kept"})["answered"], ["MTLKeptSecond"]) + + def test_a_table_that_parsed_to_nothing_is_a_failure(self): + # The one way a denominator can read as a closed option space: a table whose rows the + # reader no longer matches lowers every count at once and still looks like a measurement. + root = tree({}, table="# only a comment\ntype\tkind\trole\trust\tenumerator\tvalue\n") + with self.assertRaises(SystemExit): + option_space.inventory(root, set()) + + +class NamedWithNoValue(unittest.TestCase): + """A type a module is about and states no value of: the raw-ordinal limit as a work list.""" + + def test_a_module_naming_the_type_and_no_value_is_reported(self): + root = tree({"blends": "for bits in 0..6 { side.go(MTLThing(bits)); }\n"}) + self.assertEqual(axis(root, {"blends"})["named_no_value"], ["blends"]) + + def test_a_module_that_states_a_value_is_not_reported(self): + # The same module with one value named: it is no longer a case whose depth is unreadable, + # whatever else it sweeps by ordinal. + root = tree({"blends": "let x = MTLThing::Alpha;\nfor bits in 0..6 { go(bits); }\n"}) + row = axis(root, {"blends"}) + self.assertEqual(row["named_no_value"], []) + self.assertEqual(row["in_effect"], ["MTLThingAlpha"]) + + def test_a_module_naming_neither_is_not_reported(self): + root = tree({"blends": "let x = 3;\n"}) + self.assertEqual(axis(root, {"blends"})["named_no_value"], []) + + def test_the_type_name_is_matched_as_a_whole_identifier(self): + # `ThingCase` is not `Thing`, and `MTLThingAlpha` is a value's name and not the type's. + root = tree({"blends": "struct ThingCase;\nfn go(x: MTLThingAlphaish) {}\n"}) + self.assertEqual(axis(root, {"blends"})["named_no_value"], []) + + def test_a_module_with_no_metal_run_is_not_reported(self): + # The same gate the rest of the axis applies: a module that ran no Metal put nothing to it. + root = tree({"blends": "for bits in 0..6 { side.go(MTLThing(bits)); }\n"}) + self.assertEqual(axis(root, set())["named_no_value"], []) + + if __name__ == "__main__": unittest.main() diff --git a/scripts/regen-metal-enums/README.md b/scripts/regen-metal-enums/README.md index 33178ce96..f62fc6243 100644 --- a/scripts/regen-metal-enums/README.md +++ b/scripts/regen-metal-enums/README.md @@ -14,9 +14,21 @@ for the front end's enums, `crates/metal2vulkan-air/src/metal/mod.rs`. Deprecated spellings with the same value are recorded as aliases. Value expressions other than integer literals, shifts, ors, and references to earlier enumerators fail generation. +It also generates `scripts/conformance-coverage/metal_enumerators.tsv` from the `TABLE_ONLY` list: +the SDK's enumerators and ordinals for the Metal enums and option sets the tree declares **by +hand** rather than from these headers, because the compile-and-plan layer never reads them. No Rust +is generated for those, and none should be; the table is the conformance suite's option-space +denominator for them, so that a hand-written variant list is measured against the SDK rather than +against itself. One row per name, with `role` saying whether it is the value or a deprecated +spelling of one. + +`MTLResourceOptions` is in no list: the SDK writes its values in terms of `MTLCPUCacheMode`'s and +`MTLStorageMode`'s enumerators shifted by `#define`d amounts, which `evaluate` fails on rather than +guessing. + The output records the SDK version it came from, so `--check` passes only against that SDK. To add -a type, append its Metal name to `ENUMS`, `AIR_ENUMS` or `OPTIONS` and regenerate. Never hand-edit -the output. +a type, append its Metal name to `ENUMS`, `AIR_ENUMS`, `OPTIONS` or `TABLE_ONLY` and regenerate. +Never hand-edit the output. ```sh # regenerate from the active Xcode SDK (xcrun), or pass --headers DIR --sdk-version V diff --git a/scripts/regen-metal-enums/regen_metal_enums.py b/scripts/regen-metal-enums/regen_metal_enums.py index c0e0c54de..259fe26be 100644 --- a/scripts/regen-metal-enums/regen_metal_enums.py +++ b/scripts/regen-metal-enums/regen_metal_enums.py @@ -20,6 +20,7 @@ from pathlib import Path ROOT = Path(__file__).resolve().parents[2] OUTPUT = ROOT / "crates" / "metal2vulkan" / "src" / "metal" / "generated.rs" AIR_OUTPUT = ROOT / "crates" / "metal2vulkan-air" / "src" / "metal" / "generated.rs" +TABLE_OUTPUT = ROOT / "scripts" / "conformance-coverage" / "metal_enumerators.tsv" # NS_ENUM types, emitted as closed Rust enums (`metal_enum!`). ENUMS = [ @@ -268,6 +269,41 @@ AIR_ENUMS = [ "MTLDataType", ] +# Metal enums and option sets the tree models **by hand** rather than from these headers, because +# the compile-and-plan layer never reads them: the runtime declares `LoadAction`, `StoreAction`, +# `PipelineOption` and the rest in its own sources and says so there. +# +# No Rust is generated for them, and none should be: that decision belongs to whoever made it. +# What is generated is `TABLE_OUTPUT`, a table of their SDK enumerators and ordinals, which is the +# option-space axis's denominator for them (`scripts/conformance-coverage/option_space.py`). +# Without it that axis measures a hand-written variant list against itself, which cannot report a +# value the SDK has and the tree does not, and reports an option-set newtype -- which declares no +# variants at all -- as a type with no values. +# +# `MTLResourceOptions` is **not** here: the SDK writes its values in terms of `MTLCPUCacheMode`'s +# and `MTLStorageMode`'s enumerators shifted by `#define`d amounts, and `evaluate` takes integer +# literals, shifts, ors and earlier enumerators of the same type and fails on anything else rather +# than guessing it. So that one type keeps no denominator, with a reason, instead of one this +# script would have to widen its contract to produce. +TABLE_ONLY = [ + "MTLBlitOption", + "MTLCPUCacheMode", + "MTLCommandBufferStatus", + "MTLHazardTrackingMode", + "MTLHeapType", + "MTLLoadAction", + "MTLMultisampleDepthResolveFilter", + "MTLMultisampleStencilResolveFilter", + "MTLPipelineOption", + "MTLPurgeableState", + "MTLSparsePageSize", + "MTLSparseTextureRegionAlignmentMode", + "MTLStorageMode", + "MTLStoreAction", + "MTLStoreActionOptions", + "MTLVisibilityResultMode", +] + # NS_OPTIONS types, emitted as bit-set newtypes (`metal_flags!`). OPTIONS = [ "MTLBarrierScope", @@ -422,6 +458,53 @@ def rows(name, entries, flags): return out, aliases +def render_table(found, sdk_version, names): + """The SDK's enumerators for `names`, as a tab-separated table. + + One row per name: the Metal type, `enum` or `flags`, whether the row is the `value` or an + `alias` spelling of one, the Rust name this generator derives, the SDK enumerator and the + ordinal. An alias shares its value row's ordinal and Rust name. + + A table rather than Rust because nothing in the tree should declare these types twice: the + runtime already declares them by hand, and the only thing missing was a denominator to measure + that declaration against. + """ + out = [ + f"# Generated from the macOS {sdk_version} SDK Metal.framework headers (names and values).", + "# Regenerate with scripts/regen-metal-enums/regen_metal_enums.py; do not edit.", + "# The SDK's values for the Metal enums and option sets this tree models by hand, which is", + "# the conformance suite's option-space denominator for them.", + "type\tkind\trole\trust\tenumerator\tvalue", + ] + for name in names: + if name not in found: + raise ValueError(f"{name} not found in the SDK headers") + kind, body = found[name] + flags = kind == "OPTIONS" + parsed = parse_body(name, body) + known = {value for _, value in parsed} + for ident, value in PRIVATE.get(name, []): + if value in known: + raise ValueError(f"{ident} = {value} is declared by the headers now") + parsed.append((ident, value)) + entries, aliases = rows(name, parsed, flags) + of_rust = {rust: value for rust, _, value in entries} + for rust, ident, value in entries: + out.append(f"{name}\t{'flags' if flags else 'enum'}\tvalue\t{rust}\t{ident}\t{value}") + # A deprecated spelling of a value already listed. It is a name, not a value, so it adds + # no row to any denominator -- but a recording or a case may name a value by it, and a + # numerator that reads names has to know it means the same value. `MTLPipelineOption`'s + # bit 1 is exactly this: the headers declare `MTLPipelineOptionArgumentInfo` first and + # `MTLPipelineOptionBindingInfo` after it, so the spelling the tree and Apple's + # documentation both use is the alias. + for ident, rust in aliases: + out.append( + f"{name}\t{'flags' if flags else 'enum'}\talias\t{rust}\t{ident}" + f"\t{of_rust[rust]}" + ) + return "\n".join(out) + "\n" + + def render(found, sdk_version, enums, options): out = [ f"// Generated from the macOS {sdk_version} SDK Metal.framework headers (names and values).", @@ -481,6 +564,8 @@ def main(): parser.add_argument("--sdk-version", help="SDK version recorded in the output header") parser.add_argument("--output", type=Path, default=OUTPUT) parser.add_argument("--air-output", type=Path, default=AIR_OUTPUT) + parser.add_argument("--table-output", type=Path, default=TABLE_OUTPUT, + help="the SDK values of the types this tree models by hand") parser.add_argument("--check", action="store_true", help="fail if the committed output differs from a fresh generation") args = parser.parse_args() @@ -494,6 +579,7 @@ def main(): outputs = [ (args.output, render(found, version, ENUMS, OPTIONS)), (args.air_output, render(found, version, AIR_ENUMS, [])), + (args.table_output, render_table(found, version, TABLE_ONLY)), ] if args.check: stale = [path for path, text in outputs if path.read_text() != text]