GraphicsContextExt

Trait GraphicsContextExt 

Source
pub trait GraphicsContextExt {
    // Required methods
    fn device(&self) -> &Device;
    fn queue(&self) -> &Queue;
    fn adapter(&self) -> &Adapter;
    fn instance(&self) -> &Instance;
}
Expand description

Extended access to GraphicsContext internals.

This trait provides direct access to the underlying wgpu components for advanced use cases that require raw wgpu operations.

Required Methods§

Source

fn device(&self) -> &Device

Get a reference to the wgpu device.

Source

fn queue(&self) -> &Queue

Get a reference to the wgpu queue.

Source

fn adapter(&self) -> &Adapter

Get a reference to the wgpu adapter.

Source

fn instance(&self) -> &Instance

Get a reference to the wgpu instance.

Implementations on Foreign Types§

Source§

impl GraphicsContextExt for Arc<GraphicsContext>

Source§

fn device(&self) -> &Device

Source§

fn queue(&self) -> &Queue

Source§

fn adapter(&self) -> &Adapter

Source§

fn instance(&self) -> &Instance

Implementors§