[][src]Struct gaclen::graphics::frame::PassInFrame

pub struct PassInFrame<'a, P: ?Sized> { /* fields omitted */ }

A frame in the process of being drawn using a given GraphicalPass.

Methods

impl<'a, P: ?Sized> PassInFrame<'a, P> where
    P: GraphicsPipelineAbstract + Send + Sync + 'static, 
[src]

pub fn draw<VB, DSC, PC>(
    self,
    vertex_buffer: VB,
    descriptor_sets: DSC,
    push_constants: PC
) -> Self where
    P: VertexSource<VB>,
    DSC: DescriptorSetsCollection
[src]

Draw some data using a pass.

The result depends highly on the GraphicalPass that was used to create the PassInFrame. Push-constants should correspond to the ones in the shader used for creating the GraphicalPass.

Panic.

  • Panics if fails to write draw commands to the command buffer.

pub fn draw_indexed<VB, IB, DSC, PC, I>(
    self,
    vertex_buffer: VB,
    index_buffer: IB,
    descriptor_sets: DSC,
    push_constants: PC
) -> Self where
    P: VertexSource<VB>,
    DSC: DescriptorSetsCollection,
    IB: BufferAccess + TypedBufferAccess<Content = [I]> + Send + Sync + 'static,
    I: Index + 'static, 
[src]

Draw some indexed vertex data using a pass.

The result depends highly on the GraphicalPass that was used to create the PassInFrame. Push-constants should correspond to the ones in the shader used for creating the GraphicalPass.

Panic.

  • Panics if fails to write draw commands to the command buffer.

pub fn finish_pass(self) -> Frame[src]

Finish using a GraphicalPass.

Releases the consumed Frame to begin the next pass or finish the frame.

Panic.

  • Panics if fails to write end renderpass command to the command buffer.

Auto Trait Implementations

impl<'a, P> !RefUnwindSafe for PassInFrame<'a, P>

impl<'a, P> !Send for PassInFrame<'a, P>

impl<'a, P> !Sync for PassInFrame<'a, P>

impl<'a, P: ?Sized> Unpin for PassInFrame<'a, P>

impl<'a, P> !UnwindSafe for PassInFrame<'a, P>

Blanket Implementations

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

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

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

impl<T> Content for T[src]

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

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

impl<T> SafeBorrow<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.