Struct ash::vk::SubresourceLayoutBuilder
source · [−]#[repr(transparent)]pub struct SubresourceLayoutBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> SubresourceLayoutBuilder<'a>
impl<'a> SubresourceLayoutBuilder<'a>
pub fn offset(self, offset: DeviceSize) -> Self
pub fn size(self, size: DeviceSize) -> Self
pub fn row_pitch(self, row_pitch: DeviceSize) -> Self
pub fn array_pitch(self, array_pitch: DeviceSize) -> Self
pub fn depth_pitch(self, depth_pitch: DeviceSize) -> Self
sourcepub fn build(self) -> SubresourceLayout
pub fn build(self) -> SubresourceLayout
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 SubresourceLayoutBuilder<'a>
impl<'a> Deref for SubresourceLayoutBuilder<'a>
type Target = SubresourceLayout
type Target = SubresourceLayout
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SubresourceLayoutBuilder<'a>
impl<'a> Send for SubresourceLayoutBuilder<'a>
impl<'a> Sync for SubresourceLayoutBuilder<'a>
impl<'a> Unpin for SubresourceLayoutBuilder<'a>
impl<'a> UnwindSafe for SubresourceLayoutBuilder<'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