#[repr(C)]pub struct AttachmentReference {
pub attachment: u32,
pub layout: ImageLayout,
}Expand description
Native structure VkAttachmentReference.
Fields§
§attachment: u32Native field attachment.
layout: ImageLayoutNative field layout.
Implementations§
Source§impl AttachmentReference
impl AttachmentReference
Sourcepub fn set_attachment(self, value: u32) -> Self
pub fn set_attachment(self, value: u32) -> Self
Set native field attachment without native effects.
Sourcepub fn set_layout(self, value: ImageLayout) -> Self
pub fn set_layout(self, value: ImageLayout) -> Self
Set native field layout without native effects.
Trait Implementations§
Source§impl Clone for AttachmentReference
impl Clone for AttachmentReference
impl Copy for AttachmentReference
Auto Trait Implementations§
impl Forget for AttachmentReference
impl Freeze for AttachmentReference
impl Move for AttachmentReference
impl RefUnwindSafe for AttachmentReference
impl Send for AttachmentReference
impl Sync for AttachmentReference
impl Unpin for AttachmentReference
impl UnsafeUnpin for AttachmentReference
impl UnwindSafe for AttachmentReference
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