Skip to content

Metal macOS xcode27.0 b2

Alex Soto edited this page Jun 23, 2026 · 1 revision

#Metal.framework

diff -ruN /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h
--- /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h	2026-05-24 05:22:21
+++ /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h	2026-06-16 06:06:38
@@ -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-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h
--- /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h	2026-05-23 02:51:08
+++ /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h	2026-06-16 06:06:37
@@ -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.

Clone this wiki locally