---
title: PGCopyOptionROMURL()
framework: Paravirtualized Graphics
role: symbol
role_heading: Function
platforms: [Mac Catalyst 14.0+, macOS 11.0+]
path: paravirtualizedgraphics/pgcopyoptionromurl()
---

# PGCopyOptionROMURL()

Copies the URL of the ROM image to use on the guest graphics device.

## Declaration

```swift
func PGCopyOptionROMURL() -> URL
```

## Return Value

Return Value The URL of the ROM file to load.

## Discussion

Discussion The URL points to a local file of a flat ROM image. After loading the file, pad the data size to a power of two and fill the extra bytes with zeroes. Map the resulting data into the guest, setting the PCI ROM base address register to point to the data.

## See Also

### PCI Device Characteristics

- [PG_PCI_DEVICE_ID](paravirtualizedgraphics/pg_pci_device_id.md)
- [PG_PCI_VENDOR_ID](paravirtualizedgraphics/pg_pci_vendor_id.md)
- [PG_PCI_BAR_MMIO](paravirtualizedgraphics/pg_pci_bar_mmio.md)
- [PG_PCI_MAX_MSI_VECTORS](paravirtualizedgraphics/pg_pci_max_msi_vectors.md)
