Skip to content

MetalFX macOS xcode15.3 rc2

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

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

diff -ruN /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXDefines.h /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXDefines.h
--- /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXDefines.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXDefines.h	2024-02-14 00:32:53
@@ -0,0 +1,7 @@
+//
+//  MTLFXDefines.h
+//  MetalFX
+//
+//
+
+
diff -ruN /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXTemporalScaler.h /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXTemporalScaler.h
--- /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXTemporalScaler.h	2024-01-27 18:10:31
+++ /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MTLFXTemporalScaler.h	2024-02-14 00:32:54
@@ -41,6 +41,9 @@
 @property (readwrite, nonatomic) float inputContentMinScale;
 @property (readwrite, nonatomic) float inputContentMaxScale;
 
+@property (readwrite, nonatomic, getter=isReactiveMaskTextureEnabled) BOOL reactiveMaskTextureEnabled API_AVAILABLE(macos(14.4), ios(17.4));
+@property (readwrite, nonatomic) MTLPixelFormat reactiveMaskTextureFormat API_AVAILABLE(macos(14.4), ios(17.4));
+
 // The following method is used to instantiate the effect encoder for a given
 // Metal device.
 - (nullable id <MTLFXTemporalScaler>)newTemporalScalerWithDevice:(nonnull id<MTLDevice>)device;
@@ -65,6 +68,7 @@
 @property (nonatomic, readonly) MTLTextureUsage colorTextureUsage;
 @property (nonatomic, readonly) MTLTextureUsage depthTextureUsage;
 @property (nonatomic, readonly) MTLTextureUsage motionTextureUsage;
+@property (nonatomic, readonly) MTLTextureUsage reactiveTextureUsage API_AVAILABLE(macos(14.4), ios(17.4));
 @property (nonatomic, readonly) MTLTextureUsage outputTextureUsage;
 
 // Dynamic Resolution property
@@ -85,6 +89,13 @@
 // the texel located at (0, 0) is used for exposure value. The value is used
 // to multiply the input color, use GPU to generate the exposure value.
 @property (nonatomic, retain, nullable) id<MTLTexture> exposureTexture;
+
+// Reactive mask
+// An optional single channel texture that contains values in the range
+// 0.0f-1.0f. A value of 0.0f applies the default temporal effect treatment.
+// A value greater than 0.0f applies a bias towards the current frame for
+// the pixel.
+@property (nonatomic, retain, nullable) id<MTLTexture> reactiveMaskTexture API_AVAILABLE(macos(14.4), ios(17.4));
 // If the input color is pre-multiplied by fixed value, set this value
 // which MetalFX will use to divide input color, this is not common.
 @property (nonatomic) float preExposure;
diff -ruN /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MetalFX.h /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MetalFX.h
--- /Applications/Xcode_15.3.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MetalFX.h	2024-01-27 18:10:31
+++ /Applications/Xcode_15.3.0-rc2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalFX.framework/Headers/MetalFX.h	2024-02-14 00:32:53
@@ -5,6 +5,7 @@
 //  Copyright (c) 2021 Apple Inc. All rights reserved.
 //
 
+#import <MetalFX/MTLFXDefines.h>
 #import <MetalFX/MTLFXTemporalScaler.h>
 #import <MetalFX/MTLFXSpatialScaler.h>
 
Clone this wiki locally