---
title: outputURL
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcapturedescriptor/outputurl
---

# outputURL

A URL for a file to write the capture data into.

## Declaration

```swift
var outputURL: URL? { get set }
```

## Discussion

Discussion The default value is nil. If you set destination to MTLCaptureDestination.gpuTraceDocument, you need to set this property to where you want the file to be written to.

## See Also

### Setting capture parameters

- [captureObject](metal/mtlcapturedescriptor/captureobject.md)
- [destination](metal/mtlcapturedescriptor/destination.md)
