Skip to content

Metal macOS xcode14.0 beta3

Chris Hamons edited this page Jul 7, 2022 · 1 revision

#Metal.framework

diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h	2022-06-17 14:30:09.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h	2022-06-30 21:11:24.000000000 -0500
@@ -2,7 +2,6 @@
 //  MTLAccelerationStructureCommandEncoder.h
 //  Metal
 //
-//  Created by atatarinov on 12/3/19.
 //  Copyright © 2019 Apple, Inc. All rights reserved.
 
 
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h	2022-06-17 10:27:05.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h	2022-06-30 18:27:49.000000000 -0500
@@ -208,7 +208,6 @@
     MTLArgumentTypePrimitiveAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0)) = 25,
     MTLArgumentTypeInstanceAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0)) = 26,
     MTLArgumentTypeIntersectionFunctionTable API_AVAILABLE(macos(11.0), ios(14.0)) = 27,
-    MTLArgumentTypeObjectPayload API_AVAILABLE(macos(13.0), ios(16.0)) = 34,
 } API_DEPRECATED_WITH_REPLACEMENT("MTLBindingType", macos(10.11, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED));
 
 /*!
@@ -330,9 +329,6 @@
 @property (readonly) BOOL           isDepthTexture API_AVAILABLE(macos(10.12), ios(10.0)); // true for depth textures
 @property (readonly) NSUInteger     arrayLength API_AVAILABLE(macos(10.13), ios(10.0));
 
-// for object payload arguments
-@property (readonly) NSUInteger     objectPayloadAlignment;
-@property (readonly) NSUInteger     objectPayloadDataSize;
 @end
 
 MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h	2022-06-17 10:27:05.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h	2022-06-30 21:11:24.000000000 -0500
@@ -24,7 +24,7 @@
  * @protocol MTLArgumentEncoder
  * @discussion MTLArgumentEncoder encodes buffer, texture, sampler, and constant data into a buffer.
  */
-API_DEPRECATED("Use 'gpuAddress' or 'gpuHandle' instead", macos(10.13, API_TO_BE_DEPRECATED), ios(11.0, API_TO_BE_DEPRECATED))
+API_AVAILABLE(macos(10.13), ios(11.0))
 @protocol MTLArgumentEncoder <NSObject>
 
 /*!
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h	2022-06-17 10:27:03.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h	2022-06-30 18:27:48.000000000 -0500
@@ -564,7 +564,7 @@
  @abstract Query device for Barycentric coordinates support; deprecated, use supportsShaderBarycentricCoordinates
  @return BOOL value. If YES, the device barycentric coordinates
  */
-@property(readonly, getter=areBarycentricCoordsSupported) BOOL barycentricCoordsSupported API_DEPRECATED_WITH_REPLACEMENT("supportsShaderBarycentricCoordinates", macos(10.15, 13.0), ios(14.0, 16.0));
+@property(readonly, getter=areBarycentricCoordsSupported) BOOL barycentricCoordsSupported API_DEPRECATED_WITH_REPLACEMENT("supportsShaderBarycentricCoordinates", macos(10.15, 13.0), ios(14.0, 16.0)) API_UNAVAILABLE(tvos);
 
 /*!
  @property supportsShaderBarycentricCoordinates
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h	2022-06-17 14:30:10.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h	2022-06-30 21:11:25.000000000 -0500
@@ -49,7 +49,7 @@
             sourceHandleOffset:(NSUInteger)sourceHandleOffset;
 
 /*!
- @method loadBuffer:buffer:offset:size:sourceHandle:sourceHandleOffset
+ @method loadBuffer:offset:size:sourceHandle:sourceHandleOffset
  @abstract Encodes a command that loads from a handle
  and offset into a buffer and an offset.
  */
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h	2022-06-17 10:27:05.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h	2022-06-30 18:27:49.000000000 -0500
@@ -10,12 +10,14 @@
 
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 typedef NS_ENUM(NSInteger, MTLIOCompressionStatus) {
     MTLIOCompressionStatusComplete = 0,
     MTLIOCompressionStatusError = 1
 } API_AVAILABLE(macos(13.0), ios(16.0));
 
-MTL_EXTERN const size_t kMTLIOCompressionContextDefaultChunkSize;
+typedef void* MTLIOCompressionContext;
 
 /*
  These methods are expected to be used by offline tools that
@@ -23,22 +25,32 @@
  */
 
 /*
+ @function MTLIOCompressionContextDefaultChunkSize
+ @abstract The default chunk size to use for a compression context.
+ */
+MTL_EXTERN size_t MTLIOCompressionContextDefaultChunkSize(void);
+
+/*
  @function MTLIOCreateCompressionContext
  @abstract used to create a context that writes a stream of data to
  a path using a given codec and chunk size.
+ @discussion An invalid type will cause a nil to be returned. If path is
+ invalid or fails to open a nil will be returned and errno will be set.
  */
-MTL_EXTERN void* MTLIOCreateCompressionContext(const char* path, MTLIOCompressionMethod type, size_t chunkSize) API_AVAILABLE(macos(13.0), ios(16.0));
+MTL_EXTERN __nullable MTLIOCompressionContext MTLIOCreateCompressionContext(const char* path, MTLIOCompressionMethod type, size_t chunkSize) API_AVAILABLE(macos(13.0), ios(16.0));
 
 /*
  @function MTLIOCompressionContextAppendData
  @abstract append data to a compression context.
  */
-MTL_EXTERN void MTLIOCompressionContextAppendData(void* context, const void* data, size_t size) API_AVAILABLE(macos(13.0), ios(16.0));
+MTL_EXTERN void MTLIOCompressionContextAppendData(MTLIOCompressionContext context, const void* data, size_t size) API_AVAILABLE(macos(13.0), ios(16.0));
 
 /*
  @function MTLIOFlushAndDestroyCompressionContext
  @abstract close the compression context and write the pack file.
  */
-MTL_EXTERN MTLIOCompressionStatus MTLIOFlushAndDestroyCompressionContext(void* context) API_AVAILABLE(macos(13.0), ios(16.0));
+MTL_EXTERN MTLIOCompressionStatus MTLIOFlushAndDestroyCompressionContext(MTLIOCompressionContext context) API_AVAILABLE(macos(13.0), ios(16.0));
+
+NS_ASSUME_NONNULL_END
 
 
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h	2022-06-17 14:30:10.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h	2022-06-30 21:08:59.000000000 -0500
@@ -181,7 +181,7 @@
 @end
 
 typedef NS_ENUM(NSUInteger, MTLLanguageVersion) {
-    MTLLanguageVersion1_0 API_DEPRECATED("Use a newer language standard", ios(9.0, API_TO_BE_DEPRECATED)) = (1 << 16),
+    MTLLanguageVersion1_0 API_DEPRECATED("Use a newer language standard", ios(9.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, macCatalyst) = (1 << 16),
     MTLLanguageVersion1_1 API_AVAILABLE(macos(10.11), ios(9.0)) = (1 << 16) + 1,
     MTLLanguageVersion1_2 API_AVAILABLE(macos(10.12), ios(10.0)) = (1 << 16) + 2,
     MTLLanguageVersion2_0 API_AVAILABLE(macos(10.13), ios(11.0)) = (2 << 16),
@@ -280,7 +280,7 @@
  @property preserveInvariance
  @abstract If YES,  set the compiler to compile shaders to preserve invariance.  The default is false.
  */
-@property (readwrite, nonatomic) BOOL preserveInvariance API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
+@property (readwrite, nonatomic) BOOL preserveInvariance API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(14.0));
 
 /*!
  @property optimizationLevel
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h	2022-06-17 10:27:04.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h	2022-06-30 18:27:48.000000000 -0500
@@ -37,7 +37,7 @@
 * @property binaryFunctions
 * @abstract The array of functions compiled to binary to be linked.
 */
-@property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *binaryFunctions;
+@property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *binaryFunctions API_AVAILABLE(macos(11.0), ios(14.0));
 
 /*!
 * @property groups
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h	2022-06-17 14:30:09.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h	2022-06-30 21:08:57.000000000 -0500
@@ -138,9 +138,7 @@
 @property (nonnull, readonly) NSArray <id<MTLBinding>> *meshBindings API_AVAILABLE(macos(13.0), ios(16.0));
 @property (nullable, readonly) NSArray <MTLArgument *> *vertexArguments API_DEPRECATED_WITH_REPLACEMENT("vertexBindings", macos(10.11, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED));
 @property (nullable, readonly) NSArray <MTLArgument *> *fragmentArguments API_DEPRECATED_WITH_REPLACEMENT("fragmentBindings", macos(10.11, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED));
-@property (nullable, readonly) NSArray <MTLArgument *> *tileArguments API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) API_DEPRECATED_WITH_REPLACEMENT("tileBindings", macos(11.0, API_TO_BE_DEPRECATED), ios(11.0, API_TO_BE_DEPRECATED));
-@property (nullable, readonly) NSArray <MTLArgument *> *objectArguments API_AVAILABLE(macos(13.0), ios(16.0)) API_DEPRECATED_WITH_REPLACEMENT("objectBindings", macos(13.0, API_TO_BE_DEPRECATED), ios(16.0, API_TO_BE_DEPRECATED));
-@property (nullable, readonly) NSArray <MTLArgument *> *meshArguments API_AVAILABLE(macos(13.0), ios(16.0)) API_DEPRECATED_WITH_REPLACEMENT("meshBindings", macos(13.0, API_TO_BE_DEPRECATED), ios(16.0, API_TO_BE_DEPRECATED));
+@property (nullable, readonly) NSArray <MTLArgument *> *tileArguments API_DEPRECATED_WITH_REPLACEMENT("tileBindings", macos(11.0, API_TO_BE_DEPRECATED), macCatalyst(14.0, API_TO_BE_DEPRECATED), ios(11.0, API_TO_BE_DEPRECATED), tvos(14.5, API_TO_BE_DEPRECATED));
 @end
 
 MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h	2022-06-17 10:27:06.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h	2022-06-30 18:27:50.000000000 -0500
@@ -2,7 +2,6 @@
 //  MTLResourceStateCommandEncoder.h
 //  Metal
 //
-//  Created by kpiddington on 9/7/18.
 //  Copyright © 2018 Apple, Inc. All rights reserved.
 
 
@@ -104,6 +103,23 @@
 - (void)waitForFence:(id <MTLFence>)fence API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
 
 
+/*!
+ @method moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:
+ @abstract Move sparse page mappings from one sparse texture to another from the same heap.
+ @discussion The tile mapping is moved from the source texture only if the destination texture tile is unmapped. The textures must also have matching a texture format,
+ texture type, sample count, usage and resource options.
+ */
+-(void) moveTextureMappingsFromTexture:(id<MTLTexture>) sourceTexture
+                          sourceSlice:(NSUInteger)sourceSlice
+                          sourceLevel:(NSUInteger)sourceLevel
+                         sourceOrigin:(MTLOrigin)sourceOrigin
+                           sourceSize:(MTLSize)sourceSize
+                            toTexture:(id<MTLTexture>) destinationTexture
+                     destinationSlice:(NSUInteger)destinationSlice
+                     destinationLevel:(NSUInteger)destinationLevel
+                     destinationOrigin:(MTLOrigin)destinationOrigin API_AVAILABLE(macos(13.0), ios(16.0));
+
+
 @required
 
 @end
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h	2022-06-17 10:27:04.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h	2022-06-30 18:27:48.000000000 -0500
@@ -107,7 +107,7 @@
 {
     MTLTextureCompressionTypeLossless = 0,
     MTLTextureCompressionTypeLossy = 1,
-} API_AVAILABLE(macos(12.0), ios(15.0));
+} API_AVAILABLE(macos(12.5), ios(15.0));
 
 MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
 @interface MTLTextureDescriptor : NSObject <NSCopying>
@@ -242,7 +242,7 @@
  Moreover, not all MTLPixelFormat are supported with lossy compression, verify that the MTLDevice's GPU family supports the lossy compression feature for the pixelFormat requested.
  Set allowGPUOptimizedContents to NO to opt out of both lossless and lossy compression; such textures do not benefit from either reduced bandwidth usage or reduced storage requirements, but have predictable CPU readback performance.
  */
-@property (readwrite, nonatomic) MTLTextureCompressionType compressionType API_AVAILABLE(macos(12.0), ios(15.0));
+@property (readwrite, nonatomic) MTLTextureCompressionType compressionType API_AVAILABLE(macos(12.5), ios(15.0));
 
 /*!
  @property swizzle
@@ -419,7 +419,7 @@
  @abstract Returns the compression type of the texture
  @discussion See the compressionType property on MTLTextureDescriptor
  */
-@property (readonly) MTLTextureCompressionType compressionType API_AVAILABLE(macos(12.0), ios(15.0));
+@property (readonly) MTLTextureCompressionType compressionType API_AVAILABLE(macos(12.5), ios(15.0));
 
 
 /*!
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h	2022-06-17 10:27:05.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h	2022-06-30 18:27:49.000000000 -0500
@@ -104,15 +104,6 @@
 } 
 
 /*!
- @typedef MTLGPUHandle
- @abstract Accessbile by the CPU, it is used to get the handle of a GPU resource that could be normally passed to the GPU
- 
- @discussion
- A MTLGPUHandle represents a specific GPU resource, mutating this handle is undefined unless the mutation results in the value equalling an already existing handle of the same resource type.
- */
-typedef uint64_t MTLGPUHandle;
-
-/*!
  @typedef MTLResourceID
  @abstract Handle of the GPU resource suitable for storing in an Argument Buffer
  @discussion
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes	2022-06-16 19:58:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes	2022-06-24 14:57:12.000000000 -0500
@@ -21,6 +21,8 @@
 Functions:
 - Name: MTLCopyAllDevicesWithObserver
   SwiftPrivate: true
+- Name: MTLIOCreateCompressionContext
+  SwiftPrivate: true
 Enumerators:
 - Name: MTLResourceStorageModeShared
   SwiftName: storageModeShared
@@ -465,6 +467,11 @@
   - Selector: 'copyStatusToBuffer:offset:'
     SwiftName: copyStatus(buffer:offset:)
     MethodKind: Instance
+- Name: MTLResourceStateCommandEncoder
+  Methods:
+  - Selector: 'moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:'
+    SwiftName: moveTextureMappings(sourceTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:destinationTexture:destinationSlice:destinationLevel:destinationOrigin:)
+    MethodKind: Instance
 - Name: MTLBlitCommandEncoder
   Methods:
   - Selector: 'synchronizeResource:'
@@ -1346,18 +1353,6 @@
   - Selector: 'setTileVisibleFunctionTables:withBufferRange:'
     MethodKind: Instance
     SwiftPrivate: true
-  - Selector: 'setObjectVisibleFunctionTable:atBufferIndex:'
-    SwiftName: setObjectVisibleFunctionTable(_:bufferIndex:)
-    MethodKind: Instance
-  - Selector: 'setObjectVisibleFunctionTables:withBufferRange:'
-    MethodKind: Instance
-    SwiftPrivate: true
-  - Selector: 'setMeshVisibleFunctionTable:atBufferIndex:'
-    SwiftName: setMeshVisibleFunctionTable(_:bufferIndex:)
-    MethodKind: Instance
-  - Selector: 'setMeshVisibleFunctionTables:withBufferRange:'
-    MethodKind: Instance
-    SwiftPrivate: true
   - Selector: 'setVertexIntersectionFunctionTable:atBufferIndex:'
     SwiftName: setVertexIntersectionFunctionTable(_:bufferIndex:)
     MethodKind: Instance
@@ -1385,24 +1380,6 @@
   - Selector: 'setTileAccelerationStructure:atBufferIndex:'
     SwiftName: setTileAccelerationStructure(_:bufferIndex:)
     MethodKind: Instance
-  - Selector: 'setObjectIntersectionFunctionTable:atBufferIndex:'
-    SwiftName: setObjectIntersectionFunctionTable(_:bufferIndex:)
-    MethodKind: Instance
-  - Selector: 'setObjectIntersectionFunctionTables:withBufferRange:'
-    MethodKind: Instance
-    SwiftPrivate: true
-  - Selector: 'setObjectAccelerationStructure:atBufferIndex:'
-    SwiftName: setObjectAccelerationStructure(_:bufferIndex:)
-    MethodKind: Instance
-  - Selector: 'setMeshIntersectionFunctionTable:atBufferIndex:'
-    SwiftName: setMeshIntersectionFunctionTable(_:bufferIndex:)
-    MethodKind: Instance
-  - Selector: 'setMeshIntersectionFunctionTables:withBufferRange:'
-    MethodKind: Instance
-    SwiftPrivate: true
-  - Selector: 'setMeshAccelerationStructure:atBufferIndex:'
-    SwiftName: setMeshAccelerationStructure(_:bufferIndex:)
-    MethodKind: Instance
 - Name: MTLSharedEvent
   Methods:
   - Selector: 'newSharedEventHandle'
@@ -1558,9 +1535,6 @@
   - Selector: 'addTileRenderPipelineFunctionsWithDescriptor:error:'
     SwiftName: addTileRenderPipelineFunctions(descriptor:)
     MethodKind: Instance
-  - Selector: 'addMeshRenderPipelineFunctionsWithDescriptor:error:'
-    SwiftName: addMeshRenderPipelineFunctions(descriptor:)
-    MethodKind: Instance
   - Selector: 'addFunctionWithDescriptor:library:error:'
     SwiftName: addFunction(descriptor:library:)
     MethodKind: Instance
Clone this wiki locally