pub struct NativeHostConfig {
pub backends: Backends,
pub width: u32,
pub height: u32,
pub clear_color: [f32; 4],
pub enable_mask: bool,
pub y_down: bool,
}Expand description
How to build a NativeHost.
Fields§
§backends: BackendsBackends the instance may use. Backends::PRIMARY lets wgpu choose.
width: u32Drawable width in pixels.
height: u32Drawable height in pixels.
clear_color: [f32; 4]Clear colour, straight RGBA in 0..1.
enable_mask: boolAllocate a depth/stencil buffer so mask parts rasterise.
y_down: boolFlip the projection to Y-down (screen coordinates).
Auto Trait Implementations§
impl Freeze for NativeHostConfig
impl RefUnwindSafe for NativeHostConfig
impl Send for NativeHostConfig
impl Sync for NativeHostConfig
impl Unpin for NativeHostConfig
impl UnsafeUnpin for NativeHostConfig
impl UnwindSafe for NativeHostConfig
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