addLibrary
TypeScriptaddLibrary(library: SDKHandle, bundle?: (string) | null): voidSwift declarationmutating func addLibrary(_ library: any MTLLibrary, bundle: String?)struct · iOS 27.0+ · SDK 27.1
struct PipelinesDescriptorSpecifies the configuration used to compile a set of compute pipelines for a compute graph effect. Use a descriptor when you need explicit control over pipeline compilation — for example, to supply Metal libraries from multiple bundles or to enable debug draw. Pass the configured descriptor to ``ComputeNodeGraph.Pipelines/init(descriptor:)`` to compile. ```swift var descriptor = ComputeNodeGraph.PipelinesDescriptor(assembly: assembly) descriptor.addLibrary(myMTLLibrary, bundle: "com.example.MyEffects") descriptor.options.debugDraw = true let pipelines = try await ComputeNodeGraph.Pipelines(descriptor: descriptor) ```
addLibrary(library: SDKHandle, bundle?: (string) | null): voidSwift declarationmutating func addLibrary(_ library: any MTLLibrary, bundle: String?)setLibrary(library: ComputeNodeGraph_Library): voidSwift declarationmutating func setLibrary(_ library: ComputeNodeGraph.Library)get options(): ComputeNodeGraph_Pipelines_OptionsSwift declarationvar options: ComputeNodeGraph.Pipelines.OptionsOptions controlling pipeline compilation, such as whether debug draw is enabled.
set options(value: ComputeNodeGraph_Pipelines_Options)Swift declarationvar options: ComputeNodeGraph.Pipelines.OptionsOptions controlling pipeline compilation, such as whether debug draw is enabled.
get assembly(): ComputeNodeGraph_AssemblySwift declarationvar assembly: ComputeNodeGraph.AssemblyThe assembled compute graph layout that defines the graph's buffer, uniform, and texture configuration.
set assembly(value: ComputeNodeGraph_Assembly)Swift declarationvar assembly: ComputeNodeGraph.AssemblyThe assembled compute graph layout that defines the graph's buffer, uniform, and texture configuration.
static init(assembly: ComputeNodeGraph_Assembly): ComputeNodeGraph_PipelinesDescriptorSwift declarationinit(assembly: ComputeNodeGraph.Assembly)Creates a descriptor configured for the given graph assembly. `options` defaults to ``Pipelines/Options/init()`` and `libraries` is empty. Add shader libraries with ``addLibrary(_:bundle:)`` before compiling. - Parameter assembly: The assembled compute graph to compile pipelines for.
get libraries(): Array<ComputeNodeGraph_LibraryReference>Swift declarationvar libraries: [ComputeNodeGraph.LibraryReference]The Metal libraries that provide shader function implementations for the graph's nodes.
set libraries(value: Array<ComputeNodeGraph_LibraryReference>)Swift declarationvar libraries: [ComputeNodeGraph.LibraryReference]The Metal libraries that provide shader function implementations for the graph's nodes.
No declarations were skipped in this snapshot.