Skip to content

Metal tvOS xcode15.3 b1

Alex Soto edited this page Jul 8, 2024 · 2 revisions

#Metal.framework https://github.com/xamarin/xamarin-macios/pull/20780

diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h	2023-11-12 03:37:04
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h	2024-01-10 03:25:23
@@ -53,6 +53,10 @@
 // Convenience method for creating a shared event handle that may be passed to other processes via XPC.
 - (MTLSharedEventHandle *)newSharedEventHandle;
 
+// Synchronously wait for the signaledValue to be greater than or equal to 'value', with a timeout
+// specified in milliseconds.   Returns YES if the value was signaled before the timeout, otherwise NO.
+- (BOOL)waitUntilSignaledValue:(uint64_t)value timeoutMS:(uint64_t)milliseconds API_AVAILABLE(macos(12.0), ios(15.0));
+
 @property (readwrite) uint64_t signaledValue; // Read or set signaled value
 
 @end
diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h	2023-11-12 03:26:48
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h	2024-01-13 02:11:06
@@ -7,6 +7,7 @@
 
 #import <Foundation/Foundation.h>
 #import <Metal/MTLDefines.h>
+#import <mach/mach.h>
 
 NS_ASSUME_NONNULL_BEGIN
 /*!
@@ -282,6 +283,11 @@
  */
 -(BOOL) isAliasable API_AVAILABLE(macos(10.13), ios(10.0));
 
+/*!
+ @method setOwnerWithIdentity:
+ @abstract Assigns ownership of the resource's underlying memory to another task for the purposes of VM accounting.
+*/
+- (kern_return_t)setOwnerWithIdentity:(task_id_token_t)task_id_token API_AVAILABLE(ios(17.4), watchos(10.4), tvos(17.4), macos(14.4));
 @end
 
 
diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes	2023-11-09 19:47:55
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes	2023-12-14 12:55:56
@@ -1428,6 +1428,11 @@
   - Selector: 'setTileAccelerationStructure:atBufferIndex:'
     SwiftName: setTileAccelerationStructure(_:bufferIndex:)
     MethodKind: Instance
+- Name: MTLResource
+  Methods:
+  - Selector: 'setOwnerWithIdentity:'
+    MethodKind: Instance
+    SwiftPrivate: true
 - Name: MTLSharedEvent
   Methods:
   - Selector: 'newSharedEventHandle'
Clone this wiki locally