pub struct GpuTarget {
pub device: Arc<Device>,
pub queue: Arc<Queue>,
pub surface_format: TextureFormat,
pub adapter_backend: Backend,
pub adapter_downlevel: DownlevelFlags,
}Expand description
The device a renderer draws with, the surface format it presents and what the adapter behind the device supports.
Fields§
§device: Arc<Device>The device every GPU resource is created on.
queue: Arc<Queue>The queue frames are submitted to.
surface_format: TextureFormatThe format of the surface frames are presented to.
adapter_backend: BackendThe graphics API the adapter runs on.
adapter_downlevel: DownlevelFlagsWhat the adapter supports below the full WebGPU feature set.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GpuTarget
impl !UnwindSafe for GpuTarget
impl Forget for GpuTarget
impl Freeze for GpuTarget
impl Send for GpuTarget
impl Sync for GpuTarget
impl Unpin for GpuTarget
impl UnsafeUnpin for GpuTarget
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