#[repr(C)]pub struct MemoryRequirements {
pub size: DeviceSize,
pub alignment: DeviceSize,
pub memory_type_bits: u32,
}Expand description
Native structure VkMemoryRequirements.
Fields§
§size: DeviceSizeNative field size.
alignment: DeviceSizeNative field alignment.
memory_type_bits: u32Native field memoryTypeBits.
Implementations§
Source§impl MemoryRequirements
impl MemoryRequirements
Sourcepub fn set_size(self, value: DeviceSize) -> Self
pub fn set_size(self, value: DeviceSize) -> Self
Set native field size without native effects.
Sourcepub fn set_alignment(self, value: DeviceSize) -> Self
pub fn set_alignment(self, value: DeviceSize) -> Self
Set native field alignment without native effects.
Sourcepub fn set_memory_type_bits(self, value: u32) -> Self
pub fn set_memory_type_bits(self, value: u32) -> Self
Set native field memoryTypeBits without native effects.
Trait Implementations§
Source§impl Clone for MemoryRequirements
impl Clone for MemoryRequirements
impl Copy for MemoryRequirements
Auto Trait Implementations§
impl Forget for MemoryRequirements
impl Freeze for MemoryRequirements
impl Move for MemoryRequirements
impl RefUnwindSafe for MemoryRequirements
impl Send for MemoryRequirements
impl Sync for MemoryRequirements
impl Unpin for MemoryRequirements
impl UnsafeUnpin for MemoryRequirements
impl UnwindSafe for MemoryRequirements
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