[−][src]Struct gaclen::graphics::device::DrawingDevice
A device that is in the middle of drawing a frame.
Methods
impl DrawingDevice
[src]
pub fn draw<PC>(
self,
pass: &impl GraphicalPass,
vertex_buffer: Vec<Arc<dyn BufferAccess + Send + Sync>>,
push_constants: PC
) -> Self
[src]
self,
pass: &impl GraphicalPass,
vertex_buffer: Vec<Arc<dyn BufferAccess + Send + Sync>>,
push_constants: PC
) -> Self
Draw some data.
The exact result depends highly on the GraphicalPass in question. Push-constants should correspond to the ones in the shader used for creating the GraphicalPass.
pub fn finish_frame(
self
) -> (Device, Result<Box<dyn GpuFuture>, FrameFinishError>)
[src]
self
) -> (Device, Result<Box<dyn GpuFuture>, FrameFinishError>)
Finish drawing the frame and flush the commands to the GPU. Note that it does not block execution until the frame is done, rather providing a GpuFuture for when the frame will have been drawn.
Auto Trait Implementations
impl !Send for DrawingDevice
impl !Sync for DrawingDevice
impl Unpin for DrawingDevice
impl !UnwindSafe for DrawingDevice
impl !RefUnwindSafe for DrawingDevice
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,