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