[][src]Struct glium::program::SubroutineData

pub struct SubroutineData {
    pub location_counts: HashMap<ShaderStage, usize, BuildHasherDefault<FnvHasher>>,
    pub subroutine_uniforms: HashMap<(String, ShaderStage), SubroutineUniform, BuildHasherDefault<FnvHasher>>,
}

Contains all subroutine data of a program.

Fields

location_counts: HashMap<ShaderStage, usize, BuildHasherDefault<FnvHasher>>

Number of subroutine uniform locations per shader stage. This is not equal to the number of subroutine uniforms per stage, because users can use #layout(location=...).

subroutine_uniforms: HashMap<(String, ShaderStage), SubroutineUniform, BuildHasherDefault<FnvHasher>>

The list of all subroutine uniforms of the program stored in a structured way to enable fast lookups. A subroutine uniform is uniquely defined by a name and a shader stage.

Trait Implementations

impl Clone for SubroutineData[src]

impl Debug for SubroutineData[src]

Auto Trait Implementations

impl RefUnwindSafe for SubroutineData

impl Send for SubroutineData

impl Sync for SubroutineData

impl Unpin for SubroutineData

impl UnwindSafe for SubroutineData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.