pub struct AdapterInfo {
pub name: String,
pub vendor: u32,
pub device: u32,
pub device_type: DeviceType,
pub device_pci_bus_id: String,
pub driver: String,
pub driver_info: String,
pub backend: Backend,
pub transient_saves_memory: bool,
}Expand description
Information about an adapter.
Fields§
§name: StringAdapter name
vendor: u32Backend-specific vendor ID of the adapter
This generally is a 16-bit PCI vendor ID in the least significant bytes of this field. However, more significant bytes may be non-zero if the backend uses a different representation.
- For
Backend::Vulkan, theVkPhysicalDeviceProperties::vendorIDis used, which is a superset of PCI IDs.
device: u32Backend-specific device ID of the adapter
This generally is a 16-bit PCI device ID in the least significant bytes of this field. However, more significant bytes may be non-zero if the backend uses a different representation.
- For
Backend::Vulkan, theVkPhysicalDeviceProperties::deviceIDis used, which is a superset of PCI IDs.
device_type: DeviceTypeType of device
device_pci_bus_id: StringBackend-specific PCI bus ID of the adapter.
- For
Backend::Vulkan,VkPhysicalDevicePCIBusInfoPropertiesEXTis used, if available, in the formbus:device.function, e.g.0000:01:00.0.
driver: StringDriver name
driver_info: StringDriver info
backend: BackendBackend used for device
transient_saves_memory: boolIf true, adding TextureUsages::TRANSIENT to a texture will decrease memory usage.
Trait Implementations§
Source§impl Clone for AdapterInfo
impl Clone for AdapterInfo
Source§fn clone(&self) -> AdapterInfo
fn clone(&self) -> AdapterInfo
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 AdapterInfo
impl Debug for AdapterInfo
Source§impl<'de> Deserialize<'de> for AdapterInfo
impl<'de> Deserialize<'de> for AdapterInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdapterInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdapterInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AdapterInfo
impl Hash for AdapterInfo
Source§impl PartialEq for AdapterInfo
impl PartialEq for AdapterInfo
Source§impl Serialize for AdapterInfo
impl Serialize for AdapterInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AdapterInfo
impl StructuralPartialEq for AdapterInfo
Auto Trait Implementations§
impl Freeze for AdapterInfo
impl RefUnwindSafe for AdapterInfo
impl Send for AdapterInfo
impl Sync for AdapterInfo
impl Unpin for AdapterInfo
impl UnwindSafe for AdapterInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more