One Logo Pool Ball
_RealityKit_ComputeGraph · IOS API REFERENCE

ComputeGraphResource

class · iOS 27.0+ · SDK 27.1

final class ComputeGraphResource

A loaded compute graph resource containing the graph definition, compiled pipelines, and all associated rendering assets. Load a `ComputeGraphResource` from a file URL using ``init(contentsOf:bundle:)``, then assign it to a ``ComputeGraphComponent/resource`` to drive a simulation. ```swift let resource = try await ComputeGraphResource(contentsOf: url) var component = ComputeGraphComponent(resource: resource) entity.components.set(component) ```

Members (3)

init · iOS 27.0+

init

TypeScript
static initContentsOfBundle(url: string, bundle?: (_Foundation_Bundle) | null): Promise<ComputeGraphResource>
Swift declaration
convenience init(contentsOf url: URL, bundle: Bundle? = nil) async throws
init · iOS 27.0+

init

TypeScript
static initContentsOf(url: string): Promise<ComputeGraphResource>
Swift declaration
convenience init(contentsOf url: URL) async throws
init · iOS 27.0+

init

TypeScript
static initGraphPipelinesDependencies(graph: _ComputeGraph_ComputeNodeGraph, pipelines: _ComputeGraph_ComputeNodeGraph_Pipelines, dependencies: ComputeGraphResource_Dependencies): Promise<ComputeGraphResource>
Swift declaration
@MainActor convenience init(graph: ComputeNodeGraph, pipelines: ComputeNodeGraph.Pipelines, dependencies: ComputeGraphResource.Dependencies) throws

Skipped declarations

No declarations were skipped in this snapshot.

All _RealityKit_ComputeGraph types →