<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ParavirtualizedGraphics",
  "identifier" : "/documentation/ParavirtualizedGraphics/PGCreateDeviceWithDescriptor(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Paravirtualized Graphics"
    ],
    "preciseIdentifier" : "c:@F@PGCreateDeviceWithDescriptor"
  },
  "title" : "PGCreateDeviceWithDescriptor(_:)"
}
-->

# PGCreateDeviceWithDescriptor(_:)

```
func PGCreateDeviceWithDescriptor(_ descriptor: PGDeviceDescriptor) -> (any PGDevice)?
```

## Parameters

`descriptor`

The device descriptor for the new device.

## Discussion

\abstract Create a new PGDevice implementation object based on the provided descriptor.

---

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)