Enum naga::proc::constant_evaluator::WgslRestrictions
source · enum WgslRestrictions<'a> {
Const(Option<FunctionLocalData<'a>>),
Override,
Runtime(FunctionLocalData<'a>),
}
Variants§
Const(Option<FunctionLocalData<'a>>)
- const-expressions will be evaluated and inserted in the arena
Override
- const-expressions will be evaluated and inserted in the arena
- override-expressions will be inserted in the arena
Runtime(FunctionLocalData<'a>)
- const-expressions will be evaluated and inserted in the arena
- override-expressions will be inserted in the arena
- runtime-expressions will be inserted in the arena
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WgslRestrictions<'a>
impl<'a> RefUnwindSafe for WgslRestrictions<'a>
impl<'a> Send for WgslRestrictions<'a>
impl<'a> Sync for WgslRestrictions<'a>
impl<'a> Unpin for WgslRestrictions<'a>
impl<'a> !UnwindSafe for WgslRestrictions<'a>
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