pub struct PassInFrame<'a, P: ?Sized> { /* private fields */ }
Expand description
A frame in the process of being drawn using a given GraphicalPass
.
Implementations§
Source§impl<'a, P> PassInFrame<'a, P>
impl<'a, P> PassInFrame<'a, P>
Sourcepub fn draw<VB, DSC, PC>(
self,
vertex_buffer: VB,
descriptor_sets: DSC,
push_constants: PC,
) -> Selfwhere
P: VertexSource<VB>,
DSC: DescriptorSetsCollection,
pub fn draw<VB, DSC, PC>(
self,
vertex_buffer: VB,
descriptor_sets: DSC,
push_constants: PC,
) -> Selfwhere
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.
Sourcepub fn draw_indexed<VB, IB, DSC, PC, I>(
self,
vertex_buffer: VB,
index_buffer: IB,
descriptor_sets: DSC,
push_constants: PC,
) -> Selfwhere
P: VertexSource<VB>,
DSC: DescriptorSetsCollection,
IB: BufferAccess + TypedBufferAccess<Content = [I]> + Send + Sync + 'static,
I: Index + 'static,
pub fn draw_indexed<VB, IB, DSC, PC, I>(
self,
vertex_buffer: VB,
index_buffer: IB,
descriptor_sets: DSC,
push_constants: PC,
) -> Selfwhere
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.
Sourcepub fn finish_pass(self) -> Frame
pub fn finish_pass(self) -> Frame
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> Freeze for PassInFrame<'a, P>where
P: ?Sized,
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> Unpin for PassInFrame<'a, P>where
P: ?Sized,
impl<'a, P> !UnwindSafe for PassInFrame<'a, P>
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
Source§impl<T> Content for T
impl<T> Content for T
Source§fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§fn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.