pub struct PhysicalDeviceFeatures { /* private fields */ }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_adaptercallsvkGetPhysicalDeviceFeatures2(orvkGetPhysicalDeviceFeaturesif that is not available) to collect this information about theVkPhysicalDevicerepresented by thewgpu_hal::ExposedAdapter. -
When opening a device, this represents the features we would like to enable. At
wgpu_hal::Deviceconstruction time,PhysicalDeviceFeatures::from_extensions_and_requested_featuresconstructs an value of this type indicating which Vulkan features to enable, based on thewgpu_types::Featuresrequested.
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.