Struct ccthw_ash_instance::PhysicalDevice
source · pub struct PhysicalDevice { /* private fields */ }
Expand description
A Vulkan physical device along with its properties and requested features.
Physical devices are purely descriptive and can be cloned without concern for underlying GPU resources.
Implementations§
source§impl PhysicalDevice
impl PhysicalDevice
sourcepub fn queue_family_properties(&self) -> &[QueueFamilyProperties]
pub fn queue_family_properties(&self) -> &[QueueFamilyProperties]
Properties for all queue families supported by this device.
sourcepub fn available_extensions(&self) -> &[ExtensionProperties]
pub fn available_extensions(&self) -> &[ExtensionProperties]
The set of all extensions available on this device.
sourcepub fn available_extension_names(&self) -> &[String]
pub fn available_extension_names(&self) -> &[String]
The set of all extension names available on this device.
sourcepub fn properties(&self) -> &PhysicalDeviceProperties
pub fn properties(&self) -> &PhysicalDeviceProperties
The properties for this physical device.
sourcepub fn features(&self) -> &PhysicalDeviceFeatures
pub fn features(&self) -> &PhysicalDeviceFeatures
The features requested when picking this device.
sourcepub fn enumerate_supported_devices(
instance: &VulkanInstance,
required_features: &PhysicalDeviceFeatures
) -> InstanceResult<Vec<Self>>
pub fn enumerate_supported_devices( instance: &VulkanInstance, required_features: &PhysicalDeviceFeatures ) -> InstanceResult<Vec<Self>>
Enumerate all physical devices which support the required featuers.
Params
instance
- the Vulkan instance which will provide access to the physical devices.features
- the features the device must support.
Trait Implementations§
source§impl Clone for PhysicalDevice
impl Clone for PhysicalDevice
source§fn clone(&self) -> PhysicalDevice
fn clone(&self) -> PhysicalDevice
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 more