pub struct PrecisionScope { /* private fields */ }Expand description
RAII guard activating a capability-validated PrecisionPolicy on one
crate::Runtime.
Restores the runtime’s previous precision override (or environment fallback)
when dropped or explicitly closed via Self::close. Dropping never
submits or waits on Vulkan work.
Implementations§
Source§impl PrecisionScope
impl PrecisionScope
Sourcepub const fn effective(&self) -> EffectivePrecision
pub const fn effective(&self) -> EffectivePrecision
Return the resolved effective precision active inside this scope.
Trait Implementations§
Source§impl Drop for PrecisionScope
impl Drop for PrecisionScope
Auto Trait Implementations§
impl !RefUnwindSafe for PrecisionScope
impl !Send for PrecisionScope
impl !Sync for PrecisionScope
impl !UnwindSafe for PrecisionScope
impl Forget for PrecisionScope
impl Freeze for PrecisionScope
impl Move for PrecisionScope
impl Unpin for PrecisionScope
impl UnsafeUnpin for PrecisionScopewhere
*const RcInner<RefCell<RuntimeState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<RuntimeState>>>: UnsafeUnpin,
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