Struct rin::gl::Capabilities [−][src]
pub struct Capabilities {}Show fields
pub max_texture_size: u32, pub max_texture_array_layers: u32, pub max_3d_texture_size: u32, pub max_color_attachments: u32, pub max_renderbuffer_size: u32, pub max_texture_image_units: u32, pub max_texture_anistropy_level: f32, pub supported_extensions: Vec<String, Global>, pub supports_dsa: bool, pub supports_dsa_ext: bool, pub supports_vertex_attrib_binding: bool, pub dsa_enabled: bool, pub vertex_attrib_binding_enabled: bool, pub vendor: Vendor, pub shading_language_version: ShadingLanguageVersion,
Fields
max_texture_size: u32
max_texture_array_layers: u32
max_3d_texture_size: u32
max_color_attachments: u32
max_renderbuffer_size: u32
max_texture_image_units: u32
max_texture_anistropy_level: f32
supported_extensions: Vec<String, Global>
supports_dsa: bool
supports_dsa_ext: bool
supports_vertex_attrib_binding: bool
dsa_enabled: bool
vertex_attrib_binding_enabled: bool
vendor: Vendor
shading_language_version: ShadingLanguageVersion
Implementations
impl Capabilities
[src]
impl Capabilities
[src]pub fn from_gl(gl: &Gl) -> Capabilities
[src]
pub fn is_supported(&self, extension: &str) -> bool
[src]
Returns true if the passed extension exists and it’s supported by the current context
pub fn disable_dsa(&mut self)
[src]
Disables DSA support in glin
All glin objects and calls support DSA (direct state access) but some hardware seem to have some bugs when using it. This function disables DSA as a temporary solution
pub fn disable_vertex_attrib_binding(&mut self)
[src]
Disables ARB_vertex_attrib_binding extension
glin uses the vertex attrib extension by default when available but some hardware seem to have some bugs when using it. This function disables DSA as a temporary solution
Trait Implementations
impl Clone for Capabilities
[src]
impl Clone for Capabilities
[src]pub fn clone(&self) -> Capabilities
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]