clay_core/view/
view.rs

1use std::collections::HashSet;
2use crate::prelude::*;
3
4
5/// View is an entity the represents virtual camera.
6///
7/// It produce initial rays (we use backward ray propagation) and defines their origin point and direction.
8pub trait View: Store {
9    /// Source code of the view.
10    fn source(cache: &mut HashSet<u64>) -> String;
11}