<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ComputeGraphRuntimeComponent/readOutput(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "ComputeGraph",
      "_RealityKit_ComputeGraph"
    ],
    "preciseIdentifier" : "s:24_RealityKit_ComputeGraph0cD16RuntimeComponentV10readOutputySo9MTLBuffer_pSg0cD00c4NodeD0V4PortO7AddressVF"
  },
  "title" : "readOutput(_:)"
}
-->

# readOutput(_:)

Returns the output buffer for the port at the given address.

```
func readOutput(_ port: ComputeNodeGraph.Port.Address) -> (any MTLBuffer)?
```

## Parameters

`port`

The port address of the output to read.

## Return Value

The `MTLBuffer` for that port, or `nil` if not found.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)