Metal macOS 13.0 22A5286g to 22A5295f API Differences

MTLArgument.h
Removed MTLArgumentTypeObjectPayload
Removed MTLArgument.objectPayloadAlignment
Removed MTLArgument.objectPayloadDataSize
MTLArgumentEncoder.h
Modified MTLArgumentEncoder
Availability
FromDeprecated
ToAvailable

MTLIOCompressor.h
Removed kMTLIOCompressionContextDefaultChunkSize
Added MTLIOCompressionContext
Added MTLIOCompressionContextDefaultChunkSize()
Modified MTLIOCreateCompressionContext()
Declaration
Fromvoid *MTLIOCreateCompressionContext(const char *path, MTLIOCompressionMethod type, size_t chunkSize)
ToMTLIOCompressionContext _Nullable MTLIOCreateCompressionContext(const char * _Nonnull path, MTLIOCompressionMethod type, size_t chunkSize)

Modified MTLIOCompressionContextAppendData()
Declaration
Fromvoid MTLIOCompressionContextAppendData(void *context, const void *data, size_t size)
Tovoid MTLIOCompressionContextAppendData(MTLIOCompressionContext _Nonnull context, const void * _Nonnull data, size_t size)

Modified MTLIOFlushAndDestroyCompressionContext()
Declaration
FromMTLIOCompressionStatus MTLIOFlushAndDestroyCompressionContext(void *context)
ToMTLIOCompressionStatus MTLIOFlushAndDestroyCompressionContext(MTLIOCompressionContext _Nonnull context)

MTLLibrary.h
Removed MTLLanguageVersion1_0
MTLRenderPipeline.h
Removed MTLRenderPipelineReflection.objectArguments
Removed MTLRenderPipelineReflection.meshArguments
Modified MTLRenderPipelineReflection.tileArguments
Availability
FromAvailable
ToDeprecated

MTLResourceStateCommandEncoder.h
Added -[MTLResourceStateCommandEncoder moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:]
MTLTypes.h
Removed MTLGPUHandle