[−][src]Struct nobs_vulkanism::fb::framebuffer::RenderpassFramebufferBuilder
Builder for Framebuffer
This builder is specialized in a way that we do not need to specify any images as attachments. For attachments in the renderpass that have not been externally specified with target the builder creates new images automatically.
Methods
impl<'a, 'b> RenderpassFramebufferBuilder<'a, 'b>
[src]
pub fn new(
pass: &'b Renderpass,
alloc: &'a mut Allocator
) -> RenderpassFramebufferBuilder<'a, 'b>
[src]
pass: &'b Renderpass,
alloc: &'a mut Allocator
) -> RenderpassFramebufferBuilder<'a, 'b>
Build a new framebuffer for the specified renderpass
pub fn target(
self,
index: usize,
image: u64
) -> RenderpassFramebufferBuilder<'a, 'b>
[src]
self,
index: usize,
image: u64
) -> RenderpassFramebufferBuilder<'a, 'b>
Specify image
as rendertarget at position index
.
The builder will use the specified image as attachment.
For the attachment at position index
no image will be created in create.
An image view will still be created.
pub fn extent(self, extent: Extent2D) -> RenderpassFramebufferBuilder<'a, 'b>
[src]
Specyfy the extent of all attachments
pub fn create(self) -> Framebuffer
[src]
Auto Trait Implementations
impl<'a, 'b> Send for RenderpassFramebufferBuilder<'a, 'b>
impl<'a, 'b> Sync for RenderpassFramebufferBuilder<'a, 'b>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,