pub struct PhysicalDeviceFeatures { /* private fields */ }
Expand description
An owned set of physical device features.
Implementations§
source§impl PhysicalDeviceFeatures
impl PhysicalDeviceFeatures
sourcepub fn is_supported_by(&self, available: &PhysicalDeviceFeatures) -> bool
pub fn is_supported_by(&self, available: &PhysicalDeviceFeatures) -> bool
source§impl PhysicalDeviceFeatures
impl PhysicalDeviceFeatures
sourcepub fn from_physical_device(
instance: &VulkanInstance,
physical_device: &PhysicalDevice
) -> PhysicalDeviceFeatures
pub fn from_physical_device( instance: &VulkanInstance, physical_device: &PhysicalDevice ) -> PhysicalDeviceFeatures
Get the physical device features for a given device.
Params
instance
- the instance which provides access to the physical devicephysical_device
- the physical device to query for available features
pub fn features(&self) -> &PhysicalDeviceFeatures
pub fn features_mut(&mut self) -> &mut PhysicalDeviceFeatures
pub fn descriptor_indexing_features( &self ) -> &PhysicalDeviceDescriptorIndexingFeatures
pub fn descriptor_indexing_features_mut( &mut self ) -> &mut PhysicalDeviceDescriptorIndexingFeatures
pub fn vulkan_13_features(&self) -> &PhysicalDeviceVulkan13Features
pub fn vulkan_13_features_mut(&mut self) -> &mut PhysicalDeviceVulkan13Features
sourcepub unsafe fn link_p_next_chain(&mut self) -> &mut PhysicalDeviceFeatures2
pub unsafe fn link_p_next_chain(&mut self) -> &mut PhysicalDeviceFeatures2
Link all of the contained device feature structs using their p_next pointers.
Safety
The linked pointers are invalid if the owning struct is moved.
Trait Implementations§
source§impl Clone for PhysicalDeviceFeatures
impl Clone for PhysicalDeviceFeatures
source§fn clone(&self) -> PhysicalDeviceFeatures
fn clone(&self) -> PhysicalDeviceFeatures
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhysicalDeviceFeatures
impl Debug for PhysicalDeviceFeatures
source§impl Default for PhysicalDeviceFeatures
impl Default for PhysicalDeviceFeatures
source§fn default() -> PhysicalDeviceFeatures
fn default() -> PhysicalDeviceFeatures
Returns the “default value” for a type. Read more