One Logo Pool Ball
ComputeGraph · IOS API REFERENCE

ComputeNodeGraph.PipelinesDescriptor

struct · iOS 27.0+ · SDK 27.1

struct PipelinesDescriptor

Specifies 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) ```

Members (9)

method · iOS 27.0+

addLibrary

TypeScript
addLibrary(library: SDKHandle, bundle?: (string) | null): void
Swift declaration
mutating func addLibrary(_ library: any MTLLibrary, bundle: String?)
method · iOS 27.0+

setLibrary

TypeScript
setLibrary(library: ComputeNodeGraph_Library): void
Swift declaration
mutating func setLibrary(_ library: ComputeNodeGraph.Library)
get · iOS 27.0+

options

TypeScript
get options(): ComputeNodeGraph_Pipelines_Options
Swift declaration
var options: ComputeNodeGraph.Pipelines.Options

Options controlling pipeline compilation, such as whether debug draw is enabled.

set · iOS 27.0+

options

TypeScript
set options(value: ComputeNodeGraph_Pipelines_Options)
Swift declaration
var options: ComputeNodeGraph.Pipelines.Options

Options controlling pipeline compilation, such as whether debug draw is enabled.

get · iOS 27.0+

assembly

TypeScript
get assembly(): ComputeNodeGraph_Assembly
Swift declaration
var assembly: ComputeNodeGraph.Assembly

The assembled compute graph layout that defines the graph's buffer, uniform, and texture configuration.

set · iOS 27.0+

assembly

TypeScript
set assembly(value: ComputeNodeGraph_Assembly)
Swift declaration
var assembly: ComputeNodeGraph.Assembly

The assembled compute graph layout that defines the graph's buffer, uniform, and texture configuration.

init · iOS 27.0+

init

TypeScript
static init(assembly: ComputeNodeGraph_Assembly): ComputeNodeGraph_PipelinesDescriptor
Swift declaration
init(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 · iOS 27.0+

libraries

TypeScript
get libraries(): Array<ComputeNodeGraph_LibraryReference>
Swift declaration
var libraries: [ComputeNodeGraph.LibraryReference]

The Metal libraries that provide shader function implementations for the graph's nodes.

set · iOS 27.0+

libraries

TypeScript
set libraries(value: Array<ComputeNodeGraph_LibraryReference>)
Swift declaration
var libraries: [ComputeNodeGraph.LibraryReference]

The Metal libraries that provide shader function implementations for the graph's nodes.

Skipped declarations

No declarations were skipped in this snapshot.

All ComputeGraph types →