#[repr(transparent)]pub struct PhysicalDeviceMemoryPropertiesBuilder<'a> { /* private fields */ }Implementations
sourceimpl<'a> PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> PhysicalDeviceMemoryPropertiesBuilder<'a>
pub fn memory_type_count(
self,
memory_type_count: u32
) -> PhysicalDeviceMemoryPropertiesBuilder<'a>
pub fn memory_types(
self,
memory_types: [MemoryType; 32]
) -> PhysicalDeviceMemoryPropertiesBuilder<'a>
pub fn memory_heap_count(
self,
memory_heap_count: u32
) -> PhysicalDeviceMemoryPropertiesBuilder<'a>
pub fn memory_heaps(
self,
memory_heaps: [MemoryHeap; 16]
) -> PhysicalDeviceMemoryPropertiesBuilder<'a>
sourcepub fn build(self) -> PhysicalDeviceMemoryProperties
pub fn build(self) -> PhysicalDeviceMemoryProperties
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 PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> Deref for PhysicalDeviceMemoryPropertiesBuilder<'a>
type Target = PhysicalDeviceMemoryProperties
type Target = PhysicalDeviceMemoryProperties
The resulting type after dereferencing.
sourcefn deref(&self) -> &<PhysicalDeviceMemoryPropertiesBuilder<'a> as Deref>::Target
fn deref(&self) -> &<PhysicalDeviceMemoryPropertiesBuilder<'a> as Deref>::Target
Dereferences the value.
sourceimpl<'a> DerefMut for PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> DerefMut for PhysicalDeviceMemoryPropertiesBuilder<'a>
sourcefn deref_mut(
&mut self
) -> &mut <PhysicalDeviceMemoryPropertiesBuilder<'a> as Deref>::Target
fn deref_mut(
&mut self
) -> &mut <PhysicalDeviceMemoryPropertiesBuilder<'a> as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> Send for PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> Sync for PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> Unpin for PhysicalDeviceMemoryPropertiesBuilder<'a>
impl<'a> UnwindSafe for PhysicalDeviceMemoryPropertiesBuilder<'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