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§
- Dependency
Kind - 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_layersbut with a custom error handler for recoverable composition failures. - open_
layer - Opens a single layer from a resolved path, auto-detecting the format.