-
Notifications
You must be signed in to change notification settings - Fork 542
MetalPerformanceShadersGraph iOS xcode26.0 b1
Alex Soto edited this page Jun 9, 2025
·
1 revision
#MetalPerformanceShadersGraph.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h 2025-04-19 05:51:09
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h 2025-05-23 06:47:22
@@ -112,6 +112,7 @@
///
/// An `MPSGraphExecutable` is a compiled graph for specific feeds for specific target tensors and target operations.
MPS_CLASS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0))
+NS_SWIFT_SENDABLE
@interface MPSGraphExecutable : MPSGraphObject
/// Options for the graph executable.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorData.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorData.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorData.h 2025-04-19 05:51:09
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorData.h 2025-05-24 05:32:54
@@ -12,6 +12,8 @@
#import <MetalPerformanceShadersGraph/MPSGraphCore.h>
#import <MetalPerformanceShadersGraph/MPSGraphDevice.h>
+@protocol MTLTensor;
+
NS_ASSUME_NONNULL_BEGIN
/// The representation of a compute data type.
@@ -141,6 +143,17 @@
/// - Returns: A valid MPSGraphTensorData, or nil if allocation failure.
-(instancetype) initWithMPSImageBatch:(MPSImageBatch *) imageBatch
MPS_SWIFT_NAME( init(_:) );
+
+/// Initializes an MPSGraphTensorData with an MTLTensor.
+///
+/// The internal storage of the MTLTensor will be aliased. Requires tensor to support MTLTensorUsageMachineLearning.
+///
+/// - Parameters:
+/// - tensor: MTLTensor to be used within the MPSGraphTensorData
+/// - Returns: A valid MPSGraphTensorData, or nil if allocation failure.
+- (instancetype)initWithMTLTensor:(id<MTLTensor>)tensor
+MPS_SWIFT_NAME(init(_:))
+MPS_AVAILABLE_STARTING(macos(16.0), ios(19.0), tvos(19.0));
/// Return an mpsndarray object will copy contents if the contents are not stored in an MPS ndarray.
///