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