Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wgpu-hal/src/vulkan/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ pub struct PhysicalDeviceFeatures {
}

impl PhysicalDeviceFeatures {
pub fn get_core(&self) -> vk::PhysicalDeviceFeatures {
self.core
}

/// Add the members of `self` into `info.enabled_features` and its `p_next` chain.
pub fn add_to_device_create<'a>(
&'a mut self,
Expand Down Expand Up @@ -1859,6 +1863,10 @@ impl super::Adapter {
self.raw
}

pub fn get_physical_device_features(&self) -> &PhysicalDeviceFeatures {
&self.phd_features
}

pub fn physical_device_capabilities(&self) -> &PhysicalDeviceProperties {
&self.phd_capabilities
}
Expand Down
4 changes: 4 additions & 0 deletions wgpu-hal/src/vulkan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ pub struct Surface {
}

impl Surface {
pub unsafe fn raw_handle(&self) -> vk::SurfaceKHR {
self.raw
}

/// Get the raw Vulkan swapchain associated with this surface.
///
/// Returns [`None`] if the surface is not configured.
Expand Down
Loading