pub struct RenderPipelineDescriptor { /* private fields */ }Expand description
The single full-control render pipeline constructor.
This is the one type a caller needs for any render pipeline: the
renderer assembles it into a GpuRenderPipelineDescriptor and hands
that to device.createRenderPipeline. Every narrower renderer method
is sugar over this struct — create_render_pipeline is a preset with
auto layout, triangle-list topology, no culling, and a single
Rgba8Unorm target, and create_render_pipeline_full is the same
preset with vertex buffers and a depth-stencil state added. Reach for
this type when either of those presets is too narrow, and for nothing
else.
Implementations§
Source§impl RenderPipelineDescriptor
impl RenderPipelineDescriptor
pub fn get_vertex(&self) -> &VertexState
pub fn get_primitive(&self) -> &PrimitiveState
pub fn get_depth_stencil(&self) -> DepthStencilState
pub fn try_get_depth_stencil(&self) -> &Option<DepthStencilState>
pub fn get_multisample(&self) -> &MultisampleState
pub fn get_fragment(&self) -> FragmentState
pub fn try_get_fragment(&self) -> &Option<FragmentState>
Source§impl RenderPipelineDescriptor
impl RenderPipelineDescriptor
pub fn new( vertex: VertexState, primitive: PrimitiveState, depth_stencil: Option<DepthStencilState>, multisample: MultisampleState, fragment: Option<FragmentState>, ) -> Self
Trait Implementations§
Source§impl Clone for RenderPipelineDescriptor
impl Clone for RenderPipelineDescriptor
Auto Trait Implementations§
impl Freeze for RenderPipelineDescriptor
impl RefUnwindSafe for RenderPipelineDescriptor
impl Send for RenderPipelineDescriptor
impl Sync for RenderPipelineDescriptor
impl Unpin for RenderPipelineDescriptor
impl UnsafeUnpin for RenderPipelineDescriptor
impl UnwindSafe for RenderPipelineDescriptor
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