pub struct ComputePipeline { /* private fields */ }
Expand description
Handle to a compute pipeline.
A ComputePipeline
object represents a compute pipeline and its single shader stage.
It can be created with Device::create_compute_pipeline
.
Corresponds to WebGPU GPUComputePipeline
.
Implementations§
Source§impl ComputePipeline
impl ComputePipeline
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 ComputePipeline
impl Debug for ComputePipeline
Source§impl Drop for ComputePipeline
impl Drop for ComputePipeline
Source§impl Hash for ComputePipeline
impl Hash for ComputePipeline
Source§impl Ord for ComputePipeline
impl Ord for ComputePipeline
Source§impl PartialEq for ComputePipeline
impl PartialEq for ComputePipeline
Source§impl PartialOrd for ComputePipeline
impl PartialOrd for ComputePipeline
impl Eq for ComputePipeline
Auto Trait Implementations§
impl Freeze for ComputePipeline
impl !RefUnwindSafe for ComputePipeline
impl Send for ComputePipeline
impl Sync for ComputePipeline
impl Unpin for ComputePipeline
impl !UnwindSafe for ComputePipeline
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.