ash/extensions/ext/
physical_device_drm.rs1use crate::vk;
2use crate::Instance;
3use std::ffi::CStr;
4
5#[derive(Clone)]
6pub struct PhysicalDeviceDrm;
7
8impl PhysicalDeviceDrm {
9 #[inline]
10 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]
23 pub const fn name() -> &'static CStr {
24 vk::ExtPhysicalDeviceDrmFn::name()
25 }
26}