pub struct SignedDistanceGrid { /* private fields */ }Expand description
Precomputed signed samples plus exact cached boundary guards for thin features. All data is immutable and can be shared through SceneContext::cache.
Implementations§
Source§impl SignedDistanceGrid
impl SignedDistanceGrid
Sourcepub fn cached<Key: Eq + Hash + Send + Sync + 'static>(
context: &SceneContext<'_>,
key: Key,
surface: Arc<VectorSurface>,
bounds: Rect,
dimensions: [u32; 2],
limits: SimulationLimits,
) -> Result<Arc<Self>, ValidationError>
pub fn cached<Key: Eq + Hash + Send + Sync + 'static>( context: &SceneContext<'_>, key: Key, surface: Arc<VectorSurface>, bounds: Rect, dimensions: [u32; 2], limits: SimulationLimits, ) -> Result<Arc<Self>, ValidationError>
Shares prepared immutable grids in the existing bounded SceneCache. The key includes geometry identity, resolution and preparation budgets.
Sourcepub fn new(
surface: Arc<VectorSurface>,
bounds: Rect,
dimensions: [u32; 2],
limits: SimulationLimits,
) -> Result<Self, ValidationError>
pub fn new( surface: Arc<VectorSurface>, bounds: Rect, dimensions: [u32; 2], limits: SimulationLimits, ) -> Result<Self, ValidationError>
Prepares an explicitly resolved grid under SimulationLimits; no downsampling fallback.
Trait Implementations§
Source§impl Clone for SignedDistanceGrid
impl Clone for SignedDistanceGrid
Auto Trait Implementations§
impl !RefUnwindSafe for SignedDistanceGrid
impl !UnwindSafe for SignedDistanceGrid
impl Forget for SignedDistanceGrid
impl Freeze for SignedDistanceGrid
impl Send for SignedDistanceGrid
impl Sync for SignedDistanceGrid
impl Unpin for SignedDistanceGrid
impl UnsafeUnpin for SignedDistanceGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more