Skip to main content

BufferMemoryRequirementsInfo2

Struct BufferMemoryRequirementsInfo2 

Source
#[repr(C)]
pub struct BufferMemoryRequirementsInfo2<'a> { pub s_type: StructureType, pub p_next: *const void, pub buffer: Option<Buffer>, pub _p: PhantomData<&'a ()>, }
Expand description

VkBufferMemoryRequirementsInfo2

Fields§

§s_type: StructureType
VkStructureType sType

Value: StructureType::BufferMemoryRequirementsInfo2

§p_next: *const void
void const* pNext

Optional

§buffer: Option<Buffer>
VkBuffer buffer
§_p: PhantomData<&'a ()>

Implementations§

Source§

impl<'a> BufferMemoryRequirementsInfo2<'a>

Source

pub fn new(new: BufferMemoryRequirementsInfo2) -> Self

Create the BufferMemoryRequirementsInfo2 with required fields

Source§

impl<'a> BufferMemoryRequirementsInfo2<'a>

Source

pub fn buffer(self, buffer: Buffer) -> Self

VkBuffer buffer

Trait Implementations§

Source§

impl<'a, 'b> Abi<*const VkBufferMemoryRequirementsInfo2> for &'b BufferMemoryRequirementsInfo2<'a>

Source§

impl<'a, 'b> Abi<*mut VkBufferMemoryRequirementsInfo2> for &'b mut BufferMemoryRequirementsInfo2<'a>

Source§

impl<'a> Abi<VkBufferMemoryRequirementsInfo2> for BufferMemoryRequirementsInfo2<'a>

Source§

impl<'a> Chainable for BufferMemoryRequirementsInfo2<'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 BufferMemoryRequirementsInfo2<'a>

Source§

fn clone(&self) -> BufferMemoryRequirementsInfo2<'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 BufferMemoryRequirementsInfo2<'a>

Source§

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

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

impl<'a> Default for BufferMemoryRequirementsInfo2<'a>

Source§

fn default() -> Self

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

impl<'a> From<BufferMemoryRequirementsInfo2<'a>> for VkBufferMemoryRequirementsInfo2

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<BufferMemoryRequirementsInfo2> for BufferMemoryRequirementsInfo2<'a>

Source§

fn from(value: BufferMemoryRequirementsInfo2) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VkBufferMemoryRequirementsInfo2> for BufferMemoryRequirementsInfo2<'a>

Source§

fn from(value: VkBufferMemoryRequirementsInfo2) -> Self

Converts to this type from the input type.
Source§

impl<'a> StructType for BufferMemoryRequirementsInfo2<'a>

Source§

const TYPE: StructureType = crate::vk::StructureType::BufferMemoryRequirementsInfo2

BufferMemoryRequirementsInfo2

Source§

impl<'a> Sys<'a> for BufferMemoryRequirementsInfo2<'a>

Source§

impl<'a> Copy for BufferMemoryRequirementsInfo2<'a>

Auto Trait Implementations§

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.