- Notifications
You must be signed in to change notification settings - Fork 548
Metal macOS xcode26.0 b5
Rolf Bjarne Kvinge edited this page Aug 11, 2025 · 3 revisions
#Metal.framework https://github.com/dotnet/macios/pull/23549
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h 2025-07-12 00:46:35 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h 2025-07-26 22:43:36 @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN /// Memory consistency options for synchronization commands. -typedef NS_OPTIONS(NSInteger, MTL4VisibilityOptions) +typedef NS_OPTIONS(NSUInteger, MTL4VisibilityOptions) { /// Don't flush caches. When you use this option on a barrier, it turns it into an execution barrier. MTL4VisibilityOptionNone = 0, diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h 2025-07-12 00:46:33 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h 2025-07-26 21:54:06 @@ -21,7 +21,7 @@ } MTL4TimestampHeapEntry API_AVAILABLE(macos(26.0), ios(26.0)); /// Defines the type of a ``MTL4CounterHeap`` and the contents of its entries. -typedef NS_ENUM(NSUInteger, MTL4CounterHeapType) +typedef NS_ENUM(NSInteger, MTL4CounterHeapType) { /// Specifies that ``MTL4CounterHeap`` entries contain invalid data. MTL4CounterHeapTypeInvalid, diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h 2025-07-12 00:09:23 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h 2025-07-26 22:12:03 @@ -19,7 +19,7 @@ /// /// You can combine these values via a logical `OR` and set it to ``MTL4PipelineDataSetSerializerDescriptor/configuration`` /// to specify desired level of serialization support for instances of ``MTL4PipelineDataSetSerializer``. -typedef NS_OPTIONS(NSInteger, MTL4PipelineDataSetSerializerConfiguration) { +typedef NS_OPTIONS(NSUInteger, MTL4PipelineDataSetSerializerConfiguration) { /// Enables serializing pipeline scripts. /// /// Set this mask to use ``MTL4PipelineDataSetSerializer.serializeAsPipelinesScriptWithError``. diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h 2025-07-12 00:46:35 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h 2025-07-26 22:43:36 @@ -101,7 +101,7 @@ @property (nullable, copy, nonatomic) NSString* label; /// Provides compile-time options when you build the pipeline. -@property (readwrite, nonatomic, retain) MTL4PipelineOptions* options; +@property (nullable, readwrite, nonatomic, retain) MTL4PipelineOptions* options; @end diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h 2025-07-11 23:29:20 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h 2025-07-26 21:42:05 @@ -72,7 +72,7 @@ MTL_EXTERN NSErrorDomain const MTLTensorDomain API_AVAILABLE(macos(26.0), ios(26.0)); /// The error codes that Metal can raise when you create a tensor. -typedef NS_ENUM(NSUInteger, MTLTensorError) +typedef NS_ENUM(NSInteger, MTLTensorError) { MTLTensorErrorNone = 0, MTLTensorErrorInternalError = 1, @@ -80,7 +80,7 @@ } API_AVAILABLE(macos(26.0), ios(26.0)); /// The type that represents the different contexts for a tensor. -typedef NS_OPTIONS(NSInteger, MTLTensorUsage) +typedef NS_OPTIONS(NSUInteger, MTLTensorUsage) { /// A tensor context that applies to compute encoders. /// @@ -113,7 +113,7 @@ /// - The first element of `strides` is one. /// - For any `i` larger than zero, `strides[i]` is greater than or equal to `strides[i-1] * dimensions[i-1]`. /// - If `usage` contains ``MTLTensorUsage/MTLTensorUsageMachineLearning``, the second element of `strides` is aligned to 64 bytes, and for any `i` larger than one, `strides[i]` is equal to `strides[i-1] * dimensions[i-1]`. -@property (readwrite, nonatomic, copy) MTLTensorExtents *strides; +@property (readwrite, nonatomic, copy, nullable) MTLTensorExtents *strides; /// A data format for the tensors you create with this descriptor. /// @@ -164,7 +164,7 @@ /// An array of strides, in elements, one for each dimension of this tensor. /// /// This property only applies if this tensor shares its storage with a buffer, otherwise it's nil. -@property (readonly) MTLTensorExtents *strides; +@property (nullable, readonly) MTLTensorExtents *strides; /// An array of sizes, in elements, one for each dimension of this tensor. @property (readonly) MTLTensorExtents *dimensions; diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes --- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes 2025-07-10 19:11:12 +++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes 2025-07-25 15:28:11 @@ -13,6 +13,8 @@ NSErrorDomain: MTLBinaryArchiveDomain - Name: MTL4CommandQueueError NSErrorDomain: MTL4CommandQueueErrorDomain +- Name: MTLTensorError + NSErrorDomain: MTLTensorDomain Globals: - Name: MTLDeviceWasAddedNotification SwiftName: wasAdded