Struct wgpu::ComputePipeline
source · 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.
source§impl ComputePipeline
impl ComputePipeline
sourcepub fn global_id(&self) -> Id
Available on crate feature expose-ids
only.
pub fn global_id(&self) -> Id
expose-ids
only.Returns a globally-unique identifier for this ComputePipeline
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be different for all resources created from the same Instance
.