Struct vulkano::framebuffer::FramebufferBuilder
source · pub struct FramebufferBuilder<Rp, A> { /* private fields */ }
Expand description
Prototype of a framebuffer.
Implementations
sourceimpl<Rp, A> FramebufferBuilder<Rp, A>where
Rp: RenderPassAbstract,
A: AttachmentsList,
impl<Rp, A> FramebufferBuilder<Rp, A>where
Rp: RenderPassAbstract,
A: AttachmentsList,
sourcepub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<Rp, (A, T)>, FramebufferCreationError>where
T: ImageViewAccess,
pub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<Rp, (A, T)>, FramebufferCreationError>where
T: ImageViewAccess,
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.
sourcepub fn boxed(self) -> FramebufferBuilder<Rp, Box<dyn AttachmentsList>>where
A: 'static,
pub fn boxed(self) -> FramebufferBuilder<Rp, Box<dyn AttachmentsList>>where
A: 'static,
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.
sourcepub fn build(self) -> Result<Framebuffer<Rp, A>, FramebufferCreationError>
pub fn build(self) -> Result<Framebuffer<Rp, A>, FramebufferCreationError>
Builds the framebuffer.
Trait Implementations
Auto Trait Implementations
impl<Rp, A> RefUnwindSafe for FramebufferBuilder<Rp, A>where
A: RefUnwindSafe,
Rp: RefUnwindSafe,
impl<Rp, A> Send for FramebufferBuilder<Rp, A>where
A: Send,
Rp: Send,
impl<Rp, A> Sync for FramebufferBuilder<Rp, A>where
A: Sync,
Rp: Sync,
impl<Rp, A> Unpin for FramebufferBuilder<Rp, A>where
A: Unpin,
Rp: Unpin,
impl<Rp, A> UnwindSafe for FramebufferBuilder<Rp, A>where
A: UnwindSafe,
Rp: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn 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.
sourcefn 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.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.