pub struct GraphicsConfig {
pub dithering: bool,
pub shader_version: Option<ShaderVersion>,
}Expand description
Re-export for convenience.
Fields§
§dithering: boolControls whether to apply dithering to minimize banding artifacts.
Dithering assumes an sRGB output and thus will apply noise to any input value that lies between two 8bit values after applying the sRGB OETF function, i.e. if it’s not a whole 8bit value in “gamma space”. This means that only inputs from texture interpolation and vertex colors should be affected in practice.
Defaults to true.
shader_version: Option<ShaderVersion>Needed for cross compiling for VirtualBox VMSVGA driver with OpenGL ES 2.0 and OpenGL 2.1 which doesn’t support SRGB texture. See https://github.com/emilk/egui/pull/1993.
For OpenGL ES 2.0: set this to egui_glow::ShaderVersion::Es100 to solve blank texture problem (by using the “fallback shader”).
Trait Implementations§
Source§impl Clone for GraphicsConfig
impl Clone for GraphicsConfig
Source§fn clone(&self) -> GraphicsConfig
fn clone(&self) -> GraphicsConfig
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 moreSource§impl Debug for GraphicsConfig
impl Debug for GraphicsConfig
Source§impl Default for GraphicsConfig
impl Default for GraphicsConfig
Source§fn default() -> GraphicsConfig
fn default() -> GraphicsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphicsConfig
impl RefUnwindSafe for GraphicsConfig
impl Send for GraphicsConfig
impl Sync for GraphicsConfig
impl Unpin for GraphicsConfig
impl UnsafeUnpin for GraphicsConfig
impl UnwindSafe for GraphicsConfig
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