[][src]Struct bedrock::Framebuffer

pub struct Framebuffer(_, _, _, _);

Opaque handle to a framebuffer object

Methods

impl Framebuffer[src]

pub fn new<Sz: AsRef<Extent2D>>(
    mold: &RenderPass,
    attachment_objects: &[&ImageView],
    size: &Sz,
    layers: u32
) -> Result<Self>
[src]

Create a new framebuffer object

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

impl Framebuffer[src]

pub const fn size(&self) -> &Extent2D[src]

pub fn resources(&self) -> &[ImageView][src]

Trait Implementations

impl DeviceChild for Framebuffer[src]

impl Drop for Framebuffer[src]

impl VkHandle for Framebuffer[src]

type Handle = VkFramebuffer

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.