pub struct WgpuContext {Show 16 fields
pub device: Device,
pub queue: Queue,
pub matmul_pipeline: ComputePipeline,
pub matmul_bind_group_layout: BindGroupLayout,
pub elementwise_pipeline: ComputePipeline,
pub elementwise_bind_group_layout: BindGroupLayout,
pub elementwise_vec4_pipeline: ComputePipeline,
pub adam_pipeline: ComputePipeline,
pub adam_bind_group_layout: BindGroupLayout,
pub reduce_pipeline: ComputePipeline,
pub reduce_general_pipeline: ComputePipeline,
pub reduce_all_pipeline: ComputePipeline,
pub reduce_bind_group_layout: BindGroupLayout,
pub contiguous_pipeline: ComputePipeline,
pub contiguous_bind_group_layout: BindGroupLayout,
pub current_encoder: Mutex<Option<CommandEncoder>>,
}Fields§
§device: Device§queue: Queue§matmul_pipeline: ComputePipeline§matmul_bind_group_layout: BindGroupLayout§elementwise_pipeline: ComputePipeline§elementwise_bind_group_layout: BindGroupLayout§elementwise_vec4_pipeline: ComputePipeline§adam_pipeline: ComputePipeline§adam_bind_group_layout: BindGroupLayout§reduce_pipeline: ComputePipeline§reduce_general_pipeline: ComputePipeline§reduce_all_pipeline: ComputePipeline§reduce_bind_group_layout: BindGroupLayout§contiguous_pipeline: ComputePipeline§contiguous_bind_group_layout: BindGroupLayout§current_encoder: Mutex<Option<CommandEncoder>>Auto Trait Implementations§
impl !Freeze for WgpuContext
impl !RefUnwindSafe for WgpuContext
impl Send for WgpuContext
impl Sync for WgpuContext
impl Unpin for WgpuContext
impl UnsafeUnpin for WgpuContext
impl !UnwindSafe for WgpuContext
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
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