wgpu-hal: Expose vulkan::PhysicalDeviceFeatures (#7682)

This commit is contained in:
Hubert Głuchowski authored and GitHub committed 2025-05-30 12:32:24 -04:00
1 parent 6151330e3a
commit a9e04f88af
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ const INDEXING_FEATURES: wgt::Features = wgt::Features::TEXTURE_BINDING_ARRAY
.union(wgt::Features::UNIFORM_BUFFER_BINDING_ARRAYS)
.union(wgt::Features::PARTIALLY_BOUND_BINDING_ARRAY);
#[expect(rustdoc::private_intra_doc_links)]
/// Features supported by a [`vk::PhysicalDevice`] and its extensions.
///
/// This is used in two phases:
+3 -1
View File
@@ -32,6 +32,8 @@ mod drm;
mod instance;
mod sampler;
pub use adapter::PhysicalDeviceFeatures;
use alloc::{boxed::Box, ffi::CString, sync::Arc, vec::Vec};
use core::{borrow::Borrow, ffi::CStr, fmt, mem, num::NonZeroU32, ops::DerefMut};
@@ -455,7 +457,7 @@ pub struct Adapter {
//queue_families: Vec<vk::QueueFamilyProperties>,
known_memory_flags: vk::MemoryPropertyFlags,
phd_capabilities: adapter::PhysicalDeviceProperties,
phd_features: adapter::PhysicalDeviceFeatures,
phd_features: PhysicalDeviceFeatures,
downlevel_flags: wgt::DownlevelFlags,
private_caps: PrivateCapabilities,
workarounds: Workarounds,