-
Notifications
You must be signed in to change notification settings - Fork 543
CompositorServices macOS xcode26.0 b2
Alex Soto edited this page Jun 24, 2025
·
1 revision
#CompositorServices.framework
diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CompositorServices.framework/Headers/layer_renderer_capabilities.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CompositorServices.framework/Headers/layer_renderer_capabilities.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CompositorServices.framework/Headers/layer_renderer_capabilities.h 2025-05-25 00:23:22
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CompositorServices.framework/Headers/layer_renderer_capabilities.h 2025-06-19 00:47:17
@@ -40,6 +40,8 @@
///
/// - Parameters:
/// - layer_capabilities: The layer capabilities to query.
+/// - options: The options to consider when creating the list of supported
+/// color formats.
/// - Returns: The number of color formats the layer supports.
///
/// To iterate over the color formats, use the ``cp_layer_renderer_capabilities_supported_color_format``
@@ -49,6 +51,15 @@
cp_supported_color_formats_options options)
CF_REFINED_FOR_SWIFT API_AVAILABLE(visionos(26.0), macosx(26.0));
+/// Returns the number of color formats the specified layer supports.
+///
+/// - Parameters:
+/// - layer_capabilities: The layer capabilities to query.
+/// color formats.
+/// - Returns: The number of color formats the layer supports.
+///
+/// To iterate over the color formats, use the ``cp_layer_renderer_capabilities_supported_color_format``
+/// function.
size_t
cp_layer_renderer_capabilities_supported_color_formats_count(cp_layer_renderer_capabilities_t layer_capabilities)
CF_REFINED_FOR_SWIFT API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(macosx, ios)
@@ -60,6 +71,8 @@
///
/// - Parameters:
/// - layer_capabilities: The layer capabilities to query.
+/// - options: The options to consider when creating the list of supported
+/// color formats.
/// - index: A zero-based index into the list of color formats.
/// - Returns: The color format at the specified index.
///
@@ -71,6 +84,15 @@
size_t index)
CF_REFINED_FOR_SWIFT API_AVAILABLE(visionos(26.0), macosx(26.0));
+/// Returns the color format at the specified index in the layer capabilities.
+///
+/// - Parameters:
+/// - layer_capabilities: The layer capabilities to query.
+/// - index: A zero-based index into the list of color formats.
+/// - Returns: The color format at the specified index.
+///
+/// Use this function to determine the pixel arrangements and characteristics
+/// you can apply to the layer.
MTLPixelFormat
cp_layer_renderer_capabilities_supported_color_format(cp_layer_renderer_capabilities_t layer_capabilities,
size_t index)
@@ -154,7 +176,7 @@
///
/// - Parameters:
/// - layer_capabilities: The layer capabilities to query.
-/// - options: The options to consider when creating the list of supported
+/// - options: The options to consider when creating the list of supported
/// layouts.
/// - Returns: The number of layouts the layer supports.
///