pub trait RenderHints {
// Required methods
fn tile_sizes_3d() -> TileSizes;
fn tile_sizes_2d() -> TileSizes;
// Provided method
fn simplify_tree_during_meshing(_d: usize) -> bool { ... }
}
Expand description
Hints for how to render this particular type
This is a bit of a grab-bag trait for both rasterization and meshing; it’s
in fidget-core
so that other evaluators can implement it without needing
to depend on fidget-raster
or fidget-mesh
.
Required Methods§
Sourcefn tile_sizes_3d() -> TileSizes
fn tile_sizes_3d() -> TileSizes
Recommended tile sizes for 3D rendering
Sourcefn tile_sizes_2d() -> TileSizes
fn tile_sizes_2d() -> TileSizes
Recommended tile sizes for 2D rendering
Provided Methods§
Sourcefn simplify_tree_during_meshing(_d: usize) -> bool
fn simplify_tree_during_meshing(_d: usize) -> bool
Indicates whether we run tape simplification at the given cell depth during meshing.
By default, this is always true; for evaluators where simplification is more expensive than evaluation (i.e. the JIT), it may only be true at certain depths.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.