Trait vulkano::render_pass::FramebufferAbstract [−][src]
pub unsafe trait FramebufferAbstract { fn inner(&self) -> FramebufferSys<'_>; fn dimensions(&self) -> [u32; 3]; fn render_pass(&self) -> &Arc<RenderPass>; fn attached_image_view(
&self,
index: usize
) -> Option<&dyn ImageViewAbstract>; fn width(&self) -> u32 { ... } fn height(&self) -> u32 { ... } fn layers(&self) -> u32 { ... } }
Expand description
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
fn inner(&self) -> FramebufferSys<'_>
fn inner(&self) -> FramebufferSys<'_>
Returns an opaque struct that represents the framebuffer’s internals.
fn dimensions(&self) -> [u32; 3]
fn dimensions(&self) -> [u32; 3]
Returns the width, height and array layers of the framebuffer.
fn render_pass(&self) -> &Arc<RenderPass>
fn render_pass(&self) -> &Arc<RenderPass>
Returns the render pass this framebuffer was created for.
fn attached_image_view(&self, index: usize) -> Option<&dyn ImageViewAbstract>
fn attached_image_view(&self, index: usize) -> Option<&dyn ImageViewAbstract>
Returns the attachment of the framebuffer with the given index.
If the index
is not between 0
and num_attachments
, then None
should be returned.