Skip to content

CoreImage macOS xcode27.0 b2

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

#CoreImage.framework

diff -ruN /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h
--- /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h	2026-05-28 01:58:58
+++ /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h	2026-06-13 03:13:42
@@ -306,6 +306,33 @@
                atPoint:(CGPoint)atPoint
                  error:(NSError**)error NS_AVAILABLE(10_13, 11_0);
 
+/// Returns a task with estimated resource statistics for a render, without executing the render.
+///
+/// Call this method to analyze the cost of a render before you execute it. Query the
+/// returned task's `plannedPixelsProcessed`, `plannedPixelsOverdrawn`, `plannedPassCount`,
+/// and `plannedPeakMemory` properties to get the estimated statistics.
+///
+/// The method renders as if the image is cropped to `fromRect` and places the origin of
+/// `fromRect` at `atPoint` in the destination.
+///
+/// - Parameters:
+///    - image: The ``CIImage`` to estimate the render for.
+///    - fromRect: The region of ``CIImage`` to render.
+///    - destination: The ``CIRenderDestination`` to estimate the render to.
+///    - atPoint: The point in the destination where the origin of `fromRect` is placed.
+///    - error: On output, the error that caused estimation to fail, or `nil` if estimation succeeded.
+///
+/// - Returns:
+///    A ``CIRenderTask`` you can query for estimated statistics, or `nil` if `fromRect`
+///    doesn't intersect `image.extent` or if estimation fails.
+///    
+- (nullable CIRenderTask*) estimateRender:(CIImage*)image
+                                 fromRect:(CGRect)fromRect
+                            toDestination:(CIRenderDestination*)destination
+                                  atPoint:(CGPoint)atPoint
+                                    error:(NSError** _Nullable)error
+API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos);
+
 // Fill the entire destination with black (0,0,0,1) if its alphaMode is None
 // or clear (0,0,0,0) if its alphaMode is Premultiplied or Unpremultiplied.
 //

Clone this wiki locally