Struct wgpu_core::command::compute::ComputePass
source · pub struct ComputePass {
base: Option<BasePass<ArcComputeCommand>>,
parent: Option<Arc<CommandBuffer>>,
timestamp_writes: Option<ArcPassTimestampWrites>,
current_bind_groups: BindGroupStateChange,
current_pipeline: StateChange<ComputePipelineId>,
}
Fields§
§base: Option<BasePass<ArcComputeCommand>>
All pass data & records is stored here.
If this is None
, the pass is in the ‘ended’ state and can no longer be used.
Any attempt to record more commands will result in a validation error.
parent: Option<Arc<CommandBuffer>>
Parent command buffer that this pass records commands into.
If it is none, this pass is invalid and any operation on it will return an error.
timestamp_writes: Option<ArcPassTimestampWrites>
§current_bind_groups: BindGroupStateChange
§current_pipeline: StateChange<ComputePipelineId>
Implementations§
source§impl ComputePass
impl ComputePass
sourcefn new(
parent: Option<Arc<CommandBuffer>>,
desc: ArcComputePassDescriptor<'_>,
) -> Self
fn new( parent: Option<Arc<CommandBuffer>>, desc: ArcComputePassDescriptor<'_>, ) -> Self
If the parent command buffer is invalid, the returned pass will be invalid.
pub fn label(&self) -> Option<&str>
fn base_mut<'a>( &'a mut self, scope: PassErrorScope, ) -> Result<&'a mut BasePass<ArcComputeCommand>, ComputePassError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComputePass
impl !RefUnwindSafe for ComputePass
impl Send for ComputePass
impl Sync for ComputePass
impl Unpin for ComputePass
impl !UnwindSafe for ComputePass
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