Enum Version
pub enum Version {
Desktop(u16),
Embedded {
version: u16,
is_webgl: bool,
},
}Expand description
A GLSL version.
Variants§
Implementations§
§impl Version
impl Version
pub fn is_supported(&self) -> bool
pub 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
pub fn supports_io_locations(&self) -> bool
pub fn supports_explicit_locations(&self) -> bool
pub 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.
pub fn supports_early_depth_test(&self) -> bool
pub fn supports_std140_layout(&self) -> bool
pub fn supports_std430_layout(&self) -> bool
pub fn supports_fma_function(&self) -> bool
pub fn supports_integer_functions(&self) -> bool
pub fn supports_frexp_function(&self) -> bool
pub fn supports_derivative_control(&self) -> bool
pub fn supports_pack_unpack_4x8(&self) -> bool
pub fn supports_pack_unpack_snorm_2x16(&self) -> bool
pub fn supports_pack_unpack_unorm_2x16(&self) -> bool
pub fn supports_pack_unpack_half_2x16(&self) -> bool
Trait Implementations§
§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Version, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Version, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialOrd for Version
impl PartialOrd for Version
§impl Serialize for Version
impl Serialize for Version
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl 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 UnsafeUnpin 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