pub struct GpuContext { /* private fields */ }Implementations§
Source§impl GpuContext
impl GpuContext
pub const MINIMUM_LIMITS: Limits
pub async fn open(request: &GpuRequest) -> Result<Self, GpuUnavailable>
pub async fn new() -> Self
pub async fn available_adapters(backends: Backends) -> Vec<AdapterInfo>
pub fn device(&self) -> &Device
pub fn queue(&self) -> &Queue
pub fn adapter_info(&self) -> AdapterInfo
pub fn features(&self) -> Features
pub fn workgroups_per_row(&self) -> u32
pub fn limits(&self) -> &Limits
pub fn supports(&self, features: Features) -> bool
pub fn timestamp_period_ns(&self) -> f32
pub fn device_lost(&self) -> Option<DeviceLost>
pub fn assert_alive(&self)
pub fn poll(&self)
pub fn declare(&self, program: ComputeProgram) -> PipelineHandle
pub fn warmup(&self, budget: WarmupBudget) -> WarmupProgress
pub fn is_warm(&self) -> bool
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