pub struct GpuContext { /* private fields */ }Implementations§
Source§impl GpuContext
impl GpuContext
Sourcepub const MINIMUM_LIMITS: Limits
pub const MINIMUM_LIMITS: Limits
The adapter capability this engine requires.
Sourcepub async fn open(request: &GpuRequest) -> Result<Self, GpuUnavailable>
pub async fn open(request: &GpuRequest) -> Result<Self, GpuUnavailable>
Acquire a device for request.
Sourcepub async fn available_adapters(backends: Backends) -> Vec<AdapterInfo>
pub async fn available_adapters(backends: Backends) -> Vec<AdapterInfo>
Every adapter reachable through backends.
pub fn device(&self) -> &Device
pub fn queue(&self) -> &Queue
pub fn adapter_info(&self) -> AdapterInfo
pub fn features(&self) -> Features
pub fn limits(&self) -> &Limits
pub fn supports(&self, features: Features) -> bool
Sourcepub fn timestamp_period_ns(&self) -> f32
pub fn timestamp_period_ns(&self) -> f32
Nanoseconds per timestamp tick.
pub fn device_lost(&self) -> Option<DeviceLost>
pub fn assert_alive(&self)
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