Cross argument-buffer layout, offset composition and nesting against Metal

The steps this packet landed as, in order:
- Derive the coverage documents again after four values were closed
- Let the BLANK link resolve from the import rather than naming its path
- Forward the nested-encoder call through the watching side

Content: the tree of `development` at 3a7588a57f, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:13 +02:00
1 parent 4cb8cc0948
commit 6f69538e6d
17 files changed
+8466 -163

No files matched your search

@@ -0,0 +1,178 @@
// What Metal's argument-buffer vocabulary answers for the `MTLDataType` values no case reaches,
// and what `newArgumentEncoderForBufferAtIndex:` answers for a member that is and is not a nested
// argument buffer.
//
// Four questions the conformance suite cannot ask in a case, because each may end the process:
//
// descriptor <MTLDataType ordinal> -[MTLDevice newArgumentEncoderWithArguments:] over one
// MTLArgumentDescriptor of that dataType. MTLDataTypeNone (0)
// and MTLDataTypeDepthStencilState (33) are the two values a
// descriptor is the only candidate route to; MTLDataTypeTensor
// (140) is Metal 4's.
// nested <buffer index> <argument index>
// -[MTLArgumentEncoder newArgumentEncoderForBufferAtIndex:] of
// the fixture kernel's own layout, at a member that is a
// nested argument buffer and at one that is not.
// function <MTLFunctionOptions bits> -[MTLLibrary newFunctionWithDescriptor:error:] under option
// bits no case passes, with no binary archive listed.
//
// ONE SHAPE PER PROCESS, chosen on the command line: Metal's own validation of a descriptor ends
// the process on SIGABRT, and a process that died says nothing about the shapes after the one that
// killed it. A fatal answer is a legitimate measurement here; it is why this is a probe and not a
// conformance case.
//
// The metallib path is an argument so the probe needs nothing of this tree's layout.
//
// clang -fobjc-arc -framework Metal -framework Foundation -o /tmp/adt argument_descriptor_types.m
// /tmp/adt descriptor 33
// /tmp/adt nested /path/to/argument_buffers.metallib reflection_argument_buffers 0 15
// /tmp/adt function /path/to/argument_buffers.metallib reflection_argument_buffers 1
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
static id<MTLDevice> open_device(void) {
id<MTLDevice> device = MTLCreateSystemDefaultDevice();
if (device == nil) {
fprintf(stderr, "no Metal device\n");
exit(2);
}
return device;
}
static id<MTLLibrary> load(id<MTLDevice> device, const char *path) {
NSError *error = nil;
NSURL *url = [NSURL fileURLWithPath:[NSString stringWithUTF8String:path]];
id<MTLLibrary> library = [device newLibraryWithURL:url error:&error];
if (library == nil) {
printf("library=nil error=%s\n", error.localizedDescription.UTF8String);
exit(3);
}
return library;
}
int main(int argc, const char **argv) {
if (argc < 2) {
fprintf(stderr, "usage: %s descriptor <dataType> | nested <metallib> <entry> <buffer> <arg>"
" | function <metallib> <entry> <options>\n",
argv[0]);
return 2;
}
@autoreleasepool {
id<MTLDevice> device = open_device();
if (strcmp(argv[1], "descriptor") == 0 && argc == 3) {
NSUInteger type = (NSUInteger)strtoul(argv[2], NULL, 0);
MTLArgumentDescriptor *one = [MTLArgumentDescriptor argumentDescriptor];
one.dataType = (MTLDataType)type;
one.index = 0;
one.access = MTLBindingAccessReadOnly;
printf("dataType=%lu descriptor-made\n", (unsigned long)type);
fflush(stdout);
id<MTLArgumentEncoder> encoder =
[device newArgumentEncoderWithArguments:@[ one ]];
if (encoder == nil) {
printf("dataType=%lu encoder=nil\n", (unsigned long)type);
} else {
printf("dataType=%lu encodedLength=%lu alignment=%lu\n", (unsigned long)type,
(unsigned long)encoder.encodedLength, (unsigned long)encoder.alignment);
}
return 0;
}
if (strcmp(argv[1], "nested") == 0 && argc == 6) {
id<MTLLibrary> library = load(device, argv[2]);
id<MTLFunction> function =
[library newFunctionWithName:[NSString stringWithUTF8String:argv[3]]];
if (function == nil) {
printf("function=nil\n");
return 3;
}
NSUInteger buffer = (NSUInteger)strtoul(argv[4], NULL, 0);
NSUInteger index = (NSUInteger)strtoul(argv[5], NULL, 0);
id<MTLArgumentEncoder> outer = [function newArgumentEncoderWithBufferIndex:buffer];
if (outer == nil) {
printf("outer=nil\n");
return 3;
}
printf("outer encodedLength=%lu alignment=%lu\n",
(unsigned long)outer.encodedLength, (unsigned long)outer.alignment);
fflush(stdout);
id<MTLArgumentEncoder> nested = [outer newArgumentEncoderForBufferAtIndex:index];
if (nested == nil) {
printf("index=%lu nested=nil\n", (unsigned long)index);
} else {
printf("index=%lu nested encodedLength=%lu alignment=%lu\n",
(unsigned long)index, (unsigned long)nested.encodedLength,
(unsigned long)nested.alignment);
}
return 0;
}
if (strcmp(argv[1], "function") == 0 && argc == 5) {
id<MTLLibrary> library = load(device, argv[2]);
MTLFunctionDescriptor *made = [MTLFunctionDescriptor functionDescriptor];
made.name = [NSString stringWithUTF8String:argv[3]];
made.options = (MTLFunctionOptions)strtoul(argv[4], NULL, 0);
printf("options=%#lx descriptor-made\n", (unsigned long)made.options);
fflush(stdout);
NSError *error = nil;
id<MTLFunction> function = [library newFunctionWithDescriptor:made error:&error];
if (function == nil) {
printf("options=%#lx function=nil error=%s\n", (unsigned long)made.options,
error.localizedDescription.UTF8String);
} else {
printf("options=%#lx options-back=%#lx name=%s type=%lu\n",
(unsigned long)made.options, (unsigned long)function.options,
function.name.UTF8String, (unsigned long)function.functionType);
}
return 0;
}
if (strcmp(argv[1], "layout") == 0 && argc >= 3) {
// "type[:array[:blockAlign]],..." as one argument buffer's descriptors, in order.
NSMutableArray *descriptors = [NSMutableArray array];
char *spec = strdup(argv[2]);
NSUInteger index = 0;
for (char *item = strtok(spec, ","); item != NULL; item = strtok(NULL, ",")) {
unsigned long type = 0, array = 0, block = 0;
sscanf(item, "%lu:%lu:%lu", &type, &array, &block);
MTLArgumentDescriptor *one = [MTLArgumentDescriptor argumentDescriptor];
one.dataType = (MTLDataType)type;
one.index = index;
one.arrayLength = array;
one.access = MTLBindingAccessReadOnly;
one.constantBlockAlignment = block;
index += array > 0 ? array : 1;
[descriptors addObject:one];
}
printf("spec=%s descriptors=%lu\n", argv[2], (unsigned long)descriptors.count);
fflush(stdout);
id<MTLArgumentEncoder> encoder = [device newArgumentEncoderWithArguments:descriptors];
if (encoder == nil) {
printf("encoder=nil\n");
return 0;
}
printf("encodedLength=%lu alignment=%lu\n", (unsigned long)encoder.encodedLength,
(unsigned long)encoder.alignment);
// Where each constant argument sits, which is the layout fact an offset stands for.
id<MTLBuffer> buffer = [device newBufferWithLength:4096
options:MTLResourceStorageModeShared];
NSUInteger start = argc > 3 ? (NSUInteger)strtoul(argv[3], NULL, 0) : 0;
long element = argc > 4 ? strtol(argv[4], NULL, 0) : -1;
if (element < 0) {
[encoder setArgumentBuffer:buffer offset:start];
} else {
[encoder setArgumentBuffer:buffer startOffset:start arrayElement:(NSUInteger)element];
}
printf("start=%lu element=%ld set\n", (unsigned long)start, element);
fflush(stdout);
for (MTLArgumentDescriptor *one in descriptors) {
if (one.dataType >= MTLDataTypeFloat && one.dataType <= MTLDataTypeBool4) {
void *at = [encoder constantDataAtIndex:one.index];
printf("constant index=%lu offset=%ld\n", (unsigned long)one.index,
(long)((char *)at - (char *)buffer.contents));
}
}
return 0;
}
fprintf(stderr, "unknown shape\n");
return 2;
}
}
@@ -0,0 +1,758 @@
{
"format": 1,
"case": "argument-encoder-cross-nested",
"suite_version": 1,
"shaders": [
{
"fixture": "reflection/argument_buffers.ll",
"entry": "reflection_argument_buffers",
"source_sha256": "3a8505c3ba66afa163e2ddf8680916df1dd135176275322b3248f95b97d5706a"
},
{
"fixture": "reflection/argument_buffers.air.ll",
"entry": "reflection_argument_buffers",
"source_sha256": "a4b911b3b9eb3530c654b8aa8d5e1caf8ab57edeb14ac10109f96fc8fc02d9fa"
}
],
"answers": [
{
"key": {
"chip": "apple-m3-max",
"os_version": "27.0.1",
"os_build": "26A434",
"metal_level": "27.0.1"
},
"provenance": "metal_run",
"device": "Apple M3 Max",
"runs": 3,
"outcomes": [
{
"runs": 3,
"transcript": {
"root": {
"name": "case",
"observed": {
"value": "absent"
},
"children": [
{
"name": "inputs",
"observed": {
"value": "absent"
},
"children": [
{
"name": "air",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3a8505c3ba66afa163e2ddf8680916df1dd135176275322b3248f95b97d5706a"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "a4b911b3b9eb3530c654b8aa8d5e1caf8ab57edeb14ac10109f96fc8fc02d9fa"
}
}
},
{
"name": "layouts",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "740fb7612b193ae13717a1bbb2762a80a159a0a77feeb713294da5b36d99f3ba"
}
}
},
{
"name": "constant",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "42aed6d934f4954763c1514a5d0f6d7bd85da1dcf1b99f4be7058fcc41fa2ab5"
}
}
}
]
},
{
"name": "texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/encoder",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 224
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 16
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "outer/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/write/0-setBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/changed-words",
"observed": {
"value": {
"bytes": "AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "member/texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/device-pointer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-textures",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/constant-pointer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/inline-constant",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/indirect-command-buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/write-texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/depth-texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/pointer-to-struct-of-constants",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/compute-pipeline-state",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/pointer-to-struct-of-resources",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": true
}
}
}
}
},
{
"name": "member/array-of-samplers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-pointers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-inline-constants",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/inline-struct-of-resources",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-inline-structs",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/past-the-layout",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "nested-at-0/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "nested-at-0/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/write/0-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/changed-words",
"observed": {
"value": {
"bytes": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "nested-at-40/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "nested-at-40/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/write/0-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/changed-words",
"observed": {
"value": {
"bytes": "AAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": "ran"
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,255 @@
{
"format": 1,
"case": "library-facts-descriptor-compile-to-binary",
"suite_version": 1,
"shaders": [
{
"fixture": "a27_ob1_threadgroup.ll",
"entry": "ob1_threadgroup",
"source_sha256": "0c98a096e60fd50b4a119ac1539c8907a7ca14df5c4c0ea9163bae96240c1235"
},
{
"fixture": "a27_ob1_threadgroup.air.ll",
"entry": "ob1_threadgroup",
"source_sha256": "6e2d8bc010bac734195035dcb2466f5947642236e3ec187537ef47b6ff23815e"
}
],
"answers": [
{
"key": {
"chip": "apple-m3-max",
"os_version": "27.0.1",
"os_build": "26A434",
"metal_level": "27.0.1"
},
"provenance": "metal_run",
"device": "Apple M3 Max",
"runs": 3,
"outcomes": [
{
"runs": 3,
"transcript": {
"root": {
"name": "case",
"observed": {
"value": "absent"
},
"children": [
{
"name": "inputs",
"observed": {
"value": "absent"
},
"children": [
{
"name": "air",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "0c98a096e60fd50b4a119ac1539c8907a7ca14df5c4c0ea9163bae96240c1235"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "6e2d8bc010bac734195035dcb2466f5947642236e3ec187537ef47b6ff23815e"
}
}
},
{
"name": "entry",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "a42c4eb5d83dd0303ce05318114985e750ae0adc64778504160be62a196e30b8"
}
}
},
{
"name": "reads",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "c3eda55ab176a28decb5923c58d2496dc5afa55a3161d3efdc42dcb7f332ccd5"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "name",
"observed": {
"value": {
"lines": [
"ob1_threadgroup"
]
}
}
},
{
"name": "function_type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLFunctionTypeKernel"
]
},
"raw": {
"uint": 3
}
}
}
}
},
{
"name": "patch_type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLPatchTypeNone"
]
},
"raw": {
"uint": 0
}
}
}
}
},
{
"name": "patch_control_point_count",
"observed": {
"value": {
"variant": {
"name": "None",
"payload": "absent"
}
}
}
},
{
"name": "options",
"observed": {
"value": {
"fields": {
"names": {
"set": [
"MTLFunctionOptionCompileToBinary"
]
},
"raw": {
"uint": 1
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "vertex_attributes",
"observed": {
"value": {
"variant": {
"name": "None",
"payload": "absent"
}
}
}
},
{
"name": "stage_input_attributes",
"observed": {
"value": {
"variant": {
"name": "None",
"payload": "absent"
}
}
}
},
{
"name": "function_constants",
"observed": {
"value": "absent"
},
"children": [
{
"name": "count",
"observed": {
"value": {
"uint": 0
}
}
}
]
}
]
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": "ran"
}
]
}
@@ -845,6 +845,22 @@ pub trait Side {
Err(Failure::unavailable("set_argument_buffer"))
}
/// `newArgumentEncoderForBufferAtIndex:` of `index`: the encoder of the argument buffer the
/// buffer argument at that index points at, in the same handle space as
/// [`Side::argument_encoder`].
///
/// `Ok(None)` is Metal's **nil**, which is what it answers for every index that names no
/// nested argument buffer — a plain pointer, a pointer to a struct of constants, an inline
/// struct of resources, a texture, an array, an index past the layout. Measured on an Apple
/// M3 Max under macOS 27.0.1 (`probes/argument_descriptor_types.m`): nil for each of those and
/// an encoder only for a pointer whose pointee holds a resource. So the answer is an
/// `Option` and not a handle: a side that could only answer a handle or an error would have to
/// call Metal's nil a refusal, and nil is Metal's answer rather than its refusal.
fn nested_argument_encoder(&mut self, encoder: Handle, index: u32) -> Answer<Option<Handle>> {
let _ = (encoder, index);
Err(Failure::unavailable("nested_argument_encoder"))
}
/// One write through an argument encoder
/// ([`ArgumentWrite`](crate::argument_encoders::ArgumentWrite)).
///
@@ -42,6 +42,7 @@
//! has written it. Until somebody does, those two fields are held by construction alone, by
//! `tests::the_runtime_side_forwards_every_field_of_a_pipeline_spec`.
pub mod argument_encoder_crossings;
pub mod argument_encoders;
pub mod astc_textures;
pub mod attribute_formats;
@@ -203,6 +204,9 @@ pub fn all() -> Vec<Box<dyn Case>> {
for case in argument_encoders::all() {
cases.push(Box::new(case));
}
for case in argument_encoder_crossings::all() {
cases.push(Box::new(case));
}
for case in function_bindings::all() {
cases.push(Box::new(case));
}
@@ -0,0 +1,791 @@
//! Argument-buffer layout where **two** things decide the answer: the crossings a per-type sweep
//! cannot see.
//!
//! [`crate::cases::argument_encoders`] compares what an encoder does with one layout at a time and
//! [`crate::cases::function_bindings`] sweeps `MTLDataType` one member at a time. Between them they
//! are a sweep over single values, and the honest limit of a sweep over single values is stated in
//! `docs/CONFORMANCE-COVERAGE.md`: "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". This family is three of those pairs, each one chosen because **neither** axis alone
//! moves the answer and the two together do.
//!
//! # The crossings, and the measurement that says each is a crossing
//!
//! Every number below is Metal's, taken on an Apple M3 Max under macOS 27.0.1 by
//! `probes/argument_descriptor_types.m` before a case was written, so the family states what it is
//! pointed at rather than discovering it in a recording.
//!
//! - **An argument's type crossed with its position.** A single `MTLDataTypeChar` argument is an
//! encoder of 1 byte aligned to 1, and a single `MTLDataTypeFloat4` one of 16 aligned to 16.
//! Neither says what a layout of two of each is, and the **order** decides it: `char, char,
//! float4, float4` is **48** bytes and `float4, char, float4, char` — the same multiset — is
//! **64**. A per-type sweep cannot see a difference that only a permutation makes, and an
//! implementation that laid members out by a running sum, or that sorted them, answers one
//! number for both.
//! - **`constantBlockAlignment` crossed with what precedes the constant.** A single
//! `MTLDataTypeUInt` with `constantBlockAlignment` 64 is an encoder of **4** bytes aligned to
//! **4**: the field changes nothing at all, because offset 0 is already aligned to anything. Put
//! a texture in front of it and the same field moves the constant from offset 8 to offset
//! **64** and the encoder from 16 bytes to **72** — while the encoder's own `alignment` stays
//! **8** and does not rise to 64. So the field is indistinguishable by construction on its own
//! and load-bearing one argument later, which is the definition of a crossing rather than a
//! value.
//! - **The two offsets of `MTLArgumentEncoder`, which compose.**
//! `setArgumentBuffer:offset:` puts the arguments at `offset`;
//! `setArgumentBuffer:startOffset:arrayElement:` puts them at
//! `startOffset + arrayElement * encodedLength`. Over the 48-byte layout, `(0, element 1)` is 48
//! and `(8, no element)` is 8, and **`(8, element 1)` is 56** — a cell neither single axis
//! reaches. Metal takes a `startOffset` that is not a multiple of the layout's alignment (8 on
//! an alignment-16 layout) without complaint, which is itself a fact nothing had measured.
//! - **Which member of a layout is a nested argument buffer.** This is Metal's own
//! classification of a member and not a value a case states, so no sweep of any enumeration
//! reaches it. `newArgumentEncoderForBufferAtIndex:` answers an encoder for one index of this
//! family's fixture and **nil** for twenty others: a plain `device float *`, a pointer to a
//! struct of constants, an inline struct of a texture and a sampler, a texture, a sampler, a
//! depth texture, an array of textures, an array of samplers, an array of pointers, an array of
//! inline constants, an array of structs, an indirect command buffer, a compute pipeline state,
//! and an index past the layout. Only a pointer whose pointee holds a **resource** answers an
//! encoder, and that encoder's own layout — 8 bytes aligned to 8, the one texture of
//! `ReflectionSub` — is a second layout crossed with the first.
//!
//! # What each case compares, and why none of it is a word a host owns
//!
//! The same three things [`crate::argument_encoders`] states, for the same reason: an argument's
//! word is a Metal address or a resource ID and belongs in no recording.
//!
//! - **the layout the encoder states** — `encodedLength`, `alignment`, the `label` round trip and
//! whether `device` is the case's own;
//! - **where each constant landed** — `constantDataAtIndex:` as its **offset inside the
//! arguments**, which is the layout fact the address stands for, and the only probe into the
//! position of an argument whose type has no setter (a depth-stencil state, an acceleration
//! structure, an intersection function table);
//! - **which eight-byte words the encoder wrote** — over a buffer pre-filled with
//! [`BLANK`], so a word written as zero and a word not written
//! read differently. That is every written argument's offset and stride with none of the host's
//! numbers in it.
//!
//! The offsets crossing is read off the **mask** and not off the constant offsets, and the reason
//! is worth stating because it is the opposite of what a reader expects:
//! `constantDataAtIndex:` is recorded as the offset of the constant inside the *arguments*, which
//! is the layout fact the address stands for, so it answers the same number at every cell of that
//! case by construction. What moves is where the arguments start in the buffer, and the mask is
//! the only site that says so — word 0 at `(0, no element)`, word 6 at `(0, element 1)`, word 1 at
//! `(8, no element)` and word 7 at `(8, element 1)`, which is the cell the composition owns.
//!
//! # `MTLDataType`'s argument-only values
//!
//! Four values of `MTLDataType` that no shader in this tree declares are reachable through
//! `MTLArgumentDescriptor` alone, and the singles case is where they are compared:
//! `MTLDataTypeDepthStencilState`, which MSL has no type for, and
//! `MTLDataTypeIntersectionFunctionTable`, `MTLDataTypePrimitiveAccelerationStructure` and
//! `MTLDataTypeInstanceAccelerationStructure`. Each is **8 bytes aligned to 8** in Metal's own
//! answer, and reaching them costs this suite no ray-tracing work at all: a descriptor states a
//! layout, and nothing here makes an acceleration structure, links an intersection function or
//! asks a device for a ray-tracing feature. What is compared is the layout arithmetic, and the
//! mixtures case crosses them with a constant that follows them so their size shows up as that
//! constant's offset and not only as a total.
//!
//! `MTLDataTypeNone` and `MTLDataTypeTensor` are the two values a descriptor cannot carry: Metal's
//! own validation ends the process for each, which `scripts/conformance-coverage/unreachable_values.tsv`
//! records with the assertion it printed.
//!
//! # Why this family is safe
//!
//! Every case makes argument encoders, small buffers, one 4 by 4 texture and one sampler state, and
//! reads what the encoders say. **Nothing is dispatched, no command buffer is made and nothing is
//! drawn**, so no case here can fault the device or trip its watchdog. No case asks for a data
//! type, an index or an offset Metal's own validation refuses: each was measured accepted by the
//! probe first, and the two fatal data types are left out by name.
//!
//! # Exactness
//!
//! Every site is a number, a bool, a name or a word mask. The family declares no tolerance and
//! announces nothing: no case samples a texture, blends a pixel or touches a float.
use crate::argument_encoders::{
changed_node, changed_words, ArgumentDescriptorSpec, ArgumentWrite, ARGUMENT_WORD, BLANK,
};
use crate::case::{call, made, Abort, Case, Failure, Handle, Input, MetalSource, Side};
use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT};
use crate::recording::ShaderRef;
use crate::transcript::{Digest, Node, Observed, Sites, Value};
use metal2vulkan::metal::DataType;
/// The fixture whose kernel takes the argument buffer the nested case opens: the one
/// [`crate::cases::function_bindings`] reads a reflection off, so this family needs no fixture of
/// its own and the two compare the same layout from the two ends.
const FIXTURE: &str = "reflection/argument_buffers";
/// Its kernel, and the buffer index its argument buffer is at.
const ENTRY: &str = "reflection_argument_buffers";
const OUTER_BUFFER_INDEX: u32 = 0;
/// The one argument of that layout whose member is a nested argument buffer:
/// `constant ReflectionSub *sub [[id(15)]]`, whose pointee holds a texture.
const NESTED_INDEX: u32 = 15;
/// Bytes of every buffer a case makes, chosen so the largest composed offset of the offsets case
/// (16 + 2 * 48, with 48 bytes of arguments after it) still lies inside one, and so the mask
/// reports the bytes past the arguments as well as the arguments themselves.
const BUFFER_BYTES: usize = 256;
/// The words a mask reports: the whole of a case's argument buffer.
const WORDS: usize = BUFFER_BYTES / ARGUMENT_WORD;
/// The label every encoder of this family is given and read back.
const LABEL: &str = "conformance-argument-crossing";
/// The bytes a constant argument is filled with, chosen so no word of it is [`BLANK`]: a constant
/// written as zero and a constant not written must read differently in the mask.
const CONSTANT: [u8; 16] = [
0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
];
/// One argument type's own encoder, with no second argument to interact with.
///
/// The control the mixtures are read against: each of these is one `MTLDataType`'s size and
/// alignment as Metal states it, and the point of the family is that these ten numbers do not
/// determine the nine layouts below.
const SINGLES: &[(&str, &[ArgumentDescriptorSpec])] = &[
("char", &[ArgumentDescriptorSpec::new(DataType::Char, 0)]),
("uint", &[ArgumentDescriptorSpec::new(DataType::UInt, 0)]),
(
"float4",
&[ArgumentDescriptorSpec::new(DataType::Float4, 0)],
),
(
"texture",
&[ArgumentDescriptorSpec::new(DataType::Texture, 0)],
),
(
"sampler",
&[ArgumentDescriptorSpec::new(DataType::Sampler, 0)],
),
(
"pointer",
&[ArgumentDescriptorSpec::new(DataType::Pointer, 0)],
),
// The four values no shader of this tree declares, each reachable through a descriptor alone.
(
"depth-stencil-state",
&[ArgumentDescriptorSpec::new(DataType::DepthStencilState, 0)],
),
(
"intersection-function-table",
&[ArgumentDescriptorSpec::new(
DataType::IntersectionFunctionTable,
0,
)],
),
(
"primitive-acceleration-structure",
&[ArgumentDescriptorSpec::new(
DataType::PrimitiveAccelerationStructure,
0,
)],
),
(
"instance-acceleration-structure",
&[ArgumentDescriptorSpec::new(
DataType::InstanceAccelerationStructure,
0,
)],
),
// `constantBlockAlignment` with nothing in front of the constant, which is the row that makes
// the field's own effect indistinguishable by construction: 4 and 4, exactly as the plain
// `uint` above. The mixtures case is where the same field moves 56 bytes.
(
"uint-block-aligned-64",
&[ArgumentDescriptorSpec::new(DataType::UInt, 0).block_aligned(64)],
),
];
/// Layouts of more than one argument, where what each argument's position and the encoder's own
/// totals come to is decided by **two** of the arguments and not one.
const MIXTURES: &[(&str, &[ArgumentDescriptorSpec])] = &[
// The permutation pair: one multiset, two orders, and Metal answers 48 for the first and 64
// for the second. Nothing in `SINGLES` distinguishes them.
(
"narrow-then-wide",
&[
ArgumentDescriptorSpec::new(DataType::Char, 0),
ArgumentDescriptorSpec::new(DataType::Char, 1),
ArgumentDescriptorSpec::new(DataType::Float4, 2),
ArgumentDescriptorSpec::new(DataType::Float4, 3),
],
),
(
"wide-then-narrow",
&[
ArgumentDescriptorSpec::new(DataType::Float4, 0),
ArgumentDescriptorSpec::new(DataType::Char, 1),
ArgumentDescriptorSpec::new(DataType::Float4, 2),
ArgumentDescriptorSpec::new(DataType::Char, 3),
],
),
(
"alternating",
&[
ArgumentDescriptorSpec::new(DataType::Char, 0),
ArgumentDescriptorSpec::new(DataType::Float4, 1),
ArgumentDescriptorSpec::new(DataType::Char, 2),
ArgumentDescriptorSpec::new(DataType::Float4, 3),
],
),
// A handle among the constants, in both orders: a texture is 8 bytes aligned to 8, so where it
// sits decides which constant the padding lands in front of.
(
"constants-then-handle",
&[
ArgumentDescriptorSpec::new(DataType::Char, 0),
ArgumentDescriptorSpec::new(DataType::UInt, 1),
ArgumentDescriptorSpec::new(DataType::Float4, 2),
ArgumentDescriptorSpec::new(DataType::Texture, 3),
],
),
(
"handle-then-constants",
&[
ArgumentDescriptorSpec::new(DataType::Texture, 0),
ArgumentDescriptorSpec::new(DataType::Float4, 1),
ArgumentDescriptorSpec::new(DataType::UInt, 2),
ArgumentDescriptorSpec::new(DataType::Char, 3),
],
),
// A depth-stencil state crossed with the constants after it: the state has no setter, so the
// only thing that says it took 8 bytes aligned to 8 is where the `char` after it landed.
(
"depth-stencil-state-then-constants",
&[
ArgumentDescriptorSpec::new(DataType::DepthStencilState, 0),
ArgumentDescriptorSpec::new(DataType::Char, 1),
ArgumentDescriptorSpec::new(DataType::Float4, 2),
ArgumentDescriptorSpec::new(DataType::Sampler, 3),
],
),
// The three table and acceleration-structure types in one layout, with a `char` behind them
// for the same reason: 32 bytes of handles put it at offset 32, and the encoder at 40.
(
"tables-then-constant",
&[
ArgumentDescriptorSpec::new(DataType::IntersectionFunctionTable, 0),
ArgumentDescriptorSpec::new(DataType::PrimitiveAccelerationStructure, 1),
ArgumentDescriptorSpec::new(DataType::InstanceAccelerationStructure, 2),
ArgumentDescriptorSpec::new(DataType::VisibleFunctionTable, 3),
ArgumentDescriptorSpec::new(DataType::Char, 4),
],
),
// `constantBlockAlignment` with an argument in front of it, which is the same field as the
// `uint-block-aligned-64` single and the row where it moves 56 bytes.
(
"handle-then-block-aligned-constant",
&[
ArgumentDescriptorSpec::new(DataType::Texture, 0),
ArgumentDescriptorSpec::new(DataType::UInt, 1).block_aligned(64),
ArgumentDescriptorSpec::new(DataType::Char, 2),
],
),
// An array between two constants: the array's own stride times its length decides where the
// second constant goes, which neither the element type nor the length says on its own.
(
"array-between-constants",
&[
ArgumentDescriptorSpec::new(DataType::Char, 0),
ArgumentDescriptorSpec::new(DataType::Texture, 1).array(2),
ArgumentDescriptorSpec::new(DataType::Float4, 3),
],
),
];
/// The layout the offsets case composes over: four arguments, 48 bytes, aligned to 16, with three
/// constants whose offsets inside the arguments say where the arguments start.
const COMPOSED: &[ArgumentDescriptorSpec] = &[
ArgumentDescriptorSpec::new(DataType::Char, 0),
ArgumentDescriptorSpec::new(DataType::UInt, 1),
ArgumentDescriptorSpec::new(DataType::Float4, 2),
ArgumentDescriptorSpec::new(DataType::Texture, 3),
];
/// The second layout the offsets case composes over: 72 bytes aligned to 8, so the composed base
/// is a multiple of neither the first layout's length nor its alignment, and the block-aligned
/// constant's offset is one the composition and the packing decide **together**.
const COMPOSED_BLOCK: &[ArgumentDescriptorSpec] = &[
ArgumentDescriptorSpec::new(DataType::Texture, 0),
ArgumentDescriptorSpec::new(DataType::UInt, 1).block_aligned(64),
ArgumentDescriptorSpec::new(DataType::Char, 2),
];
/// Where one cell of the offsets case puts the arguments: the `setArgumentBuffer:` offset and the
/// array element, or `None` for the setter that takes no element.
///
/// The cells are the crossing written out. Two rows vary only the offset, two only the element,
/// and three vary both — and it is the last three that a side composing the two wrongly fails
/// while answering the first four exactly.
const PLACES: &[(&str, u64, Option<u64>)] = &[
("at-0", 0, None),
("at-0-element-0", 0, Some(0)),
("at-0-element-1", 0, Some(1)),
("at-8", 8, None),
("at-8-element-0", 8, Some(0)),
("at-8-element-1", 8, Some(1)),
("at-16-element-2", 16, Some(2)),
];
/// The indices the nested case asks `newArgumentEncoderForBufferAtIndex:` for, with what each
/// member of the fixture's layout is.
///
/// Every one but [`NESTED_INDEX`] is a member Metal answers **nil** for, and the list is the
/// crossing: the member kinds a layout can hold against Metal's own answer to "is this a nested
/// argument buffer". The last is past the layout altogether.
const NESTED_PLACES: &[(&str, u32)] = &[
("texture", 0),
("sampler", 1),
("device-pointer", 2),
("array-of-textures", 3),
("constant-pointer", 6),
("inline-constant", 7),
("indirect-command-buffer", 9),
("write-texture", 10),
("depth-texture", 11),
("pointer-to-struct-of-constants", 12),
("compute-pipeline-state", 13),
("pointer-to-struct-of-resources", NESTED_INDEX),
("array-of-samplers", 16),
("array-of-pointers", 18),
("array-of-inline-constants", 20),
("inline-struct-of-resources", 22),
("array-of-inline-structs", 24),
("past-the-layout", 99),
];
/// The offsets the nested case sets its nested argument buffer at: the composition inside the
/// **nested** buffer, which the outer encoder's own offset has nothing to do with.
const NESTED_OFFSETS: &[(&str, u64)] = &[("nested-at-0", 0), ("nested-at-40", 40)];
/// What one case of the family crosses.
enum Crossing {
/// One encoder a layout, over the layouts given: the totals and every argument's position.
Layouts(&'static [(&'static str, &'static [ArgumentDescriptorSpec])]),
/// One layout over every place of [`PLACES`], through both of the two setters.
Places(&'static [(&'static str, &'static [ArgumentDescriptorSpec])]),
/// The fixture kernel's own layout, every member asked whether it is a nested argument buffer,
/// and the one that is encoded into at two offsets.
Nested,
}
/// A case over one crossing.
pub struct CrossingCase {
name: &'static str,
crossing: Crossing,
}
/// Every case of the family.
pub fn all() -> Vec<CrossingCase> {
vec![
// The control: one argument type an encoder, which is what the mixtures are read against.
CrossingCase {
name: "argument-encoder-cross-type-sizes",
crossing: Crossing::Layouts(SINGLES),
},
// The crossing: the same types in layouts of four, where the order and the neighbours
// decide the answer.
CrossingCase {
name: "argument-encoder-cross-type-mixtures",
crossing: Crossing::Layouts(MIXTURES),
},
// The two offsets, composed.
CrossingCase {
name: "argument-encoder-cross-offsets",
crossing: Crossing::Places(&[
("composed", COMPOSED),
("composed-block-aligned", COMPOSED_BLOCK),
]),
},
// The nested argument buffer: which member is one, and what its own encoder does.
CrossingCase {
name: "argument-encoder-cross-nested",
crossing: Crossing::Nested,
},
]
}
/// The writes that fill every argument of `layout` a setter can reach, so the mask says where each
/// one landed.
///
/// A type with no setter — a depth-stencil state, an acceleration structure, an intersection
/// function table — is left unwritten on purpose, and what says it took the room it did is the
/// offset of the constant behind it.
fn writes(
layout: &[ArgumentDescriptorSpec],
texture: Handle,
sampler: Handle,
buffer: Handle,
) -> Vec<ArgumentWrite> {
let mut out = Vec::new();
for one in layout {
let count = one.array_length.max(1);
for element in 0..count {
let index = one.index + element;
match one.data_type {
DataType::Texture => out.push(ArgumentWrite::Texture {
texture: Some(texture),
index,
}),
DataType::Sampler => out.push(ArgumentWrite::Sampler {
sampler: Some(sampler),
index,
}),
DataType::Pointer => out.push(ArgumentWrite::Buffer {
buffer: Some(buffer),
offset: 0,
index,
}),
_ => {}
}
}
}
out
}
/// The constant arguments of `layout`, with the bytes each is filled with: as many of [`CONSTANT`]
/// as the type takes, so a constant's own bytes never hold [`BLANK`] and the mask reports it.
fn constants(layout: &[ArgumentDescriptorSpec]) -> Vec<(u32, Vec<u8>)> {
layout
.iter()
.filter_map(|one| {
let bytes = match one.data_type {
DataType::Char => 1,
DataType::UInt => 4,
DataType::Float4 => 16,
_ => return None,
};
Some((one.index, CONSTANT[..bytes].to_vec()))
})
.collect()
}
impl CrossingCase {
/// The fixture the nested case reads; the others read none and feed its digest anyway, so one
/// family has one input shape.
fn fixture(&self) -> Fixture {
Fixture {
name: FIXTURE,
entry: ENTRY,
}
}
/// Every layout the case states, in order, as the words its input fingerprint covers.
fn layout_words(&self) -> Vec<u8> {
let mut out = Vec::new();
match &self.crossing {
Crossing::Layouts(table) | Crossing::Places(table) => {
for (name, layout) in *table {
out.extend(name.as_bytes());
for one in *layout {
out.extend(one.words());
}
}
}
Crossing::Nested => {
out.extend(ENTRY.as_bytes());
out.extend(OUTER_BUFFER_INDEX.to_le_bytes());
for (name, index) in NESTED_PLACES {
out.extend(name.as_bytes());
out.extend(index.to_le_bytes());
}
for (name, offset) in NESTED_OFFSETS {
out.extend(name.as_bytes());
out.extend(offset.to_le_bytes());
}
}
}
if let Crossing::Places(_) = &self.crossing {
for (name, offset, element) in PLACES {
out.extend(name.as_bytes());
out.extend(offset.to_le_bytes());
out.extend(element.unwrap_or(u64::MAX).to_le_bytes());
}
}
out
}
/// One encoder's facts, its arguments' positions and its argument buffer's changed words,
/// under `at`.
///
/// Every encoder of the family goes through this, so a cell differs from another cell by the
/// layout and the offset it was given and by nothing of the harness.
fn encoded(
side: &mut dyn Side,
sites: &mut Sites,
at: &str,
encoder: Handle,
layout: &[ArgumentDescriptorSpec],
place: (u64, Option<u64>),
held: &Resources,
) -> Result<(), Abort> {
let facts = match side.argument_encoder_facts(encoder, LABEL) {
Ok(facts) => facts,
Err(failure) => {
sites.push(Node::leaf(
format!("{at}/facts"),
Observed::value(failure.recorded()),
));
return Err(Abort {
at: at.to_owned(),
failure,
});
}
};
sites.push(facts.node(format!("{at}/facts")));
let arguments = made(
sites,
&format!("{at}/buffer"),
side.buffer(&vec![BLANK; BUFFER_BYTES]),
)?;
made(
sites,
&format!("{at}/setArgumentBuffer"),
side.set_argument_buffer(encoder, arguments, place.0, place.1),
)?;
for (step, write) in writes(layout, held.texture, held.sampler, held.buffer)
.iter()
.enumerate()
{
made(
sites,
&format!("{at}/write/{step}-{}", write.call()),
side.encode_argument(encoder, write),
)?;
}
for (index, bytes) in constants(layout) {
call(
sites,
&format!("{at}/constant-offset/{index}"),
side.constant_data_offset(encoder, index),
|offset| Value::Uint(*offset),
)?;
made(
sites,
&format!("{at}/constant-write/{index}"),
side.encode_argument(encoder, &ArgumentWrite::Constant { index, bytes }),
)?;
}
// The buffer's own bytes never enter the transcript: they are addresses and resource IDs.
// Which words stopped holding the pattern is the layout and nothing of the host's.
let encoded = call(
sites,
&format!("{at}/read-back"),
side.read_buffer(arguments, 0, BUFFER_BYTES),
|_| Value::Absent,
)?;
sites.push(changed_node(
format!("{at}/changed-words"),
changed_words(&encoded, WORDS),
0,
));
Ok(())
}
}
/// The resources a case's writes name, made once and named by every cell.
struct Resources {
texture: Handle,
sampler: Handle,
buffer: Handle,
}
impl Case for CrossingCase {
fn name(&self) -> &'static str {
self.name
}
fn metal_source(&self) -> MetalSource {
MetalSource::Run
}
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
let fixture = self.fixture();
[RUNTIME_TEXT, METAL_TEXT]
.into_iter()
.map(|extension| {
Ok(ShaderRef {
fixture: format!("{FIXTURE}{extension}"),
entry: ENTRY.to_owned(),
source_sha256: crate::sha256_hex(fixture.text(extension)?.as_bytes()),
})
})
.collect()
}
fn inputs(&self) -> Result<Vec<Input>, String> {
let fixture = self.fixture();
Ok(vec![
Input {
name: "air".to_owned(),
digest: Digest::sha256(fixture.text(RUNTIME_TEXT)?.as_bytes()),
},
Input {
name: "air-typed".to_owned(),
digest: Digest::sha256(fixture.text(METAL_TEXT)?.as_bytes()),
},
Input::bytes("layouts", &self.layout_words()),
Input::bytes("constant", &CONSTANT),
])
}
fn run(&self, side: &mut dyn Side, sites: &mut Sites) -> Result<(), Abort> {
// The one texture, sampler and buffer every cell's writes name. A texture argument's word
// is a resource ID and a buffer argument's an address, so which object it is changes
// nothing a case compares: what the mask says is that a word stopped holding the pattern.
let texture = made(
sites,
"texture",
side.texture_2d_in_role(&spec::texture(), &spec::texels()),
)?;
let sampler = made(sites, "sampler", side.sampler(&spec::sampler()))?;
let buffer = made(sites, "buffer", side.buffer(&vec![0u8; BUFFER_BYTES]))?;
let held = Resources {
texture,
sampler,
buffer,
};
match &self.crossing {
Crossing::Layouts(table) => {
for (at, layout) in *table {
let encoder = made(
sites,
&format!("{at}/encoder"),
side.argument_encoder_with_arguments(layout),
)?;
Self::encoded(side, sites, at, encoder, layout, (0, None), &held)?;
}
}
Crossing::Places(table) => {
for (layout_name, layout) in *table {
for (place_name, offset, element) in PLACES {
// One encoder a cell, not one encoder reset between cells: an encoder
// keeps the argument buffer it was last given, so a shared one would make
// each cell's answer depend on the cell before it.
let at = format!("{layout_name}/{place_name}");
let encoder = made(
sites,
&format!("{at}/encoder"),
side.argument_encoder_with_arguments(layout),
)?;
Self::encoded(
side,
sites,
&at,
encoder,
layout,
(*offset, *element),
&held,
)?;
}
}
}
Crossing::Nested => {
let stop = |at: &str, why: String| Abort {
at: at.to_owned(),
failure: Failure::named("FixtureNotRead", why),
};
let loaded = self
.fixture()
.loaded()
.map_err(|why| stop("library", why))?;
let library = made(sites, "library", side.library(&loaded.source()))?;
let outer = made(
sites,
"outer/encoder",
side.argument_encoder(library, ENTRY, OUTER_BUFFER_INDEX),
)?;
// The outer layout's own statement, and the word it writes for the member that is
// itself an argument buffer: a nested argument buffer is a buffer to the outer
// encoder, so what goes in at index 15 is a buffer's address like any other, and
// the outer mask says it landed at the member's own offset and nowhere else.
Self::encoded(
side,
sites,
"outer",
outer,
&[ArgumentDescriptorSpec::new(DataType::Pointer, NESTED_INDEX)],
(0, None),
&held,
)?;
// Which member of the layout is a nested argument buffer, asked of every member
// kind the layout holds and of an index past its end. Metal's answer is an encoder
// or nil, and nil is an answer: a side that refused here would be refusing what
// plain Metal hands a program.
let mut nested_handle = None;
for (at, index) in NESTED_PLACES {
let answer = call(
sites,
&format!("member/{at}"),
side.nested_argument_encoder(outer, *index),
|nested| Value::Bool(nested.is_some()),
)?;
if *index == NESTED_INDEX {
nested_handle = answer;
}
}
// The nested encoder's own layout, and where its one texture lands in its own
// buffer at each offset: the inner composition, which the outer encoder's offset
// has nothing to do with.
let nested = nested_handle.ok_or_else(|| Abort {
at: "nested/encoder".to_owned(),
failure: Failure::named(
"NoNestedEncoder",
format!("no encoder for argument {NESTED_INDEX}"),
),
})?;
for (at, offset) in NESTED_OFFSETS {
Self::encoded(
side,
sites,
at,
nested,
&[ArgumentDescriptorSpec::new(DataType::Texture, 0)],
(*offset, None),
&held,
)?;
}
}
}
Ok(())
}
}
/// The one texture and sampler the family's writes name, described where a reader meets them.
mod spec {
use crate::case::{SamplerSpec, TextureRole, TextureSpec};
use metal2vulkan::metal::{PixelFormat, SamplerAddressMode, SamplerMinMagFilter};
/// The texture's side: small, because nothing samples it. What a texture argument contributes
/// is a resource ID.
const SIDE: u32 = 4;
/// The texture every texture argument of the family is written with.
pub fn texture() -> TextureSpec {
TextureSpec::new(
PixelFormat::RGBA8Unorm,
[SIDE, SIDE],
SIDE * 4,
TextureRole::Read,
)
}
/// Its bytes, which nothing reads: a constant pattern, so the case's input fingerprint holds
/// one.
pub fn texels() -> Vec<u8> {
vec![0x40; (SIDE * SIDE * 4) as usize]
}
/// The sampler state every sampler argument is written with: able to live in an argument
/// buffer at all, which Metal gives a state no resource ID without.
pub fn sampler() -> SamplerSpec {
SamplerSpec::filtered(SamplerMinMagFilter::Nearest)
.addressed(SamplerAddressMode::ClampToEdge)
.for_argument_buffer()
}
}
@@ -151,6 +151,23 @@ pub fn all() -> Vec<LibraryFactsCase> {
options: FunctionOptions::STORE_FUNCTION_IN_METAL_PIPELINES_SCRIPT,
}),
},
// `MTLFunctionOptionCompileToBinary`, with **no** binary archive listed on the descriptor.
// The bit is what makes a function eligible for a `MTLBinaryArchive`, and what a case can
// ask of it on its own is whether the creation still succeeds and still answers the word
// back: plain Metal takes every combination of the four bits here and answers `options`
// verbatim, measured on an Apple M3 Max under macOS 27.0.1
// (`probes/argument_descriptor_types.m`, the `function` shape). What the bit does *with*
// an archive is `MTLBinaryArchive`'s question, which `cases/binary_archives` is about.
LibraryFactsCase {
name: "library-facts-descriptor-compile-to-binary",
fixture: "a27_ob1_threadgroup",
entry: "ob1_threadgroup",
reads: Reads::Descriptor(FunctionDescriptorSpec {
name: "ob1_threadgroup".to_owned(),
constants: Vec::new(),
options: FunctionOptions::COMPILE_TO_BINARY,
}),
},
]
}
@@ -93,6 +93,7 @@ use crate::recording::ShaderRef;
use crate::transcript::{Digest, Node, Observed, Sites};
use metal2vulkan::metal::PixelFormat;
use metal2vulkan_devtools::{fixtures_dir, llvm_assemble, AssembleError};
use metal2vulkan_runtime::PipelineOption;
/// The site the library's make sits at.
const LIBRARY: &str = "library";
@@ -116,10 +117,19 @@ const FRAGMENT: &str = "texture_accesses_fragment";
/// [`crate::cases::texture_accesses`]'.
const ATTACHMENT: PixelFormat = PixelFormat::RGBA8Unorm;
/// The three bits Metal defines, by Metal's own names.
const BINDING_INFO: u64 = 1 << 0;
const BUFFER_TYPE_INFO: u64 = 1 << 1;
const FAIL_ON_BINARY_ARCHIVE_MISS: u64 = 1 << 2;
/// The three bits Metal defines and the empty word, each taken from the runtime's own value for it
/// rather than written as a literal.
///
/// Through [`PipelineOption`] and not `1 << 0`, because a raw ordinal is a value no reading of the
/// text can attribute: `docs/CONFORMANCE-COVERAGE.md`'s option-space axis read this family as
/// reaching **none** of `MTLPipelineOption`'s four values while it was sweeping all eight
/// combinations of them, for exactly that reason. Naming each value also ties the sweep to the
/// constant the runtime acts on, so a bit that moved in one place and not the other would not
/// compile.
const NONE: u64 = PipelineOption::NONE.raw();
const BINDING_INFO: u64 = PipelineOption::BINDING_INFO.raw();
const BUFFER_TYPE_INFO: u64 = PipelineOption::BUFFER_TYPE_INFO.raw();
const FAIL_ON_BINARY_ARCHIVE_MISS: u64 = PipelineOption::FAIL_ON_BINARY_ARCHIVE_MISS.raw();
/// The whole of the defined option space, every combination of the three bits in order of the
/// raw value, as the **compute** sweep's cases, then the four undefined shapes.
@@ -132,7 +142,7 @@ const FAIL_ON_BINARY_ARCHIVE_MISS: u64 = 1 << 2;
const COMPUTE: [(&str, OptionValue); 12] = [
(
"pipeline-options-compute-none",
OptionValue::new(0, "MTLPipelineOptionNone"),
OptionValue::new(NONE, "MTLPipelineOptionNone"),
),
(
"pipeline-options-compute-binding-info",
@@ -204,7 +214,7 @@ const COMPUTE: [(&str, OptionValue); 12] = [
const RENDER: [(&str, OptionValue); 9] = [
(
"pipeline-options-render-none",
OptionValue::new(0, "MTLPipelineOptionNone"),
OptionValue::new(NONE, "MTLPipelineOptionNone"),
),
(
"pipeline-options-render-binding-info",
@@ -2967,6 +2967,24 @@ impl Side for MetalSide {
Ok(())
}
fn nested_argument_encoder(&mut self, encoder: Handle, index: u32) -> Answer<Option<Handle>> {
let held = self.held_encoder(encoder)?;
// SAFETY: Metal answers nil for every index that names no nested argument buffer rather
// than raising, which the probe measured over a plain pointer, a pointer to a struct of
// constants, an inline struct of resources, a texture, two arrays and an index past the
// layout, so no index a case can name ends the process here.
let nested = unsafe { held.newArgumentEncoderForBufferAtIndex(index as usize) };
Ok(nested.map(|nested| {
keep(
&mut self.argument_encoders,
ArgumentEncoderAt {
encoder: nested,
target: None,
},
)
}))
}
fn encode_argument(&mut self, encoder: Handle, write: &ArgumentWrite) -> Answer<()> {
let target = self
.argument_encoders
@@ -2345,6 +2345,24 @@ impl Side for RuntimeSide<'_> {
Ok(())
}
fn nested_argument_encoder(&mut self, encoder: Handle, index: u32) -> Answer<Option<Handle>> {
let held = self.held_encoder(encoder)?.encoder.clone();
match held.new_argument_encoder_for_buffer_at_index(index) {
Ok(nested) => Ok(Some(keep(
&mut self.argument_encoders,
EncoderAt {
encoder: nested,
target: None,
},
))),
// The runtime's typed `Nil` is the same fact as Metal's nil object, so both sides
// answer `None` for it; every other error stays an error, which the case records as
// the refusal it is.
Err(metal2vulkan_runtime::Error::Nil(_)) => Ok(None),
Err(error) => Err(Failure::of(&error)),
}
}
fn encode_argument(&mut self, encoder: Handle, write: &ArgumentWrite) -> Answer<()> {
// The encoder is cloned so the resources it writes can be looked up in the same pools
// while it is in hand; a clone shares the layout and the argument buffer it was given, so
@@ -233,6 +233,11 @@ impl<S: Side, W: Watcher> Side for Watching<S, W> {
.set_argument_buffer(encoder, buffer, offset, element)
}
fn nested_argument_encoder(&mut self, encoder: Handle, index: u32) -> Answer<Option<Handle>> {
let _span = self.watch("nested_argument_encoder");
self.inner.nested_argument_encoder(encoder, index)
}
fn encode_argument(&mut self, encoder: Handle, write: &ArgumentWrite) -> Answer<()> {
let _span = self.watch("encode_argument");
self.inner.encode_argument(encoder, write)
@@ -761,21 +761,33 @@ impl ArgumentEncoder {
}
/// `newArgumentEncoderForBufferAtIndex:`: an encoder of the argument buffer the buffer
/// argument at `index` points to, with no argument buffer set. Refused: no buffer argument at
/// the index (`Invalid`), and one that points to no argument buffer (`Nil`,
/// [`NoNestedArgumentBuffer`](ArgumentEncoderProblem::NoNestedArgumentBuffer)), for which
/// Metal answers nil.
/// argument at `index` points to, with no argument buffer set.
///
/// Every index that names no nested argument buffer answers `Nil`
/// ([`NoNestedArgumentBuffer`](ArgumentEncoderProblem::NoNestedArgumentBuffer)), because plain
/// Metal answers **nil** for each of them rather than raising: measured on an Apple M3 Max
/// under macOS 27.0.1 over one layout's own indices — a plain `device float *`, a pointer to a
/// struct of constants, an inline struct of a texture and a sampler, a texture, a sampler, an
/// array of textures, an array of samplers, an array of structs, an indirect command buffer, a
/// compute pipeline state, and an index past the layout — and an encoder only for a pointer
/// whose pointee holds a resource (`metal2vulkan-conformance`'s
/// `probes/argument_descriptor_types.m`, held by its `argument-encoder-cross-nested` case).
/// So the index's **reason** for having no nested buffer changes nothing a program sees, and
/// an `Invalid` here would refuse what plain Metal answers.
pub fn new_argument_encoder_for_buffer_at_index(
&self,
index: u32,
) -> Result<ArgumentEncoder, Error> {
const CALL: &str = "new_argument_encoder_for_buffer_at_index";
let place = argument_place(&self.layout, index, ArgumentType::Buffer)
.map_err(|p| problem(CALL, p))?;
let nested = place.nested.ok_or_else(|| {
let problem = ArgumentEncoderProblem::NoNestedArgumentBuffer { index };
nil(CALL, Problem::ArgumentEncoder(problem))
})?;
let nested = self
.layout
.argument(index)
.filter(|place| place.ty == ArgumentType::Buffer)
.and_then(|place| place.nested)
.ok_or_else(|| {
let problem = ArgumentEncoderProblem::NoNestedArgumentBuffer { index };
nil(CALL, Problem::ArgumentEncoder(problem))
})?;
Ok(ArgumentEncoder::new(&self.device, nested))
}
}
+147 -146
View File
@@ -14,7 +14,7 @@ The suite reaches Metal through `objc2-metal`, whose Rust name for a binding is
Its limits, measured rather than asserted:
- **1470 of 1636 call sites** in the Metal leg resolve to an item of the SDK. 53 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed.
- **1471 of 1637 call sites** in the Metal leg resolve to an item of the SDK. 53 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed.
- **2 call sites send a selector `objc2-metal` binds on no Metal type at all**, so they are an item of no Metal container and there is no count for them to cost: `alloc`, `class`, which are `NSObject`'s.
- **125 call sites resolve to no item although some Metal type binds the selector**: an instance send whose receiver this could not type, or a message to a class that does not bind the name sent to it. Each sent its selector to exactly one receiver, so each exercised one item; which one is what the typing could not say. **Every one of their selectors is bound by at least one item some other call site credits**, so none of these sites proves an item is missing from the count. That is not a proof that the count is complete: such a site may have sent its selector to a type other than the credited one, and this cannot tell. To rule it out, spell the receiver's type at the call site — a `let` with a type, rather than a pattern binding or an inferred one — and this re-derives with the item credited to the case that calls it.
- **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.
@@ -34,14 +34,14 @@ Its limits, measured rather than asserted:
| 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 | 782 |
| of the reachable, not exercised | 172 |
| of the reachable, exercised by the suite's Metal leg | 783 |
| of the reachable, not exercised | 171 |
| share of the reachable exercised | 82% |
| of those exercised, no case reaching it loosens anything | 597 |
| of those exercised, no case reaching it loosens anything | 598 |
| of those exercised, a case reaching it loosens some site | 185 |
| case modules | 134 |
| committed recordings | 1039 |
| distinct SDK items the Metal leg reaches, of any status | 794 |
| case modules | 135 |
| committed recordings | 1044 |
| distinct SDK items the Metal leg reaches, of any status | 795 |
| of those, reached only where this cannot name the family | 7 |
| ledger rows (a case whose gap is recorded) | 67 |
| declared crossings of the option space (pairs put to Metal at once) | 15 |
@@ -68,7 +68,7 @@ What this axis cannot see, measured rather than asserted:
- **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** — 27 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** — 26 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. *By crossing* below counts the pairs a case states together, which is the measure of that and is a floor by every crossing nobody declared.
- **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.
@@ -79,12 +79,12 @@ What this axis cannot see, measured rather than asserted:
| their values | 757 |
| of those, unreachable: no case can put them to Metal | 51 |
| so reachable by some case | 706 |
| values compared | 641 |
| share of the reachable compared | 91% |
| values only the suite's shared sources name | 27 |
| values no source names and no recording holds | 38 |
| values compared | 649 |
| share of the reachable compared | 92% |
| values only the suite's shared sources name | 26 |
| values no source names and no recording holds | 31 |
| types every reachable value of which is compared | 35 |
| types no value of which is compared | 8 |
| types no value of which is compared | 7 |
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.
@@ -94,16 +94,15 @@ Deepest gap first, which is the order the work list reads in. *answered*, *at a
| Metal type | values | compared | answered | at a site | in effect | shared only | unreachable | missing |
|---|---|---|---|---|---|---|---|---|
| `MTLDataType` | 97 | 75 | 74 | 0 | 9 | 0 | 16 | 6 |
| `MTLBindingType` | 12 | 8 | 8 | 0 | 0 | 0 | 0 | 4 |
| `MTLStepFunction` | 9 | 5 | 0 | 0 | 5 | 0 | 0 | 4 |
| `MTLFunctionOptions` | 5 | 2 | 1 | 0 | 2 | 0 | 0 | 3 |
| `MTLReadWriteTextureTier` | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
| `MTLTextureUsage` | 9 | 6 | 0 | 0 | 6 | 0 | 0 | 3 |
| `MTLPipelineOption` | 4 | 0 | 0 | 0 | 0 | 2 | 0 | 2 |
| `MTLIndirectCommandType` | 8 | 5 | 0 | 0 | 5 | 1 | 0 | 2 |
| `MTLArgumentBuffersTier` | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
| `MTLBarrierScope` | 3 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
| `MTLDataType` | 97 | 79 | 74 | 0 | 14 | 0 | 16 | 2 |
| `MTLFunctionOptions` | 5 | 3 | 2 | 0 | 3 | 0 | 0 | 2 |
| `MTLPrimitiveTopologyClass` | 4 | 2 | 2 | 0 | 0 | 0 | 0 | 2 |
| `MTLStorageMode` | 4 | 0 | 0 | 0 | 0 | 3 | 0 | 1 |
| `MTLAttributeFormat` | 54 | 53 | 0 | 53 | 1 | 0 | 0 | 1 |
@@ -118,6 +117,7 @@ Deepest gap first, which is the order the work list reads in. *answered*, *at a
| `MTLSparseTextureRegionAlignmentMode` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 |
| `MTLCPUCacheMode` | 2 | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| `MTLHeapType` | 3 | 2 | 0 | 0 | 2 | 1 | 0 | 0 |
| `MTLPipelineOption` | 4 | 3 | 0 | 0 | 3 | 1 | 0 | 0 |
| `MTLBindingAccess` | 3 | 3 | 3 | 0 | 0 | 0 | 0 | 0 |
| `MTLBlendFactor` | 20 | 20 | 10 | 0 | 20 | 0 | 0 | 0 |
| `MTLBlendOperation` | 6 | 6 | 5 | 0 | 6 | 0 | 0 | 0 |
@@ -184,7 +184,7 @@ What this axis cannot see, stated rather than implied:
| crossings declared | 15 |
| distinct pairs of Metal types crossed | 16 |
| types in at least one crossing | 18 |
| types with two or more values compared and in no crossing | 28 |
| types with two or more values compared and in no crossing | 29 |
| case module | cell | crossed | what only the cross decides |
|---|---|---|---|
@@ -208,7 +208,7 @@ What this axis cannot see, stated rather than implied:
The work list of this axis, and the shape of the answer to *is the depth sufficient?*: each of these is a type the suite compared two or more values of and crossed with nothing. The number is the values compared. A row is a question and not a verdict — the type may be crossed by a family that declared no row, and a type whose values cannot interact with anything has nothing to answer — but a type deep on the per-value axis and absent here is where a cell of a pair is least likely to have been looked at.
- **`MTLDataType`**, 75 of 97 compared
- **`MTLDataType`**, 79 of 97 compared
- **`MTLAttributeFormat`**, 53 of 54 compared
- **`MTLBindingType`**, 8 of 12 compared
- **`MTLFunctionType`**, 6 of 7 compared
@@ -219,16 +219,17 @@ The work list of this axis, and the shape of the answer to *is the depth suffici
- **`MTLTessellationFactorStepFunction`**, 4 of 4 compared
- **`MTLTessellationPartitionMode`**, 4 of 4 compared
- **`MTLBindingAccess`**, 3 of 3 compared
- **`MTLFunctionOptions`**, 3 of 5 compared
- **`MTLLoadAction`**, 3 of 3 compared
- **`MTLMutability`**, 3 of 3 compared
- **`MTLPatchType`**, 3 of 3 compared
- **`MTLPipelineOption`**, 3 of 4 compared
- **`MTLSamplerMipFilter`**, 3 of 3 compared
- **`MTLSamplerReductionMode`**, 3 of 3 compared
- **`MTLSparsePageSize`**, 3 of 3 compared
- **`MTLTessellationControlPointIndexType`**, 3 of 3 compared
- **`MTLVisibilityResultMode`**, 3 of 3 compared
- **`MTLDepthClipMode`**, 2 of 2 compared
- **`MTLFunctionOptions`**, 2 of 5 compared
- **`MTLHeapType`**, 2 of 3 compared
- **`MTLIndexType`**, 2 of 2 compared
- **`MTLMultisampleStencilResolveFilter`**, 2 of 2 compared
@@ -257,16 +258,15 @@ It names the type and the module, and no value: which value a computed number is
The work list. A name here is a value of Metal's that no committed recording holds and no case module states **by name**: it is not a claim that Metal accepts the value on every device, and not a claim that no case reaches it, because a case that sweeps a type by ordinal states none of its values here. Each row is a question for the case, not a verdict on it.
- **`MTLDataType`**, 6 of 97: `MTLDataTypeNone`, `MTLDataTypeIntersectionFunctionTable`, `MTLDataTypePrimitiveAccelerationStructure`, `MTLDataTypeInstanceAccelerationStructure`, `MTLDataTypeDepthStencilState`, `MTLDataTypeTensor`
- **`MTLBindingType`**, 4 of 12: `MTLBindingTypePrimitiveAccelerationStructure`, `MTLBindingTypeInstanceAccelerationStructure`, `MTLBindingTypeIntersectionFunctionTable`, `MTLBindingTypeTensor`
- **`MTLStepFunction`**, 4 of 9: `MTLStepFunctionPerVertex`, `MTLStepFunctionPerInstance`, `MTLStepFunctionPerPatch`, `MTLStepFunctionPerPatchControlPoint`
- **`MTLFunctionOptions`**, 3 of 5: `MTLFunctionOptionCompileToBinary`, `MTLFunctionOptionFailOnBinaryArchiveMiss`, `MTLFunctionOptionPipelineIndependent`
- **`MTLReadWriteTextureTier`**, 3 of 3: `MTLReadWriteTextureTierNone`, `MTLReadWriteTextureTier1`, `MTLReadWriteTextureTier2`
- **`MTLTextureUsage`**, 3 of 9: `MTLTextureUsageUnknown`, `MTLTextureUsageNoConcurrentAccess`, `MTLTextureUsageVideo`
- **`MTLArgumentBuffersTier`**, 2 of 2: `MTLArgumentBuffersTier1`, `MTLArgumentBuffersTier2`
- **`MTLBarrierScope`**, 2 of 3: `MTLBarrierScopeBuffers`, `MTLBarrierScopeRenderTargets`
- **`MTLDataType`**, 2 of 97: `MTLDataTypeNone`, `MTLDataTypeTensor`
- **`MTLFunctionOptions`**, 2 of 5: `MTLFunctionOptionFailOnBinaryArchiveMiss`, `MTLFunctionOptionPipelineIndependent`
- **`MTLIndirectCommandType`**, 2 of 8: `MTLIndirectCommandTypeDrawPatches`, `MTLIndirectCommandTypeDrawIndexedPatches`
- **`MTLPipelineOption`**, 2 of 4: `MTLPipelineOptionBufferTypeInfo`, `MTLPipelineOptionFailOnBinaryArchiveMiss`
- **`MTLPrimitiveTopologyClass`**, 2 of 4: `MTLPrimitiveTopologyClassPoint`, `MTLPrimitiveTopologyClassLine`
- **`MTLAttributeFormat`**, 1 of 54: `MTLAttributeFormatInvalid`
- **`MTLColorWriteMask`**, 1 of 7: `MTLColorWriteMaskUnspecialized`
@@ -283,7 +283,7 @@ And the values only the suite's shared sources name, which some case reaches and
- **`MTLHazardTrackingMode`**: `MTLHazardTrackingModeUntracked`, `MTLHazardTrackingModeTracked`
- **`MTLHeapType`**: `MTLHeapTypeSparse`
- **`MTLIndirectCommandType`**: `MTLIndirectCommandTypeDrawMeshThreads`
- **`MTLPipelineOption`**: `MTLPipelineOptionNone`, `MTLPipelineOptionArgumentInfo`
- **`MTLPipelineOption`**: `MTLPipelineOptionArgumentInfo`
- **`MTLPurgeableState`**: `MTLPurgeableStateNonVolatile`, `MTLPurgeableStateVolatile`, `MTLPurgeableStateEmpty`
- **`MTLSparseTextureRegionAlignmentMode`**: `MTLSparseTextureRegionAlignmentModeOutward`, `MTLSparseTextureRegionAlignmentModeInward`
- **`MTLStorageMode`**: `MTLStorageModeShared`, `MTLStorageModeManaged`, `MTLStorageModePrivate`
@@ -309,27 +309,26 @@ Every container with an implemented item, by how much of it the suite reaches. *
| `MTLRenderCommandEncoder` | 119 | 0 | 69 | 50 | `blend_interactions`, `blend_sweeps`, `blit_indirect_commands`, `buffer_depth_samples`… |
| `MTLArgument` | 17 | 0 | 0 | 17 | |
| the header's free functions | 12 | 0 | 0 | 12 | |
| `MTLDevice` | 63 | 2 | 49 | 12 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLDevice` | 63 | 2 | 49 | 12 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`… |
| `MTLIndirectRenderCommand` | 23 | 0 | 13 | 10 | `indirect_commands`, `mesh_commands` |
| `MTLRasterizationRateLayerDescriptor` | 9 | 0 | 0 | 9 | |
| `MTLComputePipelineState` | 15 | 0 | 9 | 6 | `compute_threadgroups`, `pipeline_facts`, `pipeline_handlers`, `visible_tables` |
| `MTLComputeCommandEncoder` | 36 | 0 | 31 | 5 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLRenderPipelineState` | 15 | 0 | 11 | 4 | `pipeline_facts`, `pipeline_handlers`, `tile_threadgroups`, `visible_tables` |
| `MTLTextureDescriptor` | 19 | 0 | 15 | 4 | `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`… |
| `MTLTextureDescriptor` | 19 | 0 | 15 | 4 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`… |
| `MTLDepthStencilState` | 3 | 0 | 0 | 3 | |
| `MTLFence` | 3 | 0 | 0 | 3 | |
| `MTLLibrary` | 11 | 0 | 8 | 3 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLLibrary` | 11 | 0 | 8 | 3 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`… |
| `MTLRasterizationRateMapDescriptor` | 10 | 0 | 7 | 3 | `rate_map_sweeps`, `rate_maps` |
| `MTLRasterizationRateSampleArray` | 3 | 0 | 0 | 3 | |
| `MTLRenderPipelineReflection` | 9 | 0 | 6 | 3 | `fragment_imageblock_reflection`, `mesh_pipeline_reflection`, `pipeline_options`, `texture_accesses`… |
| `MTLBuffer` | 6 | 0 | 4 | 2 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLBuffer` | 6 | 0 | 4 | 2 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`… |
| `MTLFunctionReflection` | 3 | 1 | 0 | 2 | |
| `MTLSharedEventListener` | 2 | 0 | 0 | 2 | |
| `MTLArgumentEncoder` | 23 | 0 | 22 | 1 | `argument_encoders` |
| `MTLAttributeDescriptorArray` | 3 | 0 | 2 | 1 | `attribute_formats`, `attribute_strides`, `blit_indirect_commands`, `indirect_commands`… |
| `MTLBufferLayoutDescriptorArray` | 3 | 0 | 2 | 1 | `attribute_formats`, `attribute_strides`, `blit_indirect_commands`, `indirect_commands`… |
| `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` |
| `MTLFunction` | 12 | 0 | 11 | 1 | `argument_encoder_crossings`, `argument_encoders`, `function_facts`, `library_facts`… |
| `MTLFunctionConstantValues` | 5 | 0 | 4 | 1 | `function_facts`, `library_facts` |
| `MTLIndirectCommandBuffer` | 6 | 0 | 5 | 1 | `blit_indirect_commands`, `indirect_commands`, `mesh_commands` |
| `MTLIndirectComputeCommand` | 12 | 0 | 11 | 1 | `blit_indirect_commands`, `indirect_commands` |
@@ -344,8 +343,9 @@ Every container with an implemented item, by how much of it the suite reaches. *
| `MTLVertexAttributeDescriptorArray` | 3 | 0 | 2 | 1 | `blend_interactions`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… |
| `MTLVertexBufferLayoutDescriptorArray` | 3 | 0 | 2 | 1 | `blend_interactions`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… |
| `MTLVertexDescriptor` | 5 | 0 | 4 | 1 | `blend_interactions`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`… |
| `MTLAllocation` | 1 | 0 | 1 | 0 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLArgumentDescriptor` | 8 | 0 | 8 | 0 | `argument_encoders` |
| `MTLAllocation` | 1 | 0 | 1 | 0 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`… |
| `MTLArgumentDescriptor` | 8 | 0 | 8 | 0 | `argument_encoder_crossings`, `argument_encoders` |
| `MTLArgumentEncoder` | 23 | 0 | 23 | 0 | `argument_encoder_crossings`, `argument_encoders` |
| `MTLArrayType` | 9 | 0 | 9 | 0 | `fragment_imageblock_reflection`, `function_bindings`, `mesh_pipeline_reflection`, `pipeline_option_reflection`… |
| `MTLAttribute` | 7 | 0 | 7 | 0 | `function_facts`, `library_facts` |
| `MTLAttributeDescriptor` | 4 | 0 | 4 | 0 | `attribute_formats`, `attribute_strides`, `blit_indirect_commands`, `indirect_commands`… |
@@ -383,15 +383,15 @@ Every container with an implemented item, by how much of it the suite reaches. *
| `MTLRenderPipelineColorAttachmentDescriptor` | 10 | 0 | 10 | 0 | `binary_archives`, `blend_interactions`, `blend_sweeps`, `color_write_masks`… |
| `MTLRenderPipelineDescriptor` | 35 | 0 | 35 | 0 | `binary_archives`, `blend_interactions`, `blend_sweeps`, `color_write_masks`… |
| `MTLRenderPipelineFunctionsDescriptor` | 4 | 0 | 4 | 0 | `pipeline_functions` |
| `MTLResource` | 12 | 0 | 12 | 0 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… |
| `MTLResource` | 12 | 0 | 12 | 0 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`… |
| `MTLResourceStateCommandEncoder` | 7 | 0 | 7 | 0 | `sparse_mappings` |
| `MTLSamplerDescriptor` | 16 | 0 | 16 | 0 | `argument_encoders`, `border_swizzles`, `chroma_pairs`, `compute_encoder_commands`… |
| `MTLSamplerDescriptor` | 16 | 0 | 16 | 0 | `argument_encoder_crossings`, `argument_encoders`, `border_swizzles`, `chroma_pairs`… |
| `MTLSharedEventHandle` | 2 | 0 | 2 | 0 | `shared_events` |
| `MTLSharedTextureHandle` | 2 | 0 | 2 | 0 | `texture_views` |
| `MTLStencilDescriptor` | 7 | 0 | 7 | 0 | `depth_resolve_pairs`, `depth_stencil_space`, `render_depth_stencil_state`, `shader_stencil`… |
| `MTLStructMember` | 9 | 0 | 9 | 0 | `fragment_imageblock_reflection`, `function_bindings`, `mesh_pipeline_reflection`, `pipeline_option_reflection`… |
| `MTLStructType` | 3 | 0 | 3 | 0 | `fragment_imageblock_reflection`, `function_bindings`, `mesh_pipeline_reflection`, `pipeline_option_reflection`… |
| `MTLTexture` | 29 | 0 | 29 | 0 | `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`… |
| `MTLTexture` | 29 | 0 | 29 | 0 | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`… |
| `MTLTextureBinding` | 5 | 0 | 5 | 0 | `fragment_imageblock_reflection`, `function_bindings`, `mesh_pipeline_reflection`, `pipeline_option_reflection`… |
| `MTLTextureReferenceType` | 5 | 0 | 5 | 0 | `fragment_imageblock_reflection`, `function_bindings`, `mesh_pipeline_reflection`, `pipeline_option_reflection`… |
| `MTLTextureViewDescriptor` | 6 | 0 | 6 | 0 | `texture_views` |
@@ -428,12 +428,12 @@ A container is one Objective-C type; the SDK header it sits in is the family of
| `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 |
| `MTLPipeline.h` | 5 | 4 | 1 |
| `MTLRenderPass.h` | 41 | 40 | 1 |
| `MTLSampler.h` | 19 | 18 | 1 |
| `MTLAllocation.h` | 1 | 1 | 0 |
| `MTLArgumentEncoder.h` | 23 | 23 | 0 |
| `MTLBinaryArchive.h` | 9 | 9 | 0 |
| `MTLBlitCommandEncoder.h` | 22 | 22 | 0 |
| `MTLCommandBuffer.h` | 21 | 21 | 0 |
@@ -471,13 +471,13 @@ An implemented container no case's Metal leg touches. These are the families of
| | |
|---|---|
| case modules | 134 |
| committed recordings | 1039 |
| case modules | 135 |
| committed recordings | 1044 |
| recorded runs behind a case, median | 3 |
| recorded runs, least and most | 1 and 30 |
| cases whose recording holds more than one outcome | 0 |
| cases running a committed shader fixture | 639 |
| cases whose Metal answer is `metal_run` | 955 |
| cases running a committed shader fixture | 644 |
| cases whose Metal answer is `metal_run` | 960 |
| cases whose Metal answer is `carried` | 80 |
| cases whose Metal answer is `never_returned` | 4 |
| modules that loosen a measured value | 11 |
@@ -486,14 +486,14 @@ An implemented container no case's Metal leg touches. These are the families of
| loosenings used | `Unchecked`, `Absolute`, `Ulps` |
| justifications named | `Degradation`, `AcceptedDifference` |
| modules forbidding a re-record | 8 |
| `Side` methods (the suite's whole device vocabulary) | 121 |
| `Side` methods the Metal leg reaches an SDK item through | 116 |
| `Side` methods (the suite's whole device vocabulary) | 122 |
| `Side` methods the Metal leg reaches an SDK item through | 117 |
| SDK items a case's Metal leg reaches, median | 59 |
| the same, least and most | 0 and 189 |
| Metal call sites in the leg | 1636 |
| distinct selectors the leg sends | 631 |
| of those, resolved to an item of the coverage map | 627 |
| oracles the recordings name | `apple-m3-max` ×1039 |
| Metal call sites in the leg | 1637 |
| distinct selectors the leg sends | 632 |
| of those, resolved to an item of the coverage map | 628 |
| oracles the recordings name | `apple-m3-max` ×1044 |
## By family
@@ -501,6 +501,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many
| family | cases | Metal ran | compared | items reached |
|---|---|---|---|---|
| `argument_encoder_crossings` | 4 | 4 | every field | 57 |
| `argument_encoders` | 5 | 5 | every field | 83 |
| `astc_textures` | 42 | 42 | 1 tolerance(s): `Degradation` | 42 |
| `attribute_formats` | 2 | 2 | every field | 47 |
@@ -566,7 +567,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many
| `indirect_private_types` | 1 | 0 | every field | 0 |
| `int_attributes` | 1 | 1 | every field | 98 |
| `level_sizes` | 2 | 2 | every field | 42 |
| `library_facts` | 5 | 5 | every field | 46 |
| `library_facts` | 6 | 6 | 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 |
@@ -661,7 +662,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLAllocation` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 830 |
| `MTLAllocation` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 834 |
### `MTLArgument`
@@ -689,40 +690,40 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLArgumentDescriptor` | yes | `argument_encoders` | 5 |
| `argumentDescriptor` | yes | `argument_encoders` | 5 |
| `dataType` | yes | `argument_encoders` | 5 |
| `index` | yes | `argument_encoders` | 5 |
| `arrayLength` | yes | `argument_encoders` | 5 |
| `access` | yes | `argument_encoders` | 5 |
| `textureType` | yes | `argument_encoders` | 5 |
| `constantBlockAlignment` | yes | `argument_encoders` | 5 |
| `MTLArgumentDescriptor` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `argumentDescriptor` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `dataType` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `index` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `arrayLength` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `access` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `textureType` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `constantBlockAlignment` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
### `MTLArgumentEncoder`
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLArgumentEncoder` | yes | `argument_encoders` | 5 |
| `device` | yes | `argument_encoders` | 5 |
| `label` | yes | `argument_encoders` | 5 |
| `encodedLength` | yes | `argument_encoders` | 5 |
| `alignment` | yes | `argument_encoders` | 5 |
| `setArgumentBuffer:offset:` | yes | `argument_encoders` | 5 |
| `setArgumentBuffer:startOffset:arrayElement:` | yes | `argument_encoders` | 5 |
| `setBuffer:offset:atIndex:` | yes | `argument_encoders` | 5 |
| `MTLArgumentEncoder` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `device` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `label` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `encodedLength` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `alignment` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setArgumentBuffer:offset:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setArgumentBuffer:startOffset:arrayElement:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setBuffer:offset:atIndex:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setBuffers:offsets:withRange:` | yes | `argument_encoders` | 5 |
| `setTexture:atIndex:` | yes | `argument_encoders` | 5 |
| `setTexture:atIndex:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setTextures:withRange:` | yes | `argument_encoders` | 5 |
| `setSamplerState:atIndex:` | yes | `argument_encoders` | 5 |
| `setSamplerState:atIndex:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setSamplerStates:withRange:` | yes | `argument_encoders` | 5 |
| `constantDataAtIndex:` | yes | `argument_encoders` | 5 |
| `constantDataAtIndex:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `setRenderPipelineState:atIndex:` | yes | `argument_encoders` | 5 |
| `setRenderPipelineStates:withRange:` | yes | `argument_encoders` | 5 |
| `setComputePipelineState:atIndex:` | yes | `argument_encoders` | 5 |
| `setComputePipelineStates:withRange:` | yes | `argument_encoders` | 5 |
| `setIndirectCommandBuffer:atIndex:` | yes | `argument_encoders` | 5 |
| `setIndirectCommandBuffers:withRange:` | yes | `argument_encoders` | 5 |
| `newArgumentEncoderForBufferAtIndex:` | no | — | — |
| `newArgumentEncoderForBufferAtIndex:` | yes | `argument_encoder_crossings` | 4 |
| `setVisibleFunctionTable:atIndex:` | yes | `argument_encoders` | 5 |
| `setVisibleFunctionTables:withRange:` | yes | `argument_encoders` | 5 |
@@ -744,13 +745,13 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLAttribute` | yes | `function_facts`, `library_facts` | 20 |
| `name` | yes | `function_facts`, `library_facts` | 20 |
| `attributeIndex` | yes | `function_facts`, `library_facts` | 20 |
| `attributeType` | yes | `function_facts`, `library_facts` | 20 |
| `active` | yes | `function_facts`, `library_facts` | 20 |
| `patchData` | yes | `function_facts`, `library_facts` | 20 |
| `patchControlPointData` | yes | `function_facts`, `library_facts` | 20 |
| `MTLAttribute` | yes | `function_facts`, `library_facts` | 21 |
| `name` | yes | `function_facts`, `library_facts` | 21 |
| `attributeIndex` | yes | `function_facts`, `library_facts` | 21 |
| `attributeType` | yes | `function_facts`, `library_facts` | 21 |
| `active` | yes | `function_facts`, `library_facts` | 21 |
| `patchData` | yes | `function_facts`, `library_facts` | 21 |
| `patchControlPointData` | yes | `function_facts`, `library_facts` | 21 |
### `MTLAttributeDescriptor`
@@ -831,9 +832,9 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLBuffer` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 704 |
| `length` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 651 |
| `contents` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 695 |
| `MTLBuffer` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 708 |
| `length` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 655 |
| `contents` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 699 |
| `didModifyRange:` | no | — | — |
| `newTextureWithDescriptor:offset:bytesPerRow:` | yes | `astc_textures`, `blend_interactions`, `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`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `srgb_fetch`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 511 |
| `gpuAddress` | no | — | — |
@@ -1020,9 +1021,9 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLDevice` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `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`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `texture_views`, `textures`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 943 |
| `MTLDevice` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `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`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `texture_views`, `textures`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 948 |
| `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`, `visible_tables` | 98 |
| `registryID` | yes | `argument_encoder_crossings`, `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`, `visible_tables` | 103 |
| `maxThreadsPerThreadgroup` | no | — | — |
| `hasUnifiedMemory` | no | — | — |
| `depth24Stencil8PixelFormatSupported` | no | — | — |
@@ -1035,14 +1036,14 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| `heapTextureSizeAndAlignWithDescriptor:` | yes | `compressed_moves`, `format_footprints`, `heap_metal_sizes`, `two_plane_copies`, `ycbcr_textures` | 30 |
| `heapBufferSizeAndAlignWithLength:options:` | yes | `device_queries` | 5 |
| `newHeapWithDescriptor:` | yes | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_heap_residency`, `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` | 208 |
| `newBufferWithLength:options:` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 700 |
| `newBufferWithLength:options:` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 704 |
| `newBufferWithBytes:length:options:` | yes | `buffer_depth_samples` | 5 |
| `newBufferWithBytesNoCopy:length:options:deallocator:` | yes | `host_detach`, `host_page_writes` | 5 |
| `newDepthStencilStateWithDescriptor:` | yes | `depth_resolve_pairs`, `depth_stencil_space`, `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `visibility` | 27 |
| `newTextureWithDescriptor:` | yes | `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `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_textures` | 717 |
| `newTextureWithDescriptor:` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `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_textures` | 721 |
| `newSharedTextureWithDescriptor:` | yes | `texture_views` | 4 |
| `newSharedTextureWithHandle:` | yes | `texture_views` | 4 |
| `newSamplerStateWithDescriptor:` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `newSamplerStateWithDescriptor:` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `newLibraryWithData:error:` | yes | `dynamic_libraries` | 3 |
| `newRenderPipelineStateWithDescriptor:error:` | yes | `blend_interactions`, `blend_sweeps`, `color_write_masks`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `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_facts`, `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`, `tessellation_sweeps`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points` | 227 |
| `newRenderPipelineStateWithDescriptor:options:reflection:error:` | yes | `binary_archives`, `fragment_imageblock_reflection`, `pipeline_handlers`, `pipeline_options`, `texture_accesses` | 53 |
@@ -1064,7 +1065,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| `newRenderPipelineStateWithMeshDescriptor:options:completionHandler:` | yes | `pipeline_handlers` | 24 |
| `maxThreadgroupMemoryLength` | no | — | — |
| `programmableSamplePositionsSupported` | no | — | — |
| `newArgumentEncoderWithArguments:` | yes | `argument_encoders` | 5 |
| `newArgumentEncoderWithArguments:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `supportsRasterizationRateMapWithLayerCount:` | yes | `device_queries` | 5 |
| `newRasterizationRateMapWithDescriptor:` | yes | `rate_map_sweeps`, `rate_maps` | 10 |
| `newIndirectCommandBufferWithDescriptor:maxCommandCount:options:` | yes | `blit_indirect_commands`, `indirect_commands`, `mesh_commands` | 11 |
@@ -1114,48 +1115,48 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLFunction` | yes | `argument_encoders`, `function_facts`, `library_facts`, `tile_pipeline_descriptors` | 28 |
| `device` | yes | `function_facts`, `library_facts` | 20 |
| `functionType` | yes | `function_facts`, `library_facts` | 20 |
| `patchType` | yes | `function_facts`, `library_facts` | 20 |
| `patchControlPointCount` | yes | `function_facts`, `library_facts` | 20 |
| `vertexAttributes` | yes | `function_facts`, `library_facts` | 20 |
| `stageInputAttributes` | yes | `function_facts`, `library_facts` | 20 |
| `name` | yes | `function_facts`, `library_facts`, `tile_pipeline_descriptors` | 23 |
| `functionConstantsDictionary` | yes | `function_facts`, `library_facts` | 20 |
| `newArgumentEncoderWithBufferIndex:` | yes | `argument_encoders` | 5 |
| `MTLFunction` | yes | `argument_encoder_crossings`, `argument_encoders`, `function_facts`, `library_facts`, `tile_pipeline_descriptors` | 33 |
| `device` | yes | `function_facts`, `library_facts` | 21 |
| `functionType` | yes | `function_facts`, `library_facts` | 21 |
| `patchType` | yes | `function_facts`, `library_facts` | 21 |
| `patchControlPointCount` | yes | `function_facts`, `library_facts` | 21 |
| `vertexAttributes` | yes | `function_facts`, `library_facts` | 21 |
| `stageInputAttributes` | yes | `function_facts`, `library_facts` | 21 |
| `name` | yes | `function_facts`, `library_facts`, `tile_pipeline_descriptors` | 24 |
| `functionConstantsDictionary` | yes | `function_facts`, `library_facts` | 21 |
| `newArgumentEncoderWithBufferIndex:` | yes | `argument_encoder_crossings`, `argument_encoders` | 9 |
| `newArgumentEncoderWithBufferIndex:reflection:` | no | — | — |
| `options` | yes | `function_facts`, `library_facts` | 20 |
| `options` | yes | `function_facts`, `library_facts` | 21 |
### `MTLFunctionConstant`
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLFunctionConstant` | yes | `function_facts`, `library_facts` | 20 |
| `name` | yes | `function_facts`, `library_facts` | 20 |
| `type` | yes | `function_facts`, `library_facts` | 20 |
| `index` | yes | `function_facts`, `library_facts` | 20 |
| `required` | yes | `function_facts`, `library_facts` | 20 |
| `MTLFunctionConstant` | yes | `function_facts`, `library_facts` | 21 |
| `name` | yes | `function_facts`, `library_facts` | 21 |
| `type` | yes | `function_facts`, `library_facts` | 21 |
| `index` | yes | `function_facts`, `library_facts` | 21 |
| `required` | yes | `function_facts`, `library_facts` | 21 |
### `MTLFunctionConstantValues`
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLFunctionConstantValues` | yes | `function_facts`, `library_facts` | 20 |
| `setConstantValue:type:atIndex:` | yes | `function_facts`, `library_facts` | 20 |
| `setConstantValues:type:withRange:` | yes | `function_facts`, `library_facts` | 20 |
| `setConstantValue:type:withName:` | yes | `function_facts`, `library_facts` | 20 |
| `MTLFunctionConstantValues` | yes | `function_facts`, `library_facts` | 21 |
| `setConstantValue:type:atIndex:` | yes | `function_facts`, `library_facts` | 21 |
| `setConstantValues:type:withRange:` | yes | `function_facts`, `library_facts` | 21 |
| `setConstantValue:type:withName:` | yes | `function_facts`, `library_facts` | 21 |
| `reset` | no | — | — |
### `MTLFunctionDescriptor`
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLFunctionDescriptor` | yes | `library_facts` | 5 |
| `functionDescriptor` | yes | `library_facts` | 5 |
| `name` | yes | `library_facts` | 5 |
| `constantValues` | yes | `library_facts` | 5 |
| `options` | yes | `library_facts` | 5 |
| `MTLFunctionDescriptor` | yes | `library_facts` | 6 |
| `functionDescriptor` | yes | `library_facts` | 6 |
| `name` | yes | `library_facts` | 6 |
| `constantValues` | yes | `library_facts` | 6 |
| `options` | yes | `library_facts` | 6 |
### `MTLFunctionHandle`
@@ -1292,17 +1293,17 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLLibrary` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 792 |
| `device` | yes | `dynamic_libraries`, `library_facts` | 8 |
| `newFunctionWithName:` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 784 |
| `MTLLibrary` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 797 |
| `device` | yes | `dynamic_libraries`, `library_facts` | 9 |
| `newFunctionWithName:` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 788 |
| `newFunctionWithName:constantValues:error:` | yes | `function_facts` | 15 |
| `newFunctionWithName:constantValues:completionHandler:` | no | — | — |
| `reflectionForFunctionWithName:` | no | — | — |
| `newFunctionWithDescriptor:completionHandler:` | no | — | — |
| `newFunctionWithDescriptor:error:` | yes | `library_facts` | 5 |
| `functionNames` | yes | `dynamic_libraries`, `library_facts` | 8 |
| `type` | yes | `dynamic_libraries`, `library_facts` | 8 |
| `installName` | yes | `dynamic_libraries`, `library_facts` | 8 |
| `newFunctionWithDescriptor:error:` | yes | `library_facts` | 6 |
| `functionNames` | yes | `dynamic_libraries`, `library_facts` | 9 |
| `type` | yes | `dynamic_libraries`, `library_facts` | 9 |
| `installName` | yes | `dynamic_libraries`, `library_facts` | 9 |
### `MTLLinkedFunctions`
@@ -1739,7 +1740,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLResource` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 800 |
| `MTLResource` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 804 |
| `label` | yes | `heap_facts`, `resource_facts` | 9 |
| `device` | yes | `heap_facts`, `resource_facts`, `visible_tables` | 27 |
| `cpuCacheMode` | yes | `buffer_textures`, `heap_facts`, `resource_facts` | 11 |
@@ -1768,22 +1769,22 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `maxAnisotropy` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `sAddressMode` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `tAddressMode` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `rAddressMode` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `borderColor` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `reductionMode` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `normalizedCoordinates` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `lodMinClamp` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `lodMaxClamp` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `lodAverage` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `compareFunction` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `supportArgumentBuffers` | 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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 134 |
| `MTLSamplerDescriptor` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `minFilter` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `magFilter` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `mipFilter` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `maxAnisotropy` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `sAddressMode` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `tAddressMode` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `rAddressMode` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `borderColor` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `reductionMode` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `normalizedCoordinates` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `lodMinClamp` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `lodMaxClamp` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `lodAverage` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `compareFunction` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
| `supportArgumentBuffers` | yes | `argument_encoder_crossings`, `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_crossings`, `sampler_filtering`, `two_plane_samples`, `ycbcr_minify` | 138 |
### `MTLSamplerState`
@@ -1874,7 +1875,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLTexture` | yes | `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points` | 740 |
| `MTLTexture` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points` | 744 |
| `parentTexture` | yes | `texture_views` | 4 |
| `parentRelativeLevel` | yes | `texture_views` | 4 |
| `parentRelativeSlice` | yes | `texture_views` | 4 |
@@ -1896,7 +1897,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| `getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:` | yes | `blit_encoder_commands`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `pvrtc_cpu_order`, `two_plane_copies` | 30 |
| `replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:` | 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_crossings`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 306 |
| `getBytes:bytesPerRow:fromRegion:mipmapLevel:` | yes | `color_write_masks`, `extended_range_planes`, `format_footprints`, `half_storage_writes`, `half_write_nans`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `norm_storage_writes`, `rgb10a2_srgb`, `shared_exponent_storage`, `snorm_tile_store`, `swizzled_storage`, `textures`, `tile_threadgroups` | 155 |
| `replaceRegion:mipmapLevel:withBytes:bytesPerRow:` | yes | `argument_encoders`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_planes`, `extended_range_two_planes`, `fetch_ordered`, `format_copies`, `format_footprints`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sampler_crossings`, `sampler_filtering`, `snorm_tile_store`, `srgb_fetch`, `swizzled_storage`, `texture_fills`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples` | 493 |
| `replaceRegion:mipmapLevel:withBytes:bytesPerRow:` | yes | `argument_encoder_crossings`, `argument_encoders`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_planes`, `extended_range_two_planes`, `fetch_ordered`, `format_copies`, `format_footprints`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `nearest_positions`, `pixel_downscales`, `pixel_samplers`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sampler_crossings`, `sampler_filtering`, `snorm_tile_store`, `srgb_fetch`, `swizzled_storage`, `texture_fills`, `textures`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples` | 497 |
| `newTextureViewWithPixelFormat:` | yes | `texture_views` | 4 |
| `newTextureViewWithPixelFormat:textureType:levels:slices:` | yes | `compressed_moves`, `compressed_views`, `texture_views` | 32 |
| `newSharedTextureHandle` | yes | `texture_views` | 4 |
@@ -1918,8 +1919,8 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLTextureDescriptor` | yes | `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 734 |
| `texture2DDescriptorWithPixelFormat:width:height:mipmapped:` | yes | `argument_encoders`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 588 |
| `MTLTextureDescriptor` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 738 |
| `texture2DDescriptorWithPixelFormat:width:height:mipmapped:` | yes | `argument_encoder_crossings`, `argument_encoders`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 592 |
| `textureCubeDescriptorWithPixelFormat:size:mipmapped:` | no | — | — |
| `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_interactions`, `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`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `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_crossings`, `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` | 539 |
@@ -1932,9 +1933,9 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| `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`, `format_footprints`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `resource_facts`, `sampler_crossings`, `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` | 350 |
| `resourceOptions` | no | — | — |
| `cpuCacheMode` | no | — | — |
| `storageMode` | yes | `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 734 |
| `storageMode` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 738 |
| `hazardTrackingMode` | no | — | — |
| `usage` | yes | `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 734 |
| `usage` | yes | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `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_resolve_pairs`, `depth_stencil_space`, `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`, `format_footprints`, `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_crossings`, `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` | 738 |
| `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_crossings`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 320 |
| `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_crossings`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 306 |
@@ -2013,13 +2014,13 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
| item | exercised | families | cases Metal ran |
|---|---|---|---|
| `MTLVertexAttribute` | yes | `function_facts`, `library_facts` | 20 |
| `name` | yes | `function_facts`, `library_facts` | 20 |
| `attributeIndex` | yes | `function_facts`, `library_facts` | 20 |
| `attributeType` | yes | `function_facts`, `library_facts` | 20 |
| `active` | yes | `function_facts`, `library_facts` | 20 |
| `patchData` | yes | `function_facts`, `library_facts` | 20 |
| `patchControlPointData` | yes | `function_facts`, `library_facts` | 20 |
| `MTLVertexAttribute` | yes | `function_facts`, `library_facts` | 21 |
| `name` | yes | `function_facts`, `library_facts` | 21 |
| `attributeIndex` | yes | `function_facts`, `library_facts` | 21 |
| `attributeType` | yes | `function_facts`, `library_facts` | 21 |
| `active` | yes | `function_facts`, `library_facts` | 21 |
| `patchData` | yes | `function_facts`, `library_facts` | 21 |
| `patchControlPointData` | yes | `function_facts`, `library_facts` | 21 |
### `MTLVertexAttributeDescriptor`
@@ -2092,7 +2093,7 @@ An item the suite's Metal leg calls whose coverage-map status is not implemented
| `MTL4LibraryDescriptor` `source` | missing | Metal 4's command model (`MTL4CommandQueue`, `MTL4CommandBuffer`, argument tables, the compiler, `RuntimeGap::Metal4Api`) | `binary_archives`, `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `dynamic_libraries`, `format_copies`, `fresh_contents`, `pvrtc_cpu_order`, `pvrtc_rows`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` |
| `MTL4LibraryFunctionDescriptor` `library` | missing | Metal 4's command model (`MTL4CommandQueue`, `MTL4CommandBuffer`, argument tables, the compiler, `RuntimeGap::Metal4Api`) | `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`, `pvrtc_cpu_order`, `pvrtc_rows`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` |
| `MTLBinaryArchive` `addMeshRenderPipelineFunctionsWithDescriptor:error:` | missing | a mesh pipeline's functions in a binary archive | `binary_archives` |
| `MTLDevice` `newLibraryWithURL:error:` | missing | a metallib read from a file URL | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` |
| `MTLDevice` `newLibraryWithURL:error:` | missing | a metallib read from a file URL | `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_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_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `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`, `fragment_imageblock_reflection`, `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`, `mesh_pipeline_reflection`, `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_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `srgb_fetch`, `stage_in_regions`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_fills`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` |
## Called, attributed to no family
+1 -1
View File
@@ -14,7 +14,7 @@ Columns:
- `none`: no public API path: malformed or non-Metal input, Apple-private calls, or a cap no valid program of ordinary size meets;
- `?`: not assessed yet.
Generated at `716028d72`.
Generated at `d9b866d0b`.
## Totals