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: u32max_texture_array_layers: u32max_3d_texture_size: u32max_color_attachments: u32max_renderbuffer_size: u32max_texture_image_units: u32max_texture_anistropy_level: f32supported_extensions: Vec<String, Global>supports_dsa: boolsupports_dsa_ext: boolsupports_vertex_attrib_binding: booldsa_enabled: boolvertex_attrib_binding_enabled: boolvendor: Vendorshading_language_version: ShadingLanguageVersion

Implementations

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 Debug for Capabilities[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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]