pub struct GpuContext { /* private fields */ }Implementations§
Source§impl GpuContext
impl GpuContext
pub async fn new() -> Self
pub fn device(&self) -> &Device
pub fn queue(&self) -> &Queue
pub fn adapter_info(&self) -> AdapterInfo
pub fn compute_pipeline( &self, label: &str, shader: &str, entry: &str, groups: &[&[BindingSpec]], workgroup_size: u32, ) -> ComputePipeline
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GpuContext
impl !UnwindSafe for GpuContext
impl Freeze for GpuContext
impl Send for GpuContext
impl Sync for GpuContext
impl Unpin for GpuContext
impl UnsafeUnpin for GpuContext
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