pub struct GraphicsPipelineDesc<'a> {
pub label: Option<&'a str>,
pub vs_entry: &'a str,
pub fs_entry: &'a str,
pub color_format: TextureFormat,
pub depth_format: Option<TextureFormat>,
pub depth_test: bool,
pub depth_write: bool,
pub sample_count: u32,
pub primitive: PrimitiveState,
pub blend: Option<BlendState>,
}Fields§
§label: Option<&'a str>§vs_entry: &'a str§fs_entry: &'a str§color_format: TextureFormat§depth_format: Option<TextureFormat>§depth_test: bool§depth_write: bool§sample_count: u32§primitive: PrimitiveState§blend: Option<BlendState>Implementations§
Source§impl<'a> GraphicsPipelineDesc<'a>
impl<'a> GraphicsPipelineDesc<'a>
pub fn new( vs_entry: &'a str, fs_entry: &'a str, color_format: TextureFormat, ) -> GraphicsPipelineDesc<'a>
Trait Implementations§
Source§impl<'a> Clone for GraphicsPipelineDesc<'a>
impl<'a> Clone for GraphicsPipelineDesc<'a>
Source§fn clone(&self) -> GraphicsPipelineDesc<'a>
fn clone(&self) -> GraphicsPipelineDesc<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GraphicsPipelineDesc<'a>
impl<'a> RefUnwindSafe for GraphicsPipelineDesc<'a>
impl<'a> Send for GraphicsPipelineDesc<'a>
impl<'a> Sync for GraphicsPipelineDesc<'a>
impl<'a> Unpin for GraphicsPipelineDesc<'a>
impl<'a> UnsafeUnpin for GraphicsPipelineDesc<'a>
impl<'a> UnwindSafe for GraphicsPipelineDesc<'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