pub enum Version {
Desktop(u16),
Embedded {
version: u16,
is_webgl: bool,
},
}
Expand description
A GLSL version.
Variants§
Implementations§
source§impl Version
impl Version
sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Checks the list of currently supported versions and returns true if it contains the specified version
§Notes
As an invalid version number will never be added to the supported version list so this also checks for version validity
fn supports_io_locations(&self) -> bool
sourcefn supports_explicit_locations(&self) -> bool
fn supports_explicit_locations(&self) -> bool
Checks if the version supports all of the explicit layouts:
location=
qualifiers for bindingsbinding=
qualifiers for resources
Note: location=
for vertex inputs and fragment outputs is supported
unconditionally for GLES 300.
fn supports_early_depth_test(&self) -> bool
fn supports_std430_layout(&self) -> bool
fn supports_fma_function(&self) -> bool
fn supports_integer_functions(&self) -> bool
fn supports_frexp_function(&self) -> bool
fn supports_derivative_control(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Version
impl PartialEq for Version
source§impl PartialOrd for Version
impl PartialOrd for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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