Struct gfx_backend_gl::Info [−][src]
pub struct Info {
pub platform_name: PlatformName,
pub version: Version,
pub shading_language: Version,
pub extensions: HashSet<String>,
}OpenGL implementation information
Fields
platform_name: PlatformNameThe platform identifier
version: VersionThe OpenGL API version number
shading_language: VersionThe GLSL version number
extensions: HashSet<String>The extensions supported by the implementation
Implementations
impl Info[src]
impl Info[src]pub fn is_version_supported(&self, major: u32, minor: u32) -> bool[src]
pub fn is_embedded_version_supported(&self, major: u32, minor: u32) -> bool[src]
pub fn is_extension_supported(&self, s: &str) -> bool[src]
Returns true if the implementation supports the extension
pub fn is_version_or_extension_supported(
&self,
major: u32,
minor: u32,
ext: &str
) -> bool[src]
&self,
major: u32,
minor: u32,
ext: &str
) -> bool
pub fn is_any_extension_supported(&self, exts: &[String]) -> bool[src]
pub fn is_supported(&self, requirements: &[Requirement<'_>]) -> bool[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Info
impl RefUnwindSafe for Infoimpl UnwindSafe for Info
impl UnwindSafe for Info