Struct pilka_incremental::ash::vk::SubresourceLayoutBuilder [−]
#[repr(transparent)]pub struct SubresourceLayoutBuilder<'a> { /* fields omitted */ }
Implementations
impl<'a> SubresourceLayoutBuilder<'a>
impl<'a> SubresourceLayoutBuilder<'a>
pub fn offset(self, offset: u64) -> SubresourceLayoutBuilder<'a>
pub fn size(self, size: u64) -> SubresourceLayoutBuilder<'a>
pub fn row_pitch(self, row_pitch: u64) -> SubresourceLayoutBuilder<'a>
pub fn array_pitch(self, array_pitch: u64) -> SubresourceLayoutBuilder<'a>
pub fn depth_pitch(self, depth_pitch: u64) -> SubresourceLayoutBuilder<'a>
pub 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.
Methods from Deref<Target = SubresourceLayout>
Trait Implementations
impl<'a> Deref for SubresourceLayoutBuilder<'a>
impl<'a> Deref for SubresourceLayoutBuilder<'a>
type Target = SubresourceLayout
type Target = SubresourceLayout
The resulting type after dereferencing.
pub fn deref(&self) -> &<SubresourceLayoutBuilder<'a> as Deref>::Target
pub fn deref(&self) -> &<SubresourceLayoutBuilder<'a> as Deref>::Target
Dereferences the value.
impl<'a> DerefMut for SubresourceLayoutBuilder<'a>
impl<'a> DerefMut for SubresourceLayoutBuilder<'a>
pub fn deref_mut(
&mut self
) -> &mut <SubresourceLayoutBuilder<'a> as Deref>::Target
pub fn deref_mut(
&mut self
) -> &mut <SubresourceLayoutBuilder<'a> as Deref>::Target
Mutably dereferences the value.