pub struct EnkiBuilder { /* private fields */ }Expand description
Builder for configuring engine settings before runtime initialization.
Implementations§
Source§impl EnkiBuilder
impl EnkiBuilder
pub fn new() -> Self
Sourcepub fn app_name(self, name: impl Into<String>) -> Self
pub fn app_name(self, name: impl Into<String>) -> Self
Sets the application name reported to the Vulkan driver.
Sourcepub fn param_arena_size(self, size_bytes: u64) -> Self
pub fn param_arena_size(self, size_bytes: u64) -> Self
Sets the maximum capacity in bytes allocated for uniform parameter uploads (ParamArena).
Sourcepub fn init(self) -> Arc<Enki> ⓘ
pub fn init(self) -> Arc<Enki> ⓘ
Finalizes configuration and initializes a headless GPU context.
Sourcepub fn init_windowed<W>(
self,
window: Arc<W>,
width: u32,
height: u32,
) -> Arc<Enki> ⓘ
pub fn init_windowed<W>( self, window: Arc<W>, width: u32, height: u32, ) -> Arc<Enki> ⓘ
Finalizes configuration and initializes a windowed presentation GPU context.
Sourcepub fn max_timestamp_queries(self, count: u32) -> Self
pub fn max_timestamp_queries(self, count: u32) -> Self
Sets the maximum number of hardware timestamp profiling queries per flow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnkiBuilder
impl RefUnwindSafe for EnkiBuilder
impl Send for EnkiBuilder
impl Sync for EnkiBuilder
impl Unpin for EnkiBuilder
impl UnsafeUnpin for EnkiBuilder
impl UnwindSafe for EnkiBuilder
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