---
title: "CVDisplayLinkCreateWithCGDisplay(_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvdisplaylinkcreatewithcgdisplay(_:_:)"
---

# CVDisplayLinkCreateWithCGDisplay(_:_:)

Creates a display link for a single display.

## Declaration

```swift
func CVDisplayLinkCreateWithCGDisplay(_ displayID: CGDirectDisplayID, _ displayLinkOut: UnsafeMutablePointer<CVDisplayLink?>) -> CVReturn
```

## Parameters

- `displayID`: The Core Graphics ID of the target display.
- `displayLinkOut`: On output, displayLinkOut points to the newly created display link.

## Return Value

Return Value A Core Video result code. See Core Video Constants for possible values.

## Discussion

Discussion Use this call to create a display link for a single display. For more information on the display identifier type, see CGDirectDisplayID.

## See Also

### Creating Display Links

- [CVDisplayLinkCreateWithCGDisplays(_:_:_:)](corevideo/cvdisplaylinkcreatewithcgdisplays(_:_:_:).md)
- [CVDisplayLinkCreateWithActiveCGDisplays(_:)](corevideo/cvdisplaylinkcreatewithactivecgdisplays(_:).md)
- [CVDisplayLinkCreateWithOpenGLDisplayMask(_:_:)](corevideo/cvdisplaylinkcreatewithopengldisplaymask(_:_:).md)
