Skip to content

QuartzCore tvOS xcode16.0 b2

Rolf Bjarne Kvinge edited this page Aug 15, 2024 · 3 revisions

#QuartzCore.framework https://github.com/xamarin/xamarin-macios/pull/21050

diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h	2024-05-30 16:07:17
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h	2024-06-15 09:11:30
@@ -22,6 +22,26 @@
 typedef NSString * CALayerContentsFilter NS_TYPED_ENUM API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0)) API_UNAVAILABLE(watchos);
 typedef NSString * CALayerCornerCurve NS_TYPED_ENUM API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
 
+
+/* Options that control when to tone map CALayer contents and
+   CAMetalLayer drawables. Defaults to CAToneMapModeAutomatic. */
+typedef NSString * CAToneMapMode NS_TYPED_ENUM NS_SWIFT_NAME(CALayer.ToneMapMode)
+API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
+
+/* Let the OS decide whether to tone map. */
+extern CAToneMapMode const CAToneMapModeAutomatic NS_SWIFT_NAME(automatic)
+API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
+
+/* Never tone map contents. */
+extern CAToneMapMode const CAToneMapModeNever NS_SWIFT_NAME(never)
+API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
+
+/* Tone map whenever supported by the OS. This includes
+   PQ, HLG and extended-range contents for CALayer
+   and CAMetalLayers. */
+extern CAToneMapMode const CAToneMapModeIfSupported NS_SWIFT_NAME(ifSupported)
+API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
+
 /* Bit definitions for `edgeAntialiasingMask' property. */
 
 typedef NS_OPTIONS (unsigned int, CAEdgeAntialiasingMask)
@@ -365,6 +385,11 @@
 @property(copy) CALayerContentsFormat contentsFormat
   API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
 
+
+/* Options that control when to tone map CALayer contents and
+   CAMetalLayer drawables. */
+@property(copy) CAToneMapMode toneMapMode
+API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
 
 
 
Clone this wiki locally