Struct ash::vk::AttachmentReferenceBuilder
source · [−]#[repr(transparent)]pub struct AttachmentReferenceBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> AttachmentReferenceBuilder<'a>
impl<'a> AttachmentReferenceBuilder<'a>
pub fn attachment(self, attachment: u32) -> Self
pub fn layout(self, layout: ImageLayout) -> Self
sourcepub fn build(self) -> AttachmentReference
pub fn build(self) -> AttachmentReference
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations
sourceimpl<'a> Deref for AttachmentReferenceBuilder<'a>
impl<'a> Deref for AttachmentReferenceBuilder<'a>
type Target = AttachmentReference
type Target = AttachmentReference
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for AttachmentReferenceBuilder<'a>
impl<'a> Send for AttachmentReferenceBuilder<'a>
impl<'a> Sync for AttachmentReferenceBuilder<'a>
impl<'a> Unpin for AttachmentReferenceBuilder<'a>
impl<'a> UnwindSafe for AttachmentReferenceBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more