Merge pull request #56 from kvark/master

Expose get_physical_device_image_format_properties
This commit is contained in:
Maik Klein 2018-04-03 23:42:02 +02:00 committed by GitHub
commit 6c9898788f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,34 @@ pub trait InstanceV1_0 {
}
}
fn get_physical_device_image_format_properties(
&self,
physical_device: vk::PhysicalDevice,
format: vk::Format,
typ: vk::ImageType,
tiling: vk::ImageTiling,
usage: vk::ImageUsageFlags,
flags: vk::ImageCreateFlags,
) -> Result<vk::ImageFormatProperties, vk::Result> {
unsafe {
let mut image_format_prop = mem::uninitialized();
let err_code = self.fp_v1_0().get_physical_device_image_format_properties(
physical_device,
format,
typ,
tiling,
usage,
flags,
&mut image_format_prop,
);
if err_code == vk::Result::Success {
Ok(image_format_prop)
} else {
Err(err_code)
}
}
}
fn get_physical_device_memory_properties(
&self,
physical_device: vk::PhysicalDevice,