mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 00:55:43 +00:00
Doc comments for the functions this PR touches
This commit is contained in:
1 parent
ac34105a57
commit
8a479a4922
26 files changed
+95
No files matched your search
@@ -297,6 +297,7 @@ impl<'a> Resolver<'a> {
|
||||
}
|
||||
self.comp(c)?.layer(LayerId(l))
|
||||
}
|
||||
/// The evaluation context for comp `c` at time `t` seconds, or `None` when the comp does not exist.
|
||||
fn ctx_at(&self, c: u64, t: f64) -> Option<EvalCtx<'a>> {
|
||||
let comp = self.comp(c)?;
|
||||
let same_comp = c == self.ctx.comp_id.0;
|
||||
|
||||
@@ -46,6 +46,8 @@ fn fingerprint(layer: &Layer) -> u64 {
|
||||
h.finish()
|
||||
}
|
||||
|
||||
/// Renders `layer` of `comp` at time `t` for an expression sample, before or after effects as `post` says.
|
||||
/// Returns `None` once the nesting depth limit is reached.
|
||||
fn render(ctx: EvalCtx, comp: ItemId, layer: &Layer, post: bool, t: f64) -> Option<Sampled> {
|
||||
let depth = DEPTH.with(|d| *d.borrow());
|
||||
if depth >= MAX_DEPTH {
|
||||
|
||||
Reference in new issue
Block a user