Struct vulkano::render_pass::FramebufferBuilder [−][src]
pub struct FramebufferBuilder<A> { /* fields omitted */ }
Prototype of a framebuffer.
Implementations
impl<A> FramebufferBuilder<A> where
A: AttachmentsList,
[src]
impl<A> FramebufferBuilder<A> where
A: AttachmentsList,
[src]pub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<(A, T)>, FramebufferCreationError> where
T: ImageViewAbstract,
[src]
pub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<(A, T)>, FramebufferCreationError> where
T: ImageViewAbstract,
[src]Appends an attachment to the prototype of the framebuffer.
Attachments must be added in the same order as the one defined in the render pass.
pub fn boxed(self) -> FramebufferBuilder<Box<dyn AttachmentsList>> where
A: 'static,
[src]
pub fn boxed(self) -> FramebufferBuilder<Box<dyn AttachmentsList>> where
A: 'static,
[src]Turns this builder into a FramebufferBuilder<Rp, Box<AttachmentsList>>
.
This allows you to store the builder in situations where you don’t know in advance the number of attachments.
Note: This is a very rare corner case and you shouldn’t have to use this function in most situations.
pub fn build(self) -> Result<Framebuffer<A>, FramebufferCreationError>
[src]
pub fn build(self) -> Result<Framebuffer<A>, FramebufferCreationError>
[src]Builds the framebuffer.
Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for FramebufferBuilder<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for FramebufferBuilder<A> where
A: Send,
A: Send,
impl<A> Sync for FramebufferBuilder<A> where
A: Sync,
A: Sync,
impl<A> Unpin for FramebufferBuilder<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for FramebufferBuilder<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.