pub struct DrawPassManager { /* private fields */ }
Expand description
Manages the draw passes.
Implementations§
Source§impl DrawPassManager
impl DrawPassManager
Sourcepub fn new<R>(
gfx_queue: Arc<Queue>,
subpass: Subpass<R>,
viewport_dimensions: [u32; 2],
) -> DrawPassManager
pub fn new<R>( gfx_queue: Arc<Queue>, subpass: Subpass<R>, viewport_dimensions: [u32; 2], ) -> DrawPassManager
Initializes a triangle drawing system.
Sourcepub fn recreate_camera_set(&mut self, camera: Arc<RwLock<dyn Camera>>)
pub fn recreate_camera_set(&mut self, camera: Arc<RwLock<dyn Camera>>)
Recreates the Projection and view matrix.
Sourcepub fn draw(&self) -> AutoCommandBuffer
pub fn draw(&self) -> AutoCommandBuffer
Builds a secondary command buffer that draws the triangle on the current subpass.
Auto Trait Implementations§
impl !Freeze for DrawPassManager
impl !RefUnwindSafe for DrawPassManager
impl Send for DrawPassManager
impl Sync for DrawPassManager
impl Unpin for DrawPassManager
impl !UnwindSafe for DrawPassManager
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.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more