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: PlatformName

The platform identifier

version: Version

The OpenGL API vesion number

shading_language: Version

The GLSL vesion number

extensions: HashSet<&'static str>

The extensions supported by the implementation

Methods

impl Info
[src]

fn is_extension_supported(&self, s: &'static str) -> bool

Returns true if the implementation supports the extension

fn is_version_or_extension_supported(&self, major: u32, minor: u32, ext: &'static str) -> bool

Trait Implementations

impl Debug for Info
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.