<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Properties-swift.struct/init(configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE10PropertiesV13configurationAebCE13ConfigurationV_tKcfc"
  },
  "title" : "init(configuration:)"
}
-->

# init(configuration:)

Creates a set of properties using the specified configuration values.

```
init(configuration: LayerRenderer.Configuration) throws
```

## Parameters

`configuration`

The options you use to configure your Metal rendering engine. Specify the same options you use during drawing.

## Discussion

Prior to receiving the layer you use for drawing, you can create a [`LayerRenderer.Properties`](/documentation/CompositorServices/LayerRenderer/Properties-swift.struct) structure and use it to start the configuration of your Metal code.

---

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)