Struct gfx_device_gl::Info
[−]
[src]
pub struct Info { pub platform_name: PlatformName, pub version: Version, pub shading_language: Version, pub extensions: HashSet<&'static str>, }
OpenGL implementation information
Fields
platform_name | The platform identifier |
version | The OpenGL API vesion number |
shading_language | The GLSL vesion number |
extensions | The extensions supported by the implementation |
Methods
impl Info
fn is_version_supported(&self, major: u32, minor: u32) -> bool
fn is_extension_supported(&self, s: &'static str) -> bool
Returns true
if the implementation supports the extension