Trait vulkano::framebuffer::FramebufferAbstract [] [src]

pub unsafe trait FramebufferAbstract: RenderPassAbstract {
    fn inner(&self) -> FramebufferSys;
    fn dimensions(&self) -> [u32; 3];
    fn attachments(&self) -> Vec<&ImageViewAccess>;

    fn width(&self) -> u32 { ... }
    fn height(&self) -> u32 { ... }
    fn layers(&self) -> u32 { ... }
}

Trait for objects that contain a Vulkan framebuffer object.

Any Framebuffer object implements this trait. You can therefore turn a Arc<Framebuffer<_>> into a Arc<FramebufferAbstract + Send + Sync> for easier storage.

Required Methods

Returns an opaque struct that represents the framebuffer's internals.

Returns the width, height and array layers of the framebuffer.

Returns all the attachments of the framebuffer.

Provided Methods

Returns the width of the framebuffer in pixels.

Returns the height of the framebuffer in pixels.

Returns the number of layers (or depth) of the framebuffer.

Implementors