[][src]Struct gaclen::graphics::device::DrawingDevice

pub struct DrawingDevice { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Content for T[src]