Struct ash::vk::ImageSubresourceBuilder
source · [−]#[repr(transparent)]pub struct ImageSubresourceBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ImageSubresourceBuilder<'a>
impl<'a> ImageSubresourceBuilder<'a>
pub fn aspect_mask(self, aspect_mask: ImageAspectFlags) -> Self
pub fn mip_level(self, mip_level: u32) -> Self
pub fn array_layer(self, array_layer: u32) -> Self
sourcepub fn build(self) -> ImageSubresource
pub fn build(self) -> ImageSubresource
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 ImageSubresourceBuilder<'a>
impl<'a> Deref for ImageSubresourceBuilder<'a>
type Target = ImageSubresource
type Target = ImageSubresource
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImageSubresourceBuilder<'a>
impl<'a> Send for ImageSubresourceBuilder<'a>
impl<'a> Sync for ImageSubresourceBuilder<'a>
impl<'a> Unpin for ImageSubresourceBuilder<'a>
impl<'a> UnwindSafe for ImageSubresourceBuilder<'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