Enum kas_wgpu::options::PowerPreference [−]
#[repr(C)]
pub enum PowerPreference {
LowPower,
HighPerformance,
}
Expand description
Power Preference when choosing a physical adapter.
Variants
Adapter that uses the least possible power. This is often an integrated GPU.
Adapter that has the highest performance. This is often a discrete GPU.
Trait Implementations
impl Clone for PowerPreference
impl Clone for PowerPreference
pub fn clone(&self) -> PowerPreference
pub fn clone(&self) -> PowerPreference
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PowerPreference
impl Debug for PowerPreference
impl Default for PowerPreference
impl Default for PowerPreference
pub fn default() -> PowerPreference
pub fn default() -> PowerPreference
Returns the “default value” for a type. Read more
impl Hash for PowerPreference
impl Hash for PowerPreference
impl PartialEq<PowerPreference> for PowerPreference
impl PartialEq<PowerPreference> for PowerPreference
impl Copy for PowerPreference
impl Eq for PowerPreference
impl StructuralEq for PowerPreference
impl StructuralPartialEq for PowerPreference
Auto Trait Implementations
impl RefUnwindSafe for PowerPreference
impl Send for PowerPreference
impl Sync for PowerPreference
impl Unpin for PowerPreference
impl UnwindSafe for PowerPreference
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
Compare self to key
and return true
if they are equal.