Skip to main content

Module layer

Module layer 

Source
Expand description

Layer stack collection.

Given a root USD file, collect_layers uses an ar::Resolver to recursively resolve and load every layer the stage depends on — following sublayers, references, and payloads across files and formats (.usda, .usdc, .usd, .usdz). The result is a Vec of Layers, each wrapping a parsed AbstractData with its resolved identity. Cycles are detected and skipped automatically.

Structs§

Layer
A single loaded layer in the composition.

Enums§

DependencyKind
The kind of layer dependency that triggered a composition error.
Error
An error encountered during layer collection that may be recoverable.

Functions§

collect_layers
Opens a root layer and recursively collects all referenced layers.
collect_layers_with_handler
Like collect_layers but with a custom error handler for recoverable composition failures.
open_layer
Opens a single layer from a resolved path, auto-detecting the format.