Skip to content

Commit bef8699

Browse files
committed
wgpu-hal: Expose vulkan::PhysicalDeviceFeatures
1 parent f04391d commit bef8699

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

wgpu-hal/src/vulkan/adapter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const INDEXING_FEATURES: wgt::Features = wgt::Features::TEXTURE_BINDING_ARRAY
1818
.union(wgt::Features::UNIFORM_BUFFER_BINDING_ARRAYS)
1919
.union(wgt::Features::PARTIALLY_BOUND_BINDING_ARRAY);
2020

21+
#[expect(rustdoc::private_intra_doc_links)]
2122
/// Features supported by a [`vk::PhysicalDevice`] and its extensions.
2223
///
2324
/// This is used in two phases:

wgpu-hal/src/vulkan/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ use parking_lot::{Mutex, RwLock};
4444
use naga::FastHashMap;
4545
use wgt::InternalCounter;
4646

47+
pub use adapter::PhysicalDeviceFeatures;
48+
4749
const MILLIS_TO_NANOS: u64 = 1_000_000;
4850
const MAX_TOTAL_ATTACHMENTS: usize = crate::MAX_COLOR_ATTACHMENTS * 2 + 1;
4951

@@ -455,7 +457,7 @@ pub struct Adapter {
455457
//queue_families: Vec<vk::QueueFamilyProperties>,
456458
known_memory_flags: vk::MemoryPropertyFlags,
457459
phd_capabilities: adapter::PhysicalDeviceProperties,
458-
phd_features: adapter::PhysicalDeviceFeatures,
460+
phd_features: PhysicalDeviceFeatures,
459461
downlevel_flags: wgt::DownlevelFlags,
460462
private_caps: PrivateCapabilities,
461463
workarounds: Workarounds,

0 commit comments

Comments
 (0)