---
title: "PGCreateDeviceWithDescriptor(_:)"
framework: Paravirtualized Graphics
role: symbol
role_heading: Function
platforms: [Mac Catalyst 14.0+, macOS 15.2+]
path: "paravirtualizedgraphics/pgcreatedevicewithdescriptor(_:)"
---

# PGCreateDeviceWithDescriptor(_:)

## Declaration

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

## Parameters

- `descriptor`: The device descriptor for the new device.

## Discussion

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