pub struct GpuHints {
pub requires_gpu: bool,
pub preferred_memory: Option<MemoryLocation>,
}Expand description
GPU-related hints carried on descriptors.
use daedalus_data::descriptor::{GpuHints, MemoryLocation};
let hints = GpuHints { requires_gpu: false, preferred_memory: Some(MemoryLocation::Host) };
assert_eq!(hints.preferred_memory, Some(MemoryLocation::Host));Fields§
§requires_gpu: bool§preferred_memory: Option<MemoryLocation>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuHints
impl<'de> Deserialize<'de> for GpuHints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GpuHints
impl StructuralPartialEq for GpuHints
Auto Trait Implementations§
impl Freeze for GpuHints
impl RefUnwindSafe for GpuHints
impl Send for GpuHints
impl Sync for GpuHints
impl Unpin for GpuHints
impl UnwindSafe for GpuHints
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