Struct vulkano::command_buffer::sys::RenderPassBeginInfo
source · [−]pub struct RenderPassBeginInfo {
pub framebuffer: Arc<Framebuffer>,
pub render_area_offset: [u32; 2],
pub render_area_extent: [u32; 2],
pub clear_values: Vec<ClearValue>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to begin a new render pass.
Fields
framebuffer: Arc<Framebuffer>
The framebuffer to use for rendering.
There is no default value.
render_area_offset: [u32; 2]
The offset from the top left corner of the framebuffer that will be rendered to.
The default value is [0, 0]
.
render_area_extent: [u32; 2]
The size of the area that will be rendered to.
render_area_offset + render_area_extent
must not be greater than [framebuffer.extent()
].
The default value is [framebuffer.extent()
].
clear_values: Vec<ClearValue>
The clear values that should be used for the attachments in the framebuffer.
There must be exactly [framebuffer.attachments().len()
] elements provided, and each one
must match the attachment format.
The default value is empty, which must be overridden if the framebuffer has attachments.
_ne: NonExhaustive
Implementations
sourceimpl RenderPassBeginInfo
impl RenderPassBeginInfo
pub fn framebuffer(framebuffer: Arc<Framebuffer>) -> Self
Trait Implementations
sourceimpl Clone for RenderPassBeginInfo
impl Clone for RenderPassBeginInfo
sourcefn clone(&self) -> RenderPassBeginInfo
fn clone(&self) -> RenderPassBeginInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RenderPassBeginInfo
impl Send for RenderPassBeginInfo
impl Sync for RenderPassBeginInfo
impl Unpin for RenderPassBeginInfo
impl !UnwindSafe for RenderPassBeginInfo
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more