TechnologiesGraphics, Imaging & Compositing

ParavirtualizedGraphics

iOSmacOStvOSwatchOSvisionOS

On macOS, ParavirtualizedGraphics provides paravirtualized GPU device and display support that enables accelerated graphics inside virtual machines through Metal. You create a PGDevice by configuring a PGDeviceDescriptor, then attach display surfaces with PGDisplay and PGDisplayDescriptor, selecting resolutions through PGDisplayMode and positioning output with PGDisplayCoord_t. The framework exposes the GPU's physical memory layout through PGPhysicalMemoryRange_s and reports resume failures with PGResumeErrorCode.

Graphics Devices 2

Create and configure the paravirtualized GPU device that drives accelerated graphics inside a virtual machine.

  • Pr
    PGDevicemacOS 11.0+
    @protocol PGDevice
  • Cl
    PGDeviceDescriptormacOS 11.0+
    An object that configures the properties used to create a paravirtualized graphics device.

Displays and Resolutions 4

Attach virtual display surfaces to a device and choose the resolutions and modes they present.

  • Pr
    PGDisplaymacOS 11.0+
    @protocol PGDisplay:
  • Cl
    PGDisplayDescriptormacOS 11.0+
    @interface PGDisplayDescriptor:
  • Cl
    PGDisplayModemacOS 11.0+
    @interface PGDisplayMode:
  • St
    PGDisplayCoord_tmacOS 11.0+
    @typedef PGDisplayCoord_t

Memory Layout 1

Describe the physical memory the paravirtualized GPU exposes to the guest.

  • St
    PGPhysicalMemoryRange_s
    @typedef PGPhysicalMemoryRange_t

Errors 1

Diagnose failures encountered while resuming a paravirtualized graphics device.

  • En
    PGResumeErrorCodemacOS 11.0+
    @enum PGResumeErrorCode

Type Aliases 6

  • Ty
    PGPhysicalMemoryRange_t
    @typedef PGPhysicalMemoryRange_t
  • Ty
    PGRaiseInterrupt
    @typedef PGRaiseInterrupt
  • Ty
    PGDisplayModeChangeHandler
    @typedef PGDisplayModeChangeHandler
  • Ty
    PGDisplayNewFrameEventHandler
    @typedef PGDisplayNewFrameEventHandler
  • Ty
    PGDisplayCursorShowHandler
    @typedef PGDisplayCursorShowHandler_t
  • Ty
    PGDisplayCursorMoveHandler
    @typedef PGDisplayCursorMoveHandler_t
← Graphics, Imaging & Compositing