<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIRenderDestination/init(ioSurface:)-1hfcq",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIRenderDestination(im)initWithIOSurface:"
  },
  "title" : "init(ioSurface:)"
}
-->

# init(ioSurface:)

Creates a render destination based on an `IOSurface` object.

```
init(ioSurface surface: IOSurface)
```

## Parameters

`surface`

The `IOSurface` render target.

## Return Value

A [`CIRenderDestination`](/documentation/CoreImage/CIRenderDestination) object for rendering to an `IOSurface` object.

## Discussion

The destination’s [`colorSpace`](/documentation/CoreImage/CIRenderDestination/colorSpace) property will default to a <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> created by querying the `IOSurface` object’s attributes.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)