<!--
{
  "availability" : [
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/attributeToHostApp(_:)-88yg7",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB15ProviderContextC18attributeToHostAppyySo11MTLResource_pF"
  },
  "title" : "attributeToHostApp(_:)"
}
-->

# attributeToHostApp(_:)

Attributes a Metal resource’s memory to the host app instead of the extension.

```
@MainActor final func attributeToHostApp(_ resource: any MTLResource)
```

---

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)