-
Notifications
You must be signed in to change notification settings - Fork 573
Metal iOS xcode27.0 b3
Alex Soto edited this page Jul 7, 2026
·
1 revision
#Metal.framework
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h 2026-06-09 07:30:08
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h 2026-06-28 03:18:42
@@ -289,6 +289,22 @@
MTLMathFloatingPointFunctionsPrecise = 1,
};
+/*!
+ @enum MTLFloatingPointConversionRoundingMode
+ @abstract The rounding mode for narrowing floating-point conversions.
+
+ @constant MTLFloatingPointConversionRoundingModeToNearestEven
+ Round-to-nearest-even (default). Standard IEEE 754 rounding mode.
+
+ @constant MTLFloatingPointConversionRoundingModeTowardZero
+ Round-toward-zero.
+ */
+typedef NS_ENUM(NSInteger, MTLFloatingPointConversionRoundingMode)
+{
+ MTLFloatingPointConversionRoundingModeToNearestEven = 0,
+ MTLFloatingPointConversionRoundingModeTowardZero = 1,
+};
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
@interface MTLCompileOptions : NSObject <NSCopying>
@@ -405,6 +421,12 @@
@abstract If YES, set the compiler to enable any logging in the shader. The default is false.
*/
@property (readwrite, nonatomic) BOOL enableLogging API_AVAILABLE(macos(15.0), ios(18.0));
+
+/*!
+ @property floatingPointConversionRoundingMode
+ @abstract Sets the rounding mode for narrowing floating-point conversions. Default is MTLFloatingPointConversionRoundingModeToNearestEven.
+ */
+@property (readwrite, nonatomic) MTLFloatingPointConversionRoundingMode floatingPointConversionRoundingMode API_AVAILABLE(macos(27.0), ios(27.0));
@end
/// Represents a reflection object containing information about a function in a Metal library.
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h 2026-06-09 20:44:15
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h 2026-06-27 05:05:48
@@ -57,21 +57,21 @@
@param storeActionOptions The desired store action options for the given color attachment.
@param colorAttachmentIndex The index of the color attachment
*/
-- (void)setColorStoreActionOptions:(MTLStoreActionOptions)storeActionOptions atIndex:(NSUInteger)colorAttachmentIndex API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setColorStoreActionOptions:(MTLStoreActionOptions)storeActionOptions atIndex:(NSUInteger)colorAttachmentIndex API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/*!
@method setDepthStoreActionOptions:
@brief If the the store action for the depth attachment was set to MTLStoreActionUnknown when the render command encoder was created,
setDepthStoreActionOptions: may be used to finalize the store action options before endEncoding is called.
*/
-- (void)setDepthStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setDepthStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/*!
@method setStencilStoreActionOptions:
@brief If the the store action for the stencil attachment was set to MTLStoreActionUnknown when the render command encoder was created,
setStencilStoreActionOptions: may be used to finalize the store action options before endEncoding is called.
*/
-- (void)setStencilStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setStencilStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h 2026-06-09 08:32:13
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h 2026-06-27 06:13:19
@@ -505,21 +505,21 @@
@param storeActionOptions The desired store action options for the given color attachment.
@param colorAttachmentIndex The index of the color attachment
*/
-- (void)setColorStoreActionOptions:(MTLStoreActionOptions)storeActionOptions atIndex:(NSUInteger)colorAttachmentIndex API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setColorStoreActionOptions:(MTLStoreActionOptions)storeActionOptions atIndex:(NSUInteger)colorAttachmentIndex API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/*!
@method setDepthStoreActionOptions:
@brief If the the store action for the depth attachment was set to MTLStoreActionUnknown when the render command encoder was created,
setDepthStoreActionOptions: may be used to finalize the store action options before endEncoding is called.
*/
-- (void)setDepthStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setDepthStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/*!
@method setStencilStoreActionOptions:
@brief If the the store action for the stencil attachment was set to MTLStoreActionUnknown when the render command encoder was created,
setStencilStoreActionOptions: may be used to finalize the store action options before endEncoding is called.
*/
-- (void)setStencilStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_AVAILABLE(macos(10.13), ios(11.0));
+- (void)setStencilStoreActionOptions:(MTLStoreActionOptions)storeActionOptions API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/* Object Resources */
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h 2026-06-09 07:30:08
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h 2026-06-28 03:18:42
@@ -47,7 +47,7 @@
typedef NS_OPTIONS(NSUInteger, MTLStoreActionOptions) {
MTLStoreActionOptionNone = 0,
MTLStoreActionOptionCustomSamplePositions = 1 << 0,
-} API_AVAILABLE(macos(10.13), ios(11.0));
+} API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
/// This enumeration controls if Metal accumulates visibility results between render encoders or resets them.
///
@@ -137,7 +137,7 @@
@abstract Optional configuration for the store action performed with this attachment at the end of a render pass. Default is
MTLStoreActionOptionNone.
*/
-@property (nonatomic) MTLStoreActionOptions storeActionOptions API_AVAILABLE(macos(10.13), ios(11.0));
+@property (nonatomic) MTLStoreActionOptions storeActionOptions API_DEPRECATED("Store action options have no effect on Apple Silicon", macos(10.13, 27.0), ios(11.0, 27.0));
@end
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h 2026-06-09 20:44:17
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h 2026-06-28 03:18:42
@@ -55,7 +55,7 @@
MTLTensorDataTypeUInt4 API_AVAILABLE(macos(26.4), ios(26.4)) = 144,
/// An 8-bit floating point format data type with 8 exponent bits.
- MTLTensorDataTypeFloat8UE8M0 API_AVAILABLE(macos(27.0), ios(27.0)) = 145,
+ MTLTensorDataTypeMetalFloat8UE8M0 API_AVAILABLE(macos(27.0), ios(27.0)) = 145,
/// A 2-bit unsigned integer format data type.
MTLTensorDataTypeUInt2 API_AVAILABLE(macos(27.0), ios(27.0)) = 149,
@@ -64,13 +64,13 @@
MTLTensorDataTypeInt2 API_AVAILABLE(macos(27.0), ios(27.0)) = 150,
/// An 8-bit floating point format data type with 5 exponent bits, 2 mantissa bits and 1 sign bit.
- MTLTensorDataTypeFloat8E5M2 API_AVAILABLE(macos(27.0), ios(27.0)) = 141,
+ MTLTensorDataTypeMetalFloat8E5M2 API_AVAILABLE(macos(27.0), ios(27.0)) = 141,
/// An 8-bit floating point format data type with 4 exponent bits, 3 mantissa bits and 1 sign bit.
- MTLTensorDataTypeFloat8E4M3 API_AVAILABLE(macos(27.0), ios(27.0)) = 142,
+ MTLTensorDataTypeMetalFloat8E4M3 API_AVAILABLE(macos(27.0), ios(27.0)) = 142,
/// A 4-bit floating point format data type with 2 exponent bits, 1 mantissa bit and 1 sign bit.
- MTLTensorDataTypeFloat4E2M1 API_AVAILABLE(macos(27.0), ios(27.0)) = 148,
+ MTLTensorDataTypeMetalFloat4E2M1 API_AVAILABLE(macos(27.0), ios(27.0)) = 148,
} API_AVAILABLE(macos(26.0), ios(26.0));
/// The largest rank a tensor can have.
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes 2026-06-09 07:10:34
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes 2026-06-28 03:00:33
@@ -113,10 +113,6 @@
SwiftName: rg11b10Float
- Name: MTLDataTypeRGB9E5Float
SwiftName: rgb9e5Float
-- Name: MTLDataTypeMetalFP8E5M2
- SwiftName: metalfp8e5m2
-- Name: MTLDataTypeMetalFP8E4M3
- SwiftName: metalfp8e4m3
- Name: MTLPixelFormatRGBA8Unorm_sRGB
SwiftName: rgba8Unorm_srgb
- Name: MTLPixelFormatBGRA8Unorm_sRGB
@@ -423,16 +419,16 @@
SwiftName: uint32
- Name: MTLTensorDataTypeUInt4
SwiftName: uint4
-- Name: MTLTensorDataTypeFloat8UE8M0
- SwiftName: float8ue8m0
- Name: MTLTensorDataTypeUInt2
SwiftName: uint2
-- Name: MTLTensorDataTypeFloat8E5M2
- SwiftName: float8e5m2
-- Name: MTLTensorDataTypeFloat8E4M3
- SwiftName: float8e4m3
-- Name: MTLTensorDataTypeFloat4E2M1
- SwiftName: float4e2m1
+- Name: MTLTensorDataTypeMetalFloat8UE8M0
+ SwiftName: metalFloat8ue8m0
+- Name: MTLTensorDataTypeMetalFloat8E5M2
+ SwiftName: metalFloat8e5m2
+- Name: MTLTensorDataTypeMetalFloat8E4M3
+ SwiftName: metalFloat8e4m3
+- Name: MTLTensorDataTypeMetalFloat4E2M1
+ SwiftName: metalFloat4e2m1
Classes:
- Name: MTLCaptureManager