Struct wgpu_biolerless::StateBuilder
source · [−]pub struct StateBuilder<T: WindowSize> { /* private fields */ }Implementations
sourceimpl<T: WindowSize> StateBuilder<T>
impl<T: WindowSize> StateBuilder<T>
pub fn new() -> Self
pub fn window(self, window: T) -> Self
sourcepub fn power_pref(self, power_pref: PowerPreference) -> Self
pub fn power_pref(self, power_pref: PowerPreference) -> Self
The default value is PowerPreference::LowPower
sourcepub fn present_mode(self, present_mode: PresentMode) -> Self
pub fn present_mode(self, present_mode: PresentMode) -> Self
The default value is PresentMode::Fifo
sourcepub fn device_requirements(self, requirements: DeviceRequirements) -> Self
pub fn device_requirements(self, requirements: DeviceRequirements) -> Self
The default value is DeviceRequirements::default()
pub async fn build(self) -> Result<State>
Trait Implementations
sourceimpl<T: WindowSize> Default for StateBuilder<T>
impl<T: WindowSize> Default for StateBuilder<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for StateBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for StateBuilder<T> where
T: Send,
impl<T> Sync for StateBuilder<T> where
T: Sync,
impl<T> Unpin for StateBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for StateBuilder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more