# The members an MTL* protocol carries on some macOS releases and not on others: one line per
# member, "Protocol selector required|optional releases", the releases those that carry it. Where
# the Mac's Metal (the one tests/protocol_members_tests.mm runs on) lacks the member, the test adds
# it to every class of ours that adopts the protocol or its public counterpart, and the register
# classifies it as any other, so a member a release's frameworks may send stays answered after the
# Mac's Metal drops it, and the register's lines for a newer release's members stand on a Mac of
# an older one. Where the Mac runs a release a line names (its major version), its protocol has
# the member, which is walked already.
#
# Made with tools/protocol_dump.m, run in each guest and on the Mac: for each protocol a class of
# ours adopts, and its SPI counterpart, the members a guest's protocol has that the Mac's
# protocol, with the protocols it adopts, lacks. Measured: macOS 11.7.11, 12.7.6, 13.7.8,
# 14.8.9, 15.8.2 and 26.7.2 against macOS 27.0.1. A line whose member the Mac's protocol has fails, as it is walked
# already. MTLDynamicLibrary and MTLDynamicLibrarySPI, which a class of ours adopted after those
# dumps, are measured on macOS 26.7.1 alone (the check's run there, with the AMD 5300M and the
# Intel 630, which walks that Metal's protocols), so their lines name that release, and the guest
# releases' members of them are not yet dumped. The lines naming 27.0.1 are the members of the
# protocols our classes adopt that macOS 27.0.1's Metal carries and 26.7.1's lacks, with the
# protocols each adopts (the tool on the M3, macOS 27.0.1, and on the 2019 MacBook, 26.7.1:
# m3-max-83120, m3-max-83119), so the register, made on macOS 27, stands on a Mac of 26.

MTLArgumentEncoderSPI setFunctionPointer:atIndex: required 11.7.11
MTLArgumentEncoderSPI setFunctionPointers:withRange: required 11.7.11
MTLBinaryArchiveSPI addBinaryEntry:forKey: required 11.7.11 12.7.6 13.7.8
MTLBinaryArchiveSPI getBinaryDataForKey: required 11.7.11 12.7.6 13.7.8
MTLComputePipelineStateSPI functionPointerHandleWithFunction: required 11.7.11
MTLComputePipelineStateSPI functionPointerHandlesWithFunctions:range: required 11.7.11
MTLDeviceSPI isBinaryFunctionPointersSupported required 11.7.11
MTLDeviceSPI requiresIABEmulation required 11.7.11
MTLDeviceSPI setResourcesPurgeableState:newState:oldState:count: required 11.7.11 12.7.6
MTLDeviceSPI supportsBinaryFunctionPointers required 11.7.11
MTLBinaryArchiveSPI addArchiveEntry:forKey: required 12.7.6 13.7.8
MTLBinaryArchiveSPI getArchiveDataForKey: required 12.7.6 13.7.8
MTLBinaryArchiveSPI getArchiveIDWithError: required 13.7.8
MTLBinaryArchiveSPI initMetalScriptWithArchive: required 13.7.8 14.8.9
MTLBinaryArchiveSPI newPipelineDescriptorAtIndex:pipelineType:error: required 13.7.8 14.8.9
MTLBinaryArchiveSPI recompilablePipelineCount required 13.7.8 14.8.9
MTLBinaryArchiveSPI recompileToArchive:error: required 14.8.9
MTLIndirectRenderCommandSPI drawMeshArguments required 13.7.8
MTLIndirectRenderCommandSPI getMeshBufferAtIndex: required 13.7.8
MTLIndirectRenderCommandSPI getObjectBufferAtIndex: required 13.7.8
MTLComputePipelineStateSPI setGlobalConstantsBase: required 26.7.2
MTLComputePipelineStateSPI setGlobalConstantsSize: required 26.7.2
MTLRenderPipelineStateSPI setFragmentGlobalConstantsBase: required 26.7.2
MTLRenderPipelineStateSPI setFragmentGlobalConstantsSize: required 26.7.2
MTLRenderPipelineStateSPI setMeshGlobalConstantsBase: required 26.7.2
MTLRenderPipelineStateSPI setMeshGlobalConstantsSize: required 26.7.2
MTLRenderPipelineStateSPI setObjectGlobalConstantsBase: required 26.7.2
MTLRenderPipelineStateSPI setObjectGlobalConstantsSize: required 26.7.2
MTLRenderPipelineStateSPI setTileGlobalConstantsBase: required 26.7.2
MTLRenderPipelineStateSPI setTileGlobalConstantsSize: required 26.7.2
MTLRenderPipelineStateSPI setVertexGlobalConstantsBase: required 26.7.2
MTLRenderPipelineStateSPI setVertexGlobalConstantsSize: required 26.7.2
MTLDynamicLibrarySPI setGlobalConstantsBase: required 26.7.1
MTLDynamicLibrarySPI setGlobalConstantsSize: required 26.7.1
MTLBlitCommandEncoder copyFromTensor:sourceOrigin:sourceDimensions:sourcePlane:toTensor:destinationOrigin:destinationDimensions:destinationPlane: required 27.0.1
MTLCommandBufferSPI useInternalResidencySet: required 27.0.1
MTLCommandBufferSPI useInternalResidencySets:count: required 27.0.1
MTLComputePipelineState forwardProgressUsage required 27.0.1
MTLComputePipelineState recommendedPersistentThreadgroupsPerGridForThreadsPerThreadgroup: required 27.0.1
MTLDevice newTensorWithDescriptor:attachments:error: required 27.0.1
MTLDeviceSPI genericAddressSpaceDispatchInfo required 27.0.1
MTLDeviceSPI newSharedTextureWithHandle:withResourceIndex: required 27.0.1
MTLDeviceSPI originalDefaultCompilerProcessesCount required 27.0.1
MTLDeviceSPI originalThreadsPerCompilerProcess required 27.0.1
MTLDeviceSPI supportsMultiPlaneTensors required 27.0.1
MTLDeviceSPI supportsMXUNarrowTileSizes required 27.0.1
MTLDeviceSPI supportsPVRTC required 27.0.1
MTLDeviceSPI supportsPackUnpackSmallInteger required 27.0.1
MTLDeviceSPI supportsRGBTextureBuffers required 27.0.1
MTLDeviceSPI supportsSIMDGroupParallelForwardProgress required 27.0.1
MTLDeviceSPI supportsTextureMultifetch required 27.0.1
MTLDeviceSPI supportsTextureViewMinLOD required 27.0.1
MTLTexture minLOD required 27.0.1
MTLTextureSPI compressionMetadata required 27.0.1
