Struct wgpu::RenderPipeline
source · pub struct RenderPipeline { /* private fields */ }
Expand description
Handle to a rendering (graphics) pipeline.
A RenderPipeline
object represents a graphics pipeline and its stages, bindings, vertex
buffers and targets. It can be created with Device::create_render_pipeline
.
Corresponds to WebGPU GPURenderPipeline
.
Implementations§
source§impl RenderPipeline
impl RenderPipeline
sourcepub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
pub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
Get an object representing the bind group layout at a given index.
If this pipeline was created with a default layout, then
bind groups created with the returned BindGroupLayout
can only be used with this pipeline.
This method will raise a validation error if there is no bind group layout at index
.
Trait Implementations§
source§impl Debug for RenderPipeline
impl Debug for RenderPipeline
source§impl Hash for RenderPipeline
impl Hash for RenderPipeline
source§impl Ord for RenderPipeline
impl Ord for RenderPipeline
source§impl PartialEq for RenderPipeline
impl PartialEq for RenderPipeline
source§impl PartialOrd for RenderPipeline
impl PartialOrd for RenderPipeline
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RenderPipeline
Auto Trait Implementations§
impl !RefUnwindSafe for RenderPipeline
impl Send for RenderPipeline
impl Sync for RenderPipeline
impl Unpin for RenderPipeline
impl !UnwindSafe for RenderPipeline
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more