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 { get_properties( instance: &Instance, pdevice: vk::PhysicalDevice, ) -> vk::PhysicalDeviceDrmPropertiesEXT9 pub unsafe fn get_properties( 10 instance: &Instance, 11 pdevice: vk::PhysicalDevice, 12 ) -> vk::PhysicalDeviceDrmPropertiesEXT { 13 let mut props_drm = vk::PhysicalDeviceDrmPropertiesEXT::default(); 14 { 15 let mut props = vk::PhysicalDeviceProperties2::builder().push_next(&mut props_drm); 16 instance.get_physical_device_properties2(pdevice, &mut props); 17 } 18 props_drm 19 } 20 name() -> &'static CStr21 pub fn name() -> &'static CStr { 22 vk::ExtPhysicalDeviceDrmFn::name() 23 } 24 } 25