Struct pilka_lib::ash::vk::AttachmentReference2Builder [−]
#[repr(transparent)]pub struct AttachmentReference2Builder<'a> { /* fields omitted */ }
Implementations
impl<'a> AttachmentReference2Builder<'a>
impl<'a> AttachmentReference2Builder<'a>
pub fn attachment(self, attachment: u32) -> AttachmentReference2Builder<'a>
pub fn layout(self, layout: ImageLayout) -> AttachmentReference2Builder<'a>
pub fn aspect_mask(
self,
aspect_mask: ImageAspectFlags
) -> AttachmentReference2Builder<'a>
pub fn push_next<T>(self, next: &'a mut T) -> AttachmentReference2Builder<'a> where
T: ExtendsAttachmentReference2,
pub fn push_next<T>(self, next: &'a mut T) -> AttachmentReference2Builder<'a> where
T: ExtendsAttachmentReference2,
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call builder.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
pub fn build(self) -> AttachmentReference2
pub fn build(self) -> AttachmentReference2
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.
Methods from Deref<Target = AttachmentReference2>
Trait Implementations
impl<'a> Deref for AttachmentReference2Builder<'a>
impl<'a> Deref for AttachmentReference2Builder<'a>
type Target = AttachmentReference2
type Target = AttachmentReference2
The resulting type after dereferencing.
pub fn deref(&self) -> &<AttachmentReference2Builder<'a> as Deref>::Target
pub fn deref(&self) -> &<AttachmentReference2Builder<'a> as Deref>::Target
Dereferences the value.
impl<'a> DerefMut for AttachmentReference2Builder<'a>
impl<'a> DerefMut for AttachmentReference2Builder<'a>
pub fn deref_mut(
&mut self
) -> &mut <AttachmentReference2Builder<'a> as Deref>::Target
pub fn deref_mut(
&mut self
) -> &mut <AttachmentReference2Builder<'a> as Deref>::Target
Mutably dereferences the value.