Struct ash::vk::SubresourceLayoutBuilder
source · pub struct SubresourceLayoutBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'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§
source§impl<'a> Deref for SubresourceLayoutBuilder<'a>
impl<'a> Deref for SubresourceLayoutBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubresourceLayoutBuilder<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more