pub struct GpuBuilder { /* private fields */ }
Expand description
GpuBuilder for constructing a GPU
Implementations§
Source§impl GpuBuilder
impl GpuBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new GpuBuilder to configure and build a GPU to use for rendering.
Sourcepub fn with_render_queue_type(self, queue_type: RenderQueueType) -> Self
pub fn with_render_queue_type(self, queue_type: RenderQueueType) -> Self
Set the type of queue to use for rendering. The GPU defaults to graphical.
Auto Trait Implementations§
impl Freeze for GpuBuilder
impl RefUnwindSafe for GpuBuilder
impl Send for GpuBuilder
impl Sync for GpuBuilder
impl Unpin for GpuBuilder
impl UnwindSafe for GpuBuilder
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