pub struct ComputeContext<'a, 'b, 'c, C: ComputeCommand> {
pub graphics: &'a GraphicsDevice,
pub device: &'a Device,
pub queue: &'a Queue,
pub config: &'a SurfaceConfiguration,
pub target_size: PxSize,
pub compute_pass: &'a mut ComputePass<'b>,
pub items: &'c [ComputeBatchItem<'c, C>],
pub input_view: &'a TextureView,
pub output_view: &'a TextureView,
}Expand description
A batch of compute commands within an active compute pass.
The pass textures cover the scene region the batch reads and writes, so
they can be larger than target_size and offset from the window.
Fields§
§graphics: &'a GraphicsDeviceRenderer-owned resource creation and uploads.
device: &'a DeviceWGPU device used to create and manage GPU resources.
queue: &'a QueueQueue for submitting GPU workloads.
config: &'a SurfaceConfigurationSurface configuration describing output formats and dimensions.
target_size: PxSizeSize of the scene region covered by the pass textures.
compute_pass: &'a mut ComputePass<'b>Active compute pass encoder.
items: &'c [ComputeBatchItem<'c, C>]Batch of typed compute items to process.
input_view: &'a TextureViewInput texture view sampled by the compute pass.
output_view: &'a TextureViewOutput texture view written by the compute pass.
Auto Trait Implementations§
impl<'a, 'b, 'c, C> !RefUnwindSafe for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> !UnwindSafe for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> Freeze for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> Send for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> Sync for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> Unpin for ComputeContext<'a, 'b, 'c, C>
impl<'a, 'b, 'c, C> UnsafeUnpin for ComputeContext<'a, 'b, 'c, C>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.