pub struct AttachmentReference2(/* private fields */);
Available on crate feature
VK_KHR_create_renderpass2
only.Implementations§
Source§impl AttachmentReference2
impl AttachmentReference2
pub const fn new( index: u32, aspect_mask: AspectMask, layout: ImageLayout, ) -> Self
Sourcepub const fn color(index: u32, layout: ImageLayout) -> Self
pub const fn color(index: u32, layout: ImageLayout) -> Self
Represents an attachment reference that references color aspect of the attachment.
Sourcepub const fn depth_stencil(index: u32, layout: ImageLayout) -> Self
pub const fn depth_stencil(index: u32, layout: ImageLayout) -> Self
Represents an attachment reference that references depth and stencil aspect of the attachment.
Sourcepub const fn shader_color_readonly_opt(index: u32) -> Self
pub const fn shader_color_readonly_opt(index: u32) -> Self
Optimal constructor for ShaderReadOnlyOpt reference.
Sourcepub const fn color_attachment_opt(index: u32) -> Self
pub const fn color_attachment_opt(index: u32) -> Self
Optimal constructor for ColorAttachmentOpt reference.
Sourcepub const fn depth_stencil_attachment_opt(index: u32) -> Self
pub const fn depth_stencil_attachment_opt(index: u32) -> Self
Optimal constructor for DepthStencilAttachmentOpt reference.
Sourcepub const fn depth_stencil_readonly_opt(index: u32) -> Self
pub const fn depth_stencil_readonly_opt(index: u32) -> Self
Optimal constructor for DepthStencilReadOnlyOpt reference.
Trait Implementations§
Source§impl Clone for AttachmentReference2
impl Clone for AttachmentReference2
Source§fn clone(&self) -> AttachmentReference2
fn clone(&self) -> AttachmentReference2
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 Hash for AttachmentReference2
impl Hash for AttachmentReference2
Source§impl PartialEq for AttachmentReference2
impl PartialEq for AttachmentReference2
impl Eq for AttachmentReference2
impl StructuralPartialEq for AttachmentReference2
Auto Trait Implementations§
impl Freeze for AttachmentReference2
impl RefUnwindSafe for AttachmentReference2
impl !Send for AttachmentReference2
impl !Sync for AttachmentReference2
impl Unpin for AttachmentReference2
impl UnwindSafe for AttachmentReference2
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