[−][src]Struct gaclen::graphics::frame::PassInFrame
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]
P: GraphicsPipelineAbstract + Send + Sync + 'static,
pub fn draw<VB, DSC, PC>(
self,
vertex_buffer: VB,
descriptor_sets: DSC,
push_constants: PC
) -> Self where
P: VertexSource<VB>,
DSC: DescriptorSetsCollection,
[src]
self,
vertex_buffer: VB,
descriptor_sets: DSC,
push_constants: PC
) -> Self where
P: VertexSource<VB>,
DSC: DescriptorSetsCollection,
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]
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,
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]
T: 'static + ?Sized,
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> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<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>,