Struct vulkano::framebuffer::FramebufferBuilder
[−]
[src]
pub struct FramebufferBuilder<Rp, A> { /* fields omitted */ }
Prototype of a framebuffer.
Methods
impl<Rp, A> FramebufferBuilder<Rp, A> where
Rp: RenderPassAbstract,
A: AttachmentsList,
[src]
Rp: RenderPassAbstract,
A: AttachmentsList,
fn add<T>(
self,
attachment: T
) -> Result<FramebufferBuilder<Rp, (A, T)>, FramebufferCreationError> where
T: ImageViewAccess,
[src]
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.
fn boxed(self) -> FramebufferBuilder<Rp, Box<AttachmentsList>> where
A: 'static,
[src]
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.
fn build(self) -> Result<Framebuffer<Rp, A>, FramebufferCreationError>
[src]
Builds the framebuffer.
Trait Implementations
impl<Rp, A> Debug for FramebufferBuilder<Rp, A> where
Rp: Debug,
A: Debug,
[src]
Rp: Debug,
A: Debug,