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 PartialOrd for Version
impl PartialOrd for Version
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 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
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
)