Skip to main content

ComputePass

Struct ComputePass 

Source
pub struct ComputePass { /* private fields */ }
Expand description

A pass’s encoder state and its validity are two distinct conditions, i.e., the full matrix of (open, ended) x (valid, invalid) is possible.

The presence or absence of the parent Option indicates the pass’s state. The presence or absence of an error in base.error indicates the pass’s validity.

Implementations§

Source§

impl ComputePass

Source

pub fn label(&self) -> Option<&str>

Source

pub fn device(&self) -> &Arc<Device> ⓘ

Source§

impl ComputePass

Source

pub fn end(&mut self)

Source§

impl ComputePass

Source

pub fn set_bind_group( &mut self, index: u32, bind_group: Option<Arc<BindGroup>>, offsets: &[DynamicOffset], )

Source

pub fn set_pipeline(&mut self, compute_pipeline: Arc<ComputePipeline>)

Source

pub fn set_immediates(&mut self, offset: u32, data: &[u8])

Source

pub fn dispatch_workgroups( &mut self, groups_x: u32, groups_y: u32, groups_z: u32, )

Source

pub fn dispatch_workgroups_indirect( &mut self, buffer: Arc<Buffer>, offset: BufferAddress, )

Source

pub fn push_debug_group(&mut self, label: &str, color: u32)

Source

pub fn pop_debug_group(&mut self)

Source

pub fn insert_debug_marker(&mut self, label: &str, color: u32)

Source

pub fn write_timestamp(&mut self, query_set: Arc<QuerySet>, query_index: u32)

Source

pub fn begin_pipeline_statistics_query( &mut self, query_set: Arc<QuerySet>, query_index: u32, )

Source

pub fn end_pipeline_statistics_query(&mut self)

Source

pub fn transition_resources( &mut self, buffer_transitions: impl Iterator<Item = BufferTransition<Arc<Buffer>>>, texture_transitions: impl Iterator<Item = TextureTransition<Arc<TextureView>>>, )

Trait Implementations§

Source§

impl Debug for ComputePass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ResourceType for ComputePass

Source§

const TYPE: &'static str = "ComputePass"

Auto Trait Implementations§

§

impl !RefUnwindSafe for ComputePass

§

impl !UnwindSafe for ComputePass

§

impl Forget for ComputePass

§

impl Freeze for ComputePass
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const DeviceMismatch is !null: Freeze, PhantomData<DeviceMismatch>: Freeze, &'static str: Freeze, String: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, *const BinderError is !null: Freeze, PhantomData<BinderError>: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, PhantomData<ComputeCommand<ArcReferences>>: Freeze, PhantomData<u32>: Freeze, *const ArcInner<CommandEncoder> is !null: Freeze, PhantomData<ArcInner<CommandEncoder>>: Freeze, *const ArcInner<Device> is !null: Freeze, PhantomData<ArcInner<Device>>: Freeze, *const ArcInner<QuerySet> is !null: Freeze, PhantomData<ArcInner<QuerySet>>: Freeze, *const ArcInner<BindGroup> is !null: Freeze, PhantomData<ArcInner<BindGroup>>: Freeze, *const ArcInner<ComputePipeline> is !null: Freeze, PhantomData<ArcInner<ComputePipeline>>: Freeze,

§

impl Move for ComputePass

§

impl Send for ComputePass
where RawVecInner: Send, BoxRaw<DeviceMismatch>: Send, &'static str: Send, String: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, BoxRaw<BinderError>: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, Arc<BindGroup>: Send, Arc<ComputePipeline>: Send, Arc<Buffer>: Send, Arc<QuerySet>: Send, Arc<TextureView>: Send, Arc<CommandEncoder>: Send, Arc<Device>: Send,

§

impl Sync for ComputePass
where RawVecInner: Sync, BoxRaw<DeviceMismatch>: Sync, String: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, BoxRaw<BinderError>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, Arc<BindGroup>: Sync, Arc<ComputePipeline>: Sync, Arc<Buffer>: Sync, Arc<QuerySet>: Sync, Arc<TextureView>: Sync, Arc<CommandEncoder>: Sync, Arc<Device>: Sync,

§

impl Unpin for ComputePass
where *const u8 is !null: Unpin, Box<DeviceMismatch>: Unpin, &'static str: Unpin, String: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, Box<BinderError>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, Arc<BindGroup>: Unpin, Arc<ComputePipeline>: Unpin, Arc<Buffer>: Unpin, Arc<QuerySet>: Unpin, Arc<TextureView>: Unpin, Arc<CommandEncoder>: Unpin, Arc<Device>: Unpin,

§

impl UnsafeUnpin for ComputePass
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const DeviceMismatch is !null: UnsafeUnpin, PhantomData<DeviceMismatch>: UnsafeUnpin, &'static str: UnsafeUnpin, String: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, *const BinderError is !null: UnsafeUnpin, PhantomData<BinderError>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, PhantomData<ComputeCommand<ArcReferences>>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, *const ArcInner<CommandEncoder> is !null: UnsafeUnpin, PhantomData<ArcInner<CommandEncoder>>: UnsafeUnpin, *const ArcInner<Device> is !null: UnsafeUnpin, PhantomData<ArcInner<Device>>: UnsafeUnpin, *const ArcInner<QuerySet> is !null: UnsafeUnpin, PhantomData<ArcInner<QuerySet>>: UnsafeUnpin, *const ArcInner<BindGroup> is !null: UnsafeUnpin, PhantomData<ArcInner<BindGroup>>: UnsafeUnpin, *const ArcInner<ComputePipeline> is !null: UnsafeUnpin, PhantomData<ArcInner<ComputePipeline>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,