pub struct AdapterDesc(/* private fields */);
Expand description
Wrapper around DXGI_ADAPTER_DESC1 structure
Implementations§
Source§impl AdapterDesc
impl AdapterDesc
pub fn is_software(&self) -> bool
pub fn description(&self) -> Option<String>
pub fn set_vendor_id(&mut self, vendor_id: u32) -> &mut Self
pub fn with_vendor_id(self, vendor_id: u32) -> Self
pub fn vendor_id(&self) -> u32
pub fn set_device_id(&mut self, device_id: u32) -> &mut Self
pub fn with_device_id(self, device_id: u32) -> Self
pub fn device_id(&self) -> u32
pub fn set_sub_sys_id(&mut self, sub_sys_id: u32) -> &mut Self
pub fn with_sub_sys_id(self, sub_sys_id: u32) -> Self
pub fn sub_sys_id(&self) -> u32
pub fn set_revision(&mut self, revision: u32) -> &mut Self
pub fn with_revision(self, revision: u32) -> Self
pub fn revision(&self) -> u32
pub fn set_dedicated_video_memory( &mut self, dedicated_video_memory: u64, ) -> &mut Self
pub fn with_dedicated_video_memory(self, dedicated_video_memory: u64) -> Self
pub fn dedicated_video_memory(&self) -> u64
pub fn set_dedicated_system_memory( &mut self, dedicated_system_memory: u64, ) -> &mut Self
pub fn with_dedicated_system_memory(self, dedicated_system_memory: u64) -> Self
pub fn dedicated_system_memory(&self) -> u64
pub fn set_flags(&mut self, flags: AdapterFlag) -> &mut Self
pub fn with_flags(self, flags: AdapterFlag) -> Self
pub fn flags(&self) -> AdapterFlag
Trait Implementations§
Source§impl Clone for AdapterDesc
impl Clone for AdapterDesc
Source§fn clone(&self) -> AdapterDesc
fn clone(&self) -> AdapterDesc
Returns a duplicate 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 AdapterDesc
impl Debug for AdapterDesc
Source§impl Default for AdapterDesc
impl Default for AdapterDesc
Source§impl Display for AdapterDesc
impl Display for AdapterDesc
Source§impl Hash for AdapterDesc
impl Hash for AdapterDesc
Source§impl Ord for AdapterDesc
impl Ord for AdapterDesc
Source§fn cmp(&self, other: &AdapterDesc) -> Ordering
fn cmp(&self, other: &AdapterDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AdapterDesc
impl PartialEq for AdapterDesc
Source§impl PartialOrd for AdapterDesc
impl PartialOrd for AdapterDesc
impl Eq for AdapterDesc
impl StructuralPartialEq for AdapterDesc
Auto Trait Implementations§
impl Freeze for AdapterDesc
impl RefUnwindSafe for AdapterDesc
impl Send for AdapterDesc
impl Sync for AdapterDesc
impl Unpin for AdapterDesc
impl UnwindSafe for AdapterDesc
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