Enum egui_glow::shader_version::ShaderVersion
source · pub enum ShaderVersion {
Gl120,
Gl140,
Es100,
Es300,
}
Expand description
Helper for parsing and interpreting the OpenGL shader version.
Variants§
Implementations§
source§impl ShaderVersion
impl ShaderVersion
pub fn get(gl: &Context) -> Self
pub(crate) fn parse(glsl_ver: &str) -> Self
sourcepub fn version_declaration(&self) -> &'static str
pub fn version_declaration(&self) -> &'static str
Goes on top of the shader.
sourcepub fn is_new_shader_interface(&self) -> bool
pub fn is_new_shader_interface(&self) -> bool
If true, use in/out
. If false
, use varying
and gl_FragColor
.
pub fn is_embedded(&self) -> bool
Trait Implementations§
source§impl Clone for ShaderVersion
impl Clone for ShaderVersion
source§fn clone(&self) -> ShaderVersion
fn clone(&self) -> ShaderVersion
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 ShaderVersion
impl Debug for ShaderVersion
source§impl PartialEq<ShaderVersion> for ShaderVersion
impl PartialEq<ShaderVersion> for ShaderVersion
source§fn eq(&self, other: &ShaderVersion) -> bool
fn eq(&self, other: &ShaderVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.