From 213406682e0427a8e5091d473d10506299165d77 Mon Sep 17 00:00:00 2001 From: maik klein Date: Sat, 7 Jan 2017 10:17:13 +0100 Subject: [PATCH] Add get_physical_device_prop --- src/instance.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/instance.rs b/src/instance.rs index b5c5fb0..77e70eb 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -101,6 +101,17 @@ pub trait InstanceV1_0 { } } + fn get_physical_device_properties(&self, + physical_device: vk::PhysicalDevice) + -> vk::PhysicalDeviceProperties { + unsafe { + let mut prop = mem::uninitialized(); + self.fp_v1_0() + .get_physical_device_properties(physical_device, &mut prop); + prop + } + } + fn get_physical_device_queue_family_properties(&self, physical_device: vk::PhysicalDevice) -> Vec {