pub type ContextDescriptor = ContextDescriptor<Device<Device, Device>, Device>;
Expand description
Information needed to create a context. Some APIs call this a “config” or a “pixel format”.
These are local to a device.
Aliased Type§
enum ContextDescriptor {
Default(ContextDescriptor<Device, Device>),
Alternate(ContextDescriptor),
}
Variants§
Default(ContextDescriptor<Device, Device>)
The default context descriptor type.
Alternate(ContextDescriptor)
The alternate context descriptor type.
Trait Implementations
Source§impl<Def, Alt> Clone for ContextDescriptor<Def, Alt>where
Def: DeviceInterface + Clone,
Alt: DeviceInterface + Clone,
Def::ContextDescriptor: Clone,
Alt::ContextDescriptor: Clone,
impl<Def, Alt> Clone for ContextDescriptor<Def, Alt>where
Def: DeviceInterface + Clone,
Alt: DeviceInterface + Clone,
Def::ContextDescriptor: Clone,
Alt::ContextDescriptor: Clone,
Source§fn clone(&self) -> ContextDescriptor<Def, Alt>
fn clone(&self) -> ContextDescriptor<Def, Alt>
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 more