instance: Make enumerate_physical_device_groups unsafe
All Vulkan functions are marked `unsafe` and `enumerate_physical_device_groups` should not be an exception to that.
This commit is contained in:
parent
c4dd1d6040
commit
6640ecb200
|
@ -59,17 +59,15 @@ impl Instance {
|
|||
}
|
||||
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkEnumeratePhysicalDeviceGroups.html>"]
|
||||
pub fn enumerate_physical_device_groups(
|
||||
pub unsafe fn enumerate_physical_device_groups(
|
||||
&self,
|
||||
out: &mut [vk::PhysicalDeviceGroupProperties],
|
||||
) -> VkResult<()> {
|
||||
unsafe {
|
||||
let mut group_count = out.len() as u32;
|
||||
self.instance_fn_1_1
|
||||
.enumerate_physical_device_groups(self.handle(), &mut group_count, out.as_mut_ptr())
|
||||
.into()
|
||||
}
|
||||
}
|
||||
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPhysicalDeviceFeatures2.html>"]
|
||||
pub unsafe fn get_physical_device_features2(
|
||||
|
|
Loading…
Reference in a new issue