Struct gfx_hal::pso::BakedStates
source · pub struct BakedStates {
pub viewport: Option<Viewport>,
pub scissor: Option<Rect>,
pub blend_color: Option<ColorValue>,
pub depth_bounds: Option<Range<f32>>,
}
Expand description
Baked-in pipeline states.
Fields
viewport: Option<Viewport>
Static viewport. TODO: multiple viewports
scissor: Option<Rect>
Static scissor. TODO: multiple scissors
blend_color: Option<ColorValue>
Static blend constant color.
depth_bounds: Option<Range<f32>>
Static depth bounds.
Trait Implementations
sourceimpl Clone for BakedStates
impl Clone for BakedStates
sourcefn clone(&self) -> BakedStates
fn clone(&self) -> BakedStates
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BakedStates
impl Debug for BakedStates
sourceimpl Default for BakedStates
impl Default for BakedStates
sourcefn default() -> BakedStates
fn default() -> BakedStates
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BakedStates> for BakedStates
impl PartialEq<BakedStates> for BakedStates
sourcefn eq(&self, other: &BakedStates) -> bool
fn eq(&self, other: &BakedStates) -> bool
impl StructuralPartialEq for BakedStates
Auto Trait Implementations
impl RefUnwindSafe for BakedStates
impl Send for BakedStates
impl Sync for BakedStates
impl Unpin for BakedStates
impl UnwindSafe for BakedStates
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