Skip to main content

MappedMemoryRange

Struct MappedMemoryRange 

Source
#[repr(C)]
pub struct MappedMemoryRange<'a> { pub s_type: StructureType, pub p_next: *const void, pub memory: Option<DeviceMemory>, pub offset: DeviceSize, pub size: DeviceSize, pub _p: PhantomData<&'a ()>, }
Expand description

VkMappedMemoryRange

Fields§

§s_type: StructureType
VkStructureType sType

Value: StructureType::MappedMemoryRange

§p_next: *const void
void const* pNext

Optional

§memory: Option<DeviceMemory>

Mapped memory object

VkDeviceMemory memory
§offset: DeviceSize

Offset within the memory object where the range starts

VkDeviceSize offset
§size: DeviceSize

Size of the range within the memory object

VkDeviceSize size
§_p: PhantomData<&'a ()>

Implementations§

Source§

impl<'a> MappedMemoryRange<'a>

Source

pub fn new(new: MappedMemoryRange) -> Self

Create the MappedMemoryRange with required fields

Source§

impl<'a> MappedMemoryRange<'a>

Source

pub fn memory(self, memory: DeviceMemory) -> Self

Mapped memory object

VkDeviceMemory memory
Source

pub fn offset(self, offset: DeviceSize) -> Self

Offset within the memory object where the range starts

VkDeviceSize offset
Source

pub fn size(self, size: DeviceSize) -> Self

Size of the range within the memory object

VkDeviceSize size

Trait Implementations§

Source§

impl<'a, 'b> Abi<*const VkMappedMemoryRange> for &'b MappedMemoryRange<'a>

Source§

impl<'a, 'b> Abi<*mut VkMappedMemoryRange> for &'b mut MappedMemoryRange<'a>

Source§

impl<'a> Abi<VkMappedMemoryRange> for MappedMemoryRange<'a>

Source§

impl<'a> Chainable for MappedMemoryRange<'a>

Source§

fn p_next(&self) -> &*const c_void

The const reference of pNext field
Source§

fn p_next_mut(&mut self) -> &mut *mut c_void

The mutable reference of pNext field
Source§

unsafe fn push_next<E: Extend<Self>>(&mut self, ex: &mut E) -> &mut Self

Push the next struct to the chain
Source§

unsafe fn with_next<E: Extend<Self>>(self, ex: &mut E) -> Self

Push the next struct to the chain
Source§

unsafe fn next(&self) -> Option<&BaseInStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn next_mut(&mut self) -> Option<&mut BaseOutStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn upcast(&self) -> &BaseInStructure<'_>

Upcast the struct to VkBaseInStructure
Source§

unsafe fn upcast_mut(&mut self) -> &mut BaseOutStructure<'_>

Upcast the struct to VkBaseOutStructure
Source§

impl<'a> Clone for MappedMemoryRange<'a>

Source§

fn clone(&self) -> MappedMemoryRange<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for MappedMemoryRange<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for MappedMemoryRange<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> From<MappedMemoryRange<'a>> for VkMappedMemoryRange

Source§

fn from(value: MappedMemoryRange<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MappedMemoryRange> for MappedMemoryRange<'a>

Source§

fn from(value: MappedMemoryRange) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VkMappedMemoryRange> for MappedMemoryRange<'a>

Source§

fn from(value: VkMappedMemoryRange) -> Self

Converts to this type from the input type.
Source§

impl<'a> StructType for MappedMemoryRange<'a>

Source§

const TYPE: StructureType = crate::vk::StructureType::MappedMemoryRange

MappedMemoryRange

Source§

impl<'a> Sys<'a> for MappedMemoryRange<'a>

Source§

impl<'a> Copy for MappedMemoryRange<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for MappedMemoryRange<'a>

§

impl<'a> RefUnwindSafe for MappedMemoryRange<'a>

§

impl<'a> !Send for MappedMemoryRange<'a>

§

impl<'a> !Sync for MappedMemoryRange<'a>

§

impl<'a> Unpin for MappedMemoryRange<'a>

§

impl<'a> UnsafeUnpin for MappedMemoryRange<'a>

§

impl<'a> UnwindSafe for MappedMemoryRange<'a>

Blanket Implementations§

Source§

impl<T> Abi<T> for T

Source§

fn abi(self) -> T

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, O, S> MakeUnique<O, S> for T
where T: Copy, O: Owner<T, S>,

Source§

type Output = Unique<T, O, S>

The unique
Source§

fn unique(self, owner: O) -> <T as MakeUnique<O, S>>::Output

Make a unique from a raw handle and an owner
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.