pub struct OffscreenDeviceOptions {
pub adapter_index: Option<u32>,
pub single_context: Option<bool>,
pub client_api: Option<OpenGlClientApi>,
}Expand description
Options for OffscreenDeviceHandle::create().
See mln_offscreen_device_options in the
C API reference.
Fields§
§adapter_index: Option<u32>The GPU to use, as an index into the platform’s list of GPUs.
single_context: Option<bool>Whether the device’s sessions take turns in one OpenGL context instead of having one each. Only an EGL device reads it.
client_api: Option<OpenGlClientApi>The OpenGL API that the device’s sessions render with. An EGL device
defaults to OpenGlClientApi::Gles, and takes OpenGlClientApi::Gl too
on Linux and FreeBSD. A WGL device takes only OpenGlClientApi::Gl, its
default, and a WebGL device only OpenGlClientApi::Gles, its default.
Other devices take neither.
Trait Implementations§
Source§impl Clone for OffscreenDeviceOptions
impl Clone for OffscreenDeviceOptions
Source§fn clone(&self) -> OffscreenDeviceOptions
fn clone(&self) -> OffscreenDeviceOptions
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 moreimpl Copy for OffscreenDeviceOptions
Source§impl Debug for OffscreenDeviceOptions
impl Debug for OffscreenDeviceOptions
Source§impl Default for OffscreenDeviceOptions
impl Default for OffscreenDeviceOptions
Source§fn default() -> OffscreenDeviceOptions
fn default() -> OffscreenDeviceOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for OffscreenDeviceOptions
impl PartialEq for OffscreenDeviceOptions
impl StructuralPartialEq for OffscreenDeviceOptions
Auto Trait Implementations§
impl Freeze for OffscreenDeviceOptions
impl RefUnwindSafe for OffscreenDeviceOptions
impl Send for OffscreenDeviceOptions
impl Sync for OffscreenDeviceOptions
impl Unpin for OffscreenDeviceOptions
impl UnsafeUnpin for OffscreenDeviceOptions
impl UnwindSafe for OffscreenDeviceOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more