pub struct ComputePassDescriptor<'a> {
pub label: Label<'a>,
pub timestamp_writes: Option<ComputePassTimestampWrites<'a>>,
}Expand description
Describes the attachments of a compute pass.
For use with CommandEncoder::begin_compute_pass.
Corresponds to WebGPU GPUComputePassDescriptor.
Fields§
§label: Label<'a>Debug label of the compute pass. This will show up in graphics debuggers for easy identification.
timestamp_writes: Option<ComputePassTimestampWrites<'a>>Defines which timestamp values will be written for this pass, and where to write them to.
Requires Features::TIMESTAMP_QUERY to be enabled.
Trait Implementations§
Source§impl<'a> Clone for ComputePassDescriptor<'a>
impl<'a> Clone for ComputePassDescriptor<'a>
Source§impl<'a> Debug for ComputePassDescriptor<'a>
impl<'a> Debug for ComputePassDescriptor<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ComputePassDescriptor<'a>
impl<'a> !UnwindSafe for ComputePassDescriptor<'a>
impl<'a> Freeze for ComputePassDescriptor<'a>
impl<'a> Send for ComputePassDescriptor<'a>
impl<'a> Sync for ComputePassDescriptor<'a>
impl<'a> Unpin for ComputePassDescriptor<'a>
impl<'a> UnsafeUnpin for ComputePassDescriptor<'a>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CommonTraits for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more