pub struct PhysicalDeviceFeatures { /* private fields */ }
vulkan
only.Expand description
Features supported by a vk::PhysicalDevice
and its extensions.
This is used in two phases:
-
When enumerating adapters, this represents the features offered by the adapter.
Instance::expose_adapter
callsvkGetPhysicalDeviceFeatures2
(orvkGetPhysicalDeviceFeatures
if that is not available) to collect this information about theVkPhysicalDevice
represented by thewgpu_hal::ExposedAdapter
. -
When opening a device, this represents the features we would like to enable. At
wgpu_hal::Device
construction time,PhysicalDeviceFeatures::from_extensions_and_requested_features
constructs an value of this type indicating which Vulkan features to enable, based on thewgpu_types::Features
requested.
Implementations§
Source§impl PhysicalDeviceFeatures
impl PhysicalDeviceFeatures
Sourcepub fn add_to_device_create<'a>(
&'a mut self,
info: DeviceCreateInfo<'a>,
) -> DeviceCreateInfo<'a>
pub fn add_to_device_create<'a>( &'a mut self, info: DeviceCreateInfo<'a>, ) -> DeviceCreateInfo<'a>
Add the members of self
into info.enabled_features
and its p_next
chain.