pub struct ColorTargetState { /* private fields */ }Expand description
One entry of a fragment stage’s targets array: the format of that
color attachment and how fragments write into it.
Implementations§
Source§impl ColorTargetState
Named constructors for the pipeline state structs, whose derived
new skips every field and therefore takes no arguments.
impl ColorTargetState
Named constructors for the pipeline state structs, whose derived
new skips every field and therefore takes no arguments.
Each constructor takes the fields that actually vary in practice and
derives the rest from the type’s Default; the ones left out are
mutated through the lombok setters afterwards.
Sourcepub fn for_format(format: GpuTextureFormat) -> Self
pub fn for_format(format: GpuTextureFormat) -> Self
Source§impl ColorTargetState
impl ColorTargetState
pub fn get_format(&self) -> GpuTextureFormat
pub fn get_mut_format(&mut self) -> &mut GpuTextureFormat
pub fn set_format(&mut self, val: GpuTextureFormat) -> &mut Self
pub fn get_blend(&self) -> Option<BlendState>
pub fn try_get_blend(&self) -> Option<BlendState>
pub fn get_mut_blend(&mut self) -> &mut Option<BlendState>
pub fn set_blend(&mut self, val: Option<BlendState>) -> &mut Self
pub fn get_write_mask(&self) -> u32
pub fn get_mut_write_mask(&mut self) -> &mut u32
pub fn set_write_mask(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for ColorTargetState
impl Clone for ColorTargetState
impl Copy for ColorTargetState
Source§impl Debug for ColorTargetState
impl Debug for ColorTargetState
Auto Trait Implementations§
impl Freeze for ColorTargetState
impl RefUnwindSafe for ColorTargetState
impl Send for ColorTargetState
impl Sync for ColorTargetState
impl Unpin for ColorTargetState
impl UnsafeUnpin for ColorTargetState
impl UnwindSafe for ColorTargetState
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