device: Correct #717 reqirements typo (#718)

This commit is contained in:
Marijn Suijten 2023-03-13 04:51:54 +01:00 committed by GitHub
parent 0f6daa8438
commit 2212bf5e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -465,12 +465,12 @@ impl Device {
#[inline]
pub unsafe fn get_device_buffer_memory_requirements(
&self,
memory_reqirements: &vk::DeviceBufferMemoryRequirements,
memory_requirements: &vk::DeviceBufferMemoryRequirements,
out: &mut vk::MemoryRequirements2,
) {
(self.device_fn_1_3.get_device_buffer_memory_requirements)(
self.handle,
memory_reqirements,
memory_requirements,
out,
)
}
@ -479,12 +479,12 @@ impl Device {
#[inline]
pub unsafe fn get_device_image_memory_requirements(
&self,
memory_reqirements: &vk::DeviceImageMemoryRequirements,
memory_requirements: &vk::DeviceImageMemoryRequirements,
out: &mut vk::MemoryRequirements2,
) {
(self.device_fn_1_3.get_device_image_memory_requirements)(
self.handle,
memory_reqirements,
memory_requirements,
out,
)
}
@ -493,14 +493,14 @@ impl Device {
#[inline]
pub unsafe fn get_device_image_sparse_memory_requirements_len(
&self,
memory_reqirements: &vk::DeviceImageMemoryRequirements,
memory_requirements: &vk::DeviceImageMemoryRequirements,
) -> usize {
let mut count = 0;
(self
.device_fn_1_3
.get_device_image_sparse_memory_requirements)(
self.handle,
memory_reqirements,
memory_requirements,
&mut count,
std::ptr::null_mut(),
);
@ -514,7 +514,7 @@ impl Device {
#[inline]
pub unsafe fn get_device_image_sparse_memory_requirements(
&self,
memory_reqirements: &vk::DeviceImageMemoryRequirements,
memory_requirements: &vk::DeviceImageMemoryRequirements,
out: &mut [vk::SparseImageMemoryRequirements2],
) {
let mut count = out.len() as u32;
@ -522,7 +522,7 @@ impl Device {
.device_fn_1_3
.get_device_image_sparse_memory_requirements)(
self.handle,
memory_reqirements,
memory_requirements,
&mut count,
out.as_mut_ptr(),
);