init
TypeScriptstatic initContentsOfBundle(url: string, bundle?: (_Foundation_Bundle) | null): Promise<ComputeGraphResource>Swift declarationconvenience init(contentsOf url: URL, bundle: Bundle? = nil) async throwsclass · iOS 27.0+ · SDK 27.1
final class ComputeGraphResourceA 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) ```
static initContentsOfBundle(url: string, bundle?: (_Foundation_Bundle) | null): Promise<ComputeGraphResource>Swift declarationconvenience init(contentsOf url: URL, bundle: Bundle? = nil) async throwsstatic initContentsOf(url: string): Promise<ComputeGraphResource>Swift declarationconvenience init(contentsOf url: URL) async throwsstatic 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) throwsNo declarations were skipped in this snapshot.