pub struct RenderPass { /* private fields */ }Implementations§
Source§impl RenderPass
impl RenderPass
pub fn new( device: Arc<Device>, attachment_descriptions: Vec<AttachmentDescription>, subpasses: Vec<Subpass>, subpass_dependencies: Vec<SubpassDependency>, ) -> VkResult<Self>
Sourcepub unsafe fn new_from_create_info(
device: Arc<Device>,
create_info_builder: RenderPassCreateInfoBuilder<'_>,
) -> VkResult<Self>
pub unsafe fn new_from_create_info( device: Arc<Device>, create_info_builder: RenderPassCreateInfoBuilder<'_>, ) -> VkResult<Self>
Safety:
For each subpass:
- if
subpass_description.p_color_attachmentsis not null it must point to an array withsubpass_description.color_attachment_countmany elements. - if
subpass_description.p_input_attachmentsis not null it must point to an array withsubpass_description.input_attachment_countmany elements.
pub fn handle(&self) -> RenderPass
pub fn properties(&self) -> &RenderPassProperties
Trait Implementations§
Source§impl Clone for RenderPass
impl Clone for RenderPass
Source§fn clone(&self) -> RenderPass
fn clone(&self) -> RenderPass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeviceOwned for RenderPass
impl DeviceOwned for RenderPass
Auto Trait Implementations§
impl Freeze for RenderPass
impl RefUnwindSafe for RenderPass
impl Send for RenderPass
impl Sync for RenderPass
impl Unpin for RenderPass
impl UnwindSafe for RenderPass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more