Struct vulkano::render_pass::Framebuffer
source · [−]pub struct Framebuffer { /* private fields */ }
Expand description
The image views that are attached to a render pass during drawing.
A framebuffer is a collection of images, and supplies the actual inputs and outputs of each attachment within a render pass. Each attachment point in the render pass must have a matching image in the framebuffer.
use vulkano::render_pass::{Framebuffer, FramebufferCreateInfo};
// let render_pass: Arc<_> = ...;
let framebuffer = Framebuffer::new(
render_pass.clone(),
FramebufferCreateInfo {
attachments: vec![view],
..Default::default()
},
).unwrap();
Implementations
sourceimpl Framebuffer
impl Framebuffer
sourcepub fn new(
render_pass: Arc<RenderPass>,
create_info: FramebufferCreateInfo
) -> Result<Arc<Framebuffer>, FramebufferCreationError>
pub fn new(
render_pass: Arc<RenderPass>,
create_info: FramebufferCreateInfo
) -> Result<Arc<Framebuffer>, FramebufferCreationError>
Creates a new Framebuffer
.
sourcepub fn render_pass(&self) -> &Arc<RenderPass>
pub fn render_pass(&self) -> &Arc<RenderPass>
Returns the renderpass that was used to create this framebuffer.
sourcepub fn attachments(&self) -> &[Arc<dyn ImageViewAbstract>]
pub fn attachments(&self) -> &[Arc<dyn ImageViewAbstract>]
Returns the attachments of the framebuffer.
Trait Implementations
sourceimpl Debug for Framebuffer
impl Debug for Framebuffer
sourceimpl DeviceOwned for Framebuffer
impl DeviceOwned for Framebuffer
sourceimpl Drop for Framebuffer
impl Drop for Framebuffer
sourceimpl Hash for Framebuffer
impl Hash for Framebuffer
sourceimpl PartialEq<Framebuffer> for Framebuffer
impl PartialEq<Framebuffer> for Framebuffer
sourceimpl VulkanObject for Framebuffer
impl VulkanObject for Framebuffer
type Object = Framebuffer
type Object = Framebuffer
The type of the object.
sourcefn internal_object(&self) -> Framebuffer
fn internal_object(&self) -> Framebuffer
Returns a reference to the object.
impl Eq for Framebuffer
Auto Trait Implementations
impl !RefUnwindSafe for Framebuffer
impl Send for Framebuffer
impl Sync for Framebuffer
impl Unpin for Framebuffer
impl !UnwindSafe for Framebuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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