pub struct GetMemoryRequirements2 { /* private fields */ }
Implementations§
Source§impl GetMemoryRequirements2
impl GetMemoryRequirements2
pub fn new(instance: &Instance, device: &Device) -> Self
Sourcepub unsafe fn get_buffer_memory_requirements2(
&self,
info: &BufferMemoryRequirementsInfo2KHR,
memory_requirements: &mut MemoryRequirements2KHR,
)
pub unsafe fn get_buffer_memory_requirements2( &self, info: &BufferMemoryRequirementsInfo2KHR, memory_requirements: &mut MemoryRequirements2KHR, )
Sourcepub unsafe fn get_image_memory_requirements2(
&self,
info: &ImageMemoryRequirementsInfo2KHR,
memory_requirements: &mut MemoryRequirements2KHR,
)
pub unsafe fn get_image_memory_requirements2( &self, info: &ImageMemoryRequirementsInfo2KHR, memory_requirements: &mut MemoryRequirements2KHR, )
Sourcepub unsafe fn get_image_sparse_memory_requirements2_len(
&self,
info: &ImageSparseMemoryRequirementsInfo2KHR,
) -> usize
pub unsafe fn get_image_sparse_memory_requirements2_len( &self, info: &ImageSparseMemoryRequirementsInfo2KHR, ) -> usize
Retrieve the number of elements to pass to get_image_sparse_memory_requirements2()
Sourcepub unsafe fn get_image_sparse_memory_requirements2(
&self,
info: &ImageSparseMemoryRequirementsInfo2KHR,
out: &mut [SparseImageMemoryRequirements2KHR],
)
pub unsafe fn get_image_sparse_memory_requirements2( &self, info: &ImageSparseMemoryRequirementsInfo2KHR, out: &mut [SparseImageMemoryRequirements2KHR], )
Call get_image_sparse_memory_requirements2_len()
to query the number of elements to pass to out
.
Be sure to Default::default()
-initialize these elements and optionally set their p_next
pointer.
pub const fn name() -> &'static CStr
pub fn fp(&self) -> &KhrGetMemoryRequirements2Fn
pub fn device(&self) -> Device
Trait Implementations§
Source§impl Clone for GetMemoryRequirements2
impl Clone for GetMemoryRequirements2
Source§fn clone(&self) -> GetMemoryRequirements2
fn clone(&self) -> GetMemoryRequirements2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GetMemoryRequirements2
impl RefUnwindSafe for GetMemoryRequirements2
impl Send for GetMemoryRequirements2
impl Sync for GetMemoryRequirements2
impl Unpin for GetMemoryRequirements2
impl UnwindSafe for GetMemoryRequirements2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)