pub struct Gpu<B: Backend> { /* private fields */ }
Expand description
Commands oriented around creating resources on & for the GPU.
Implementations§
Source§impl<RenderBackend: Backend> Gpu<RenderBackend>
impl<RenderBackend: Backend> Gpu<RenderBackend>
Sourcepub fn submit_command_buffer<'render_context>(
&mut self,
command_buffer: &mut CommandBuffer<'_, RenderBackend>,
signal_semaphores: Vec<&RenderSemaphore<RenderBackend>>,
fence: &mut RenderSubmissionFence<RenderBackend>,
)
pub fn submit_command_buffer<'render_context>( &mut self, command_buffer: &mut CommandBuffer<'_, RenderBackend>, signal_semaphores: Vec<&RenderSemaphore<RenderBackend>>, fence: &mut RenderSubmissionFence<RenderBackend>, )
Submits a command buffer to the GPU.
Sourcepub fn render_to_surface(
&mut self,
surface: &mut Surface<RenderBackend>,
semaphore: &mut RenderSemaphore<RenderBackend>,
) -> Result<(), &str>
pub fn render_to_surface( &mut self, surface: &mut Surface<RenderBackend>, semaphore: &mut RenderSemaphore<RenderBackend>, ) -> Result<(), &str>
Render to the surface and return the result from the GPU.
Auto Trait Implementations§
impl<B> Freeze for Gpu<B>
impl<B> RefUnwindSafe for Gpu<B>where
<B as Backend>::PhysicalDevice: RefUnwindSafe,
<B as Backend>::Device: RefUnwindSafe,
<B as Backend>::QueueFamily: RefUnwindSafe,
<B as Backend>::Queue: RefUnwindSafe,
impl<B> Send for Gpu<B>
impl<B> Sync for Gpu<B>
impl<B> Unpin for Gpu<B>
impl<B> UnwindSafe for Gpu<B>where
<B as Backend>::PhysicalDevice: UnwindSafe,
<B as Backend>::Device: UnwindSafe,
<B as Backend>::QueueFamily: UnwindSafe,
<B as Backend>::Queue: UnwindSafe,
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