Expand description
Layer stack collection.
Given a root USD file, Collector 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 sdf::Layers, each wrapping a
parsed sdf::AbstractData with its resolved identity. Cycles are
detected and skipped automatically.
The sdf::Layer type itself, along with its authoring surface and
persistence (save/save_as), lives in crate::sdf — the Rust
equivalent of C++ SdfLayer.
Structs§
- Collector
- Builder for collecting a root layer and all layers it depends on.
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§
- open_
layer - Opens a single layer from a resolved path, auto-detecting the format.