pub struct PipelineBuilder<'a> { /* private fields */ }Expand description
Builder for creating render pipelines.
Implementations§
Source§impl<'a> PipelineBuilder<'a>
impl<'a> PipelineBuilder<'a>
Sourcepub fn vertex_entry(self, entry: &'a str) -> Self
pub fn vertex_entry(self, entry: &'a str) -> Self
Set the vertex shader entry point.
Sourcepub fn fragment_entry(self, entry: &'a str) -> Self
pub fn fragment_entry(self, entry: &'a str) -> Self
Set the fragment shader entry point.
Sourcepub fn target_format(self, format: TextureFormat) -> Self
pub fn target_format(self, format: TextureFormat) -> Self
Set the render target format.
Sourcepub fn blend(self, blend: BlendState) -> Self
pub fn blend(self, blend: BlendState) -> Self
Set the blend state.
Sourcepub fn alpha_blend(self) -> Self
pub fn alpha_blend(self) -> Self
Enable alpha blending.
Sourcepub fn front_face(self, front_face: FrontFace) -> Self
pub fn front_face(self, front_face: FrontFace) -> Self
Set the front face winding order.
Sourcepub fn polygon_mode(self, mode: PolygonMode) -> Self
pub fn polygon_mode(self, mode: PolygonMode) -> Self
Set the polygon mode (fill, line, point).
Sourcepub fn topology(self, topology: PrimitiveTopology) -> Self
pub fn topology(self, topology: PrimitiveTopology) -> Self
Set the primitive topology.
Sourcepub fn depth_format(self, format: TextureFormat) -> Self
pub fn depth_format(self, format: TextureFormat) -> Self
Set the depth texture format.
Sourcepub fn build(self) -> RenderPipeline
pub fn build(self) -> RenderPipeline
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PipelineBuilder<'a>
impl<'a> !UnwindSafe for PipelineBuilder<'a>
impl<'a> Freeze for PipelineBuilder<'a>
impl<'a> Send for PipelineBuilder<'a>
impl<'a> Sync for PipelineBuilder<'a>
impl<'a> Unpin for PipelineBuilder<'a>
impl<'a> UnsafeUnpin for PipelineBuilder<'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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.