File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ pub struct PhysicalDeviceFeatures {
129
129
}
130
130
131
131
impl PhysicalDeviceFeatures {
132
+ pub fn get_core ( & self ) -> vk:: PhysicalDeviceFeatures {
133
+ self . core
134
+ }
135
+
132
136
/// Add the members of `self` into `info.enabled_features` and its `p_next` chain.
133
137
pub fn add_to_device_create < ' a > (
134
138
& ' a mut self ,
@@ -1859,6 +1863,10 @@ impl super::Adapter {
1859
1863
self . raw
1860
1864
}
1861
1865
1866
+ pub fn get_physical_device_features ( & self ) -> & PhysicalDeviceFeatures {
1867
+ & self . phd_features
1868
+ }
1869
+
1862
1870
pub fn physical_device_capabilities ( & self ) -> & PhysicalDeviceProperties {
1863
1871
& self . phd_capabilities
1864
1872
}
Original file line number Diff line number Diff line change @@ -462,6 +462,10 @@ pub struct Surface {
462
462
}
463
463
464
464
impl Surface {
465
+ pub unsafe fn raw_handle ( & self ) -> vk:: SurfaceKHR {
466
+ self . raw
467
+ }
468
+
465
469
/// Get the raw Vulkan swapchain associated with this surface.
466
470
///
467
471
/// Returns [`None`] if the surface is not configured.
You can’t perform that action at this time.
0 commit comments