pub enum StateMode<F> {
Fixed(F),
Dynamic,
}
Expand description
Specifies how a dynamic state is handled by a graphics pipeline.
Variants
Fixed(F)
The pipeline has a fixed value for this state. Previously set dynamic state will be lost when binding it, and will have to be re-set after binding a pipeline that uses it.
Dynamic
The pipeline expects a dynamic value to be set by a command buffer. Previously set dynamic state is not disturbed when binding it.
Trait Implementations
sourceimpl<F: PartialEq> PartialEq<StateMode<F>> for StateMode<F>
impl<F: PartialEq> PartialEq<StateMode<F>> for StateMode<F>
impl<F: Copy> Copy for StateMode<F>
impl<F: Eq> Eq for StateMode<F>
impl<F> StructuralEq for StateMode<F>
impl<F> StructuralPartialEq for StateMode<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for StateMode<F>where
F: RefUnwindSafe,
impl<F> Send for StateMode<F>where
F: Send,
impl<F> Sync for StateMode<F>where
F: Sync,
impl<F> Unpin for StateMode<F>where
F: Unpin,
impl<F> UnwindSafe for StateMode<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more