• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use crate::vk;
2 use crate::Instance;
3 use std::ffi::CStr;
4 
5 #[derive(Clone)]
6 pub struct PhysicalDeviceDrm;
7 
8 impl PhysicalDeviceDrm {
9     #[inline]
get_properties( instance: &Instance, pdevice: vk::PhysicalDevice, ) -> vk::PhysicalDeviceDrmPropertiesEXT10     pub unsafe fn get_properties(
11         instance: &Instance,
12         pdevice: vk::PhysicalDevice,
13     ) -> vk::PhysicalDeviceDrmPropertiesEXT {
14         let mut props_drm = vk::PhysicalDeviceDrmPropertiesEXT::default();
15         {
16             let mut props = vk::PhysicalDeviceProperties2::builder().push_next(&mut props_drm);
17             instance.get_physical_device_properties2(pdevice, &mut props);
18         }
19         props_drm
20     }
21 
22     #[inline]
name() -> &'static CStr23     pub const fn name() -> &'static CStr {
24         vk::ExtPhysicalDeviceDrmFn::name()
25     }
26 }
27