pub struct GlBackendOptions {
pub gles_minor_version: Gles3MinorVersion,
pub short_circuit_fences: GlFenceBehavior,
}
Expand description
Configuration for the OpenGL/OpenGLES backend.
Fields§
§gles_minor_version: Gles3MinorVersion
Which OpenGL ES 3 minor version to request, if using OpenGL ES.
short_circuit_fences: GlFenceBehavior
Behavior of OpenGL fences. Affects how on_completed_work_done
and device.poll
behave.
Implementations§
source§impl GlBackendOptions
impl GlBackendOptions
sourcepub fn from_env_or_default() -> GlBackendOptions
pub fn from_env_or_default() -> GlBackendOptions
Choose OpenGL backend options by calling from_env
on every field.
See those methods for more information.
sourcepub fn with_env(self) -> GlBackendOptions
pub fn with_env(self) -> GlBackendOptions
Takes the given options, modifies them based on the environment variables, and returns the result.
This is equivalent to calling with_env
on every field.
Trait Implementations§
source§impl Clone for GlBackendOptions
impl Clone for GlBackendOptions
source§fn clone(&self) -> GlBackendOptions
fn clone(&self) -> GlBackendOptions
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 moresource§impl Debug for GlBackendOptions
impl Debug for GlBackendOptions
source§impl Default for GlBackendOptions
impl Default for GlBackendOptions
source§fn default() -> GlBackendOptions
fn default() -> GlBackendOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlBackendOptions
impl RefUnwindSafe for GlBackendOptions
impl Send for GlBackendOptions
impl Sync for GlBackendOptions
impl Unpin for GlBackendOptions
impl UnwindSafe for GlBackendOptions
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)