Struct egui_render_wgpu::WgpuConfig
source · pub struct WgpuConfig {
pub backends: Backends,
pub power_preference: PowerPreference,
pub device_descriptor: DeviceDescriptor<'static>,
pub surface_formats_priority: Vec<TextureFormat>,
pub surface_config: SurfaceConfiguration,
}Fields§
§backends: Backends§power_preference: PowerPreference§device_descriptor: DeviceDescriptor<'static>§surface_formats_priority: Vec<TextureFormat>If not empty, We will try to iterate over this vector and use the first format that is supported by the surface. If this is empty or none of the formats in this vector are supported, we will just use the first supported format of the surface.
surface_config: SurfaceConfigurationwe will try to use this config if supported. otherwise, the surface recommended options will be used.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WgpuConfig
impl Send for WgpuConfig
impl Sync for WgpuConfig
impl Unpin for WgpuConfig
impl UnwindSafe for WgpuConfig
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