Struct vulkano::render_pass::FramebufferBuilder [−][src]
pub struct FramebufferBuilder<A> { /* fields omitted */ }
Expand description
Prototype of a framebuffer.
Implementations
pub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<(A, T)>, FramebufferCreationError> where
T: ImageViewAbstract,
pub fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<(A, T)>, FramebufferCreationError> where
T: ImageViewAbstract,
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.
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.
Builds the framebuffer.
Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for FramebufferBuilder<A> where
A: RefUnwindSafe,
impl<A> Send for FramebufferBuilder<A> where
A: Send,
impl<A> Sync for FramebufferBuilder<A> where
A: Sync,
impl<A> Unpin for FramebufferBuilder<A> where
A: Unpin,
impl<A> UnwindSafe for FramebufferBuilder<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.