pub struct MemoryRequirementsBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> MemoryRequirementsBuilder<'a>
impl<'a> MemoryRequirementsBuilder<'a>
pub fn size(self, size: DeviceSize) -> Self
pub fn alignment(self, alignment: DeviceSize) -> Self
pub fn memory_type_bits(self, memory_type_bits: u32) -> Self
Sourcepub fn build(self) -> MemoryRequirements
pub fn build(self) -> MemoryRequirements
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 MemoryRequirementsBuilder<'a>
impl<'a> Deref for MemoryRequirementsBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for MemoryRequirementsBuilder<'a>
impl<'a> RefUnwindSafe for MemoryRequirementsBuilder<'a>
impl<'a> Send for MemoryRequirementsBuilder<'a>
impl<'a> Sync for MemoryRequirementsBuilder<'a>
impl<'a> Unpin for MemoryRequirementsBuilder<'a>
impl<'a> UnwindSafe for MemoryRequirementsBuilder<'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