#[repr(transparent)]pub struct AttachmentDescriptionBuilder<'a> { /* private fields */ }Implementations
sourceimpl<'a> AttachmentDescriptionBuilder<'a>
impl<'a> AttachmentDescriptionBuilder<'a>
pub fn flags(
self,
flags: AttachmentDescriptionFlags
) -> AttachmentDescriptionBuilder<'a>
pub fn format(self, format: Format) -> AttachmentDescriptionBuilder<'a>
pub fn samples(
self,
samples: SampleCountFlags
) -> AttachmentDescriptionBuilder<'a>
pub fn load_op(
self,
load_op: AttachmentLoadOp
) -> AttachmentDescriptionBuilder<'a>
pub fn store_op(
self,
store_op: AttachmentStoreOp
) -> AttachmentDescriptionBuilder<'a>
pub fn stencil_load_op(
self,
stencil_load_op: AttachmentLoadOp
) -> AttachmentDescriptionBuilder<'a>
pub fn stencil_store_op(
self,
stencil_store_op: AttachmentStoreOp
) -> AttachmentDescriptionBuilder<'a>
pub fn initial_layout(
self,
initial_layout: ImageLayout
) -> AttachmentDescriptionBuilder<'a>
pub fn final_layout(
self,
final_layout: ImageLayout
) -> AttachmentDescriptionBuilder<'a>
sourcepub fn build(self) -> AttachmentDescription
pub fn build(self) -> AttachmentDescription
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 AttachmentDescriptionBuilder<'a>
impl<'a> Deref for AttachmentDescriptionBuilder<'a>
type Target = AttachmentDescription
type Target = AttachmentDescription
The resulting type after dereferencing.
sourcefn deref(&self) -> &<AttachmentDescriptionBuilder<'a> as Deref>::Target
fn deref(&self) -> &<AttachmentDescriptionBuilder<'a> as Deref>::Target
Dereferences the value.
sourceimpl<'a> DerefMut for AttachmentDescriptionBuilder<'a>
impl<'a> DerefMut for AttachmentDescriptionBuilder<'a>
sourcefn deref_mut(
&mut self
) -> &mut <AttachmentDescriptionBuilder<'a> as Deref>::Target
fn deref_mut(
&mut self
) -> &mut <AttachmentDescriptionBuilder<'a> as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations
impl<'a> RefUnwindSafe for AttachmentDescriptionBuilder<'a>
impl<'a> Send for AttachmentDescriptionBuilder<'a>
impl<'a> Sync for AttachmentDescriptionBuilder<'a>
impl<'a> Unpin for AttachmentDescriptionBuilder<'a>
impl<'a> UnwindSafe for AttachmentDescriptionBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more