pub struct GpuContext {
pub instance: Instance,
pub adapter: Adapter,
pub device: Device,
pub queue: Queue,
/* private fields */
}Fields§
§instance: Instance§adapter: Adapter§device: Device§queue: QueueImplementations§
Source§impl GpuContext
impl GpuContext
pub async fn new( instance: Instance, request: FeatureRequest, compatible_surface: Option<&Surface<'_>>, ) -> Result<Self>
pub fn take_device_loss(&self) -> Option<DeviceLoss>
pub fn take_uncaptured_error(&self) -> Option<UncapturedGpuError>
Auto Trait Implementations§
impl Freeze for GpuContext
impl !RefUnwindSafe for GpuContext
impl Send for GpuContext
impl Sync for GpuContext
impl Unpin for GpuContext
impl UnsafeUnpin for GpuContext
impl !UnwindSafe 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