pub struct AdapterInfo {
pub name: String,
pub description: String,
pub dedicated_video_memory: usize,
pub dedicated_system_memory: usize,
pub shared_system_memory: usize,
pub available: Vec<String>,
}Expand description
Information returned from Device::get_adapter_info.
Fields§
§name: StringThe chosen adapter a device was created with.
description: StringDescription of the device.
dedicated_video_memory: usizeDedicated video memory in bytes.
dedicated_system_memory: usizeDedicated system memory in bytes.
Shared system memory in bytes.
available: Vec<String>List of available adapter descriptons.
Trait Implementations§
Source§impl Clone for AdapterInfo
impl Clone for AdapterInfo
Source§fn clone(&self) -> AdapterInfo
fn clone(&self) -> AdapterInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for AdapterInfo
Display for AdapterInfo displays as so:
hotline_rs::d3d12::Device:
NVIDIA GeForce GTX 1060 6GB
Video Memory: 6052(mb)
System Memory: 0(mb)
Shared System Memory: 8159(mb)
Available Adapters:
NVIDIA GeForce GTX 1060 6GB
Microsoft Basic Render Driver
impl Display for AdapterInfo
Display for AdapterInfo displays as so:
hotline_rs::d3d12::Device:
NVIDIA GeForce GTX 1060 6GB
Video Memory: 6052(mb)
System Memory: 0(mb)
Shared System Memory: 8159(mb)
Available Adapters:
NVIDIA GeForce GTX 1060 6GB
Microsoft Basic Render Driver
Auto Trait Implementations§
impl Freeze for AdapterInfo
impl RefUnwindSafe for AdapterInfo
impl Send for AdapterInfo
impl Sync for AdapterInfo
impl Unpin for AdapterInfo
impl UnsafeUnpin 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