[][src]Trait glium::uniforms::UniformBlock

pub trait UniformBlock {
    fn matches(
        _: &BlockLayout,
        base_offset: usize
    ) -> Result<(), LayoutMismatchError>;
fn build_layout(base_offset: usize) -> BlockLayout; }

Objects that are suitable for being inside a uniform block or a SSBO.

Required methods

fn matches(
    _: &BlockLayout,
    base_offset: usize
) -> Result<(), LayoutMismatchError>

Checks whether the uniforms' layout matches the given block if Self starts at the given offset.

fn build_layout(base_offset: usize) -> BlockLayout

Builds the BlockLayout corresponding to the current object.

Loading content...

Implementations on Foreign Types

impl UniformBlock for i32[src]

impl UniformBlock for [i32; 2][src]

impl UniformBlock for (i32, i32)[src]

impl UniformBlock for [i32; 3][src]

impl UniformBlock for (i32, i32, i32)[src]

impl UniformBlock for [i32; 4][src]

impl UniformBlock for (i32, i32, i32, i32)[src]

impl UniformBlock for u32[src]

impl UniformBlock for [u32; 2][src]

impl UniformBlock for (u32, u32)[src]

impl UniformBlock for [u32; 3][src]

impl UniformBlock for (u32, u32, u32)[src]

impl UniformBlock for [u32; 4][src]

impl UniformBlock for (u32, u32, u32, u32)[src]

impl UniformBlock for bool[src]

impl UniformBlock for [bool; 2][src]

impl UniformBlock for (bool, bool)[src]

impl UniformBlock for [bool; 3][src]

impl UniformBlock for (bool, bool, bool)[src]

impl UniformBlock for [bool; 4][src]

impl UniformBlock for (bool, bool, bool, bool)[src]

impl UniformBlock for f32[src]

impl UniformBlock for [[f32; 2]; 2][src]

impl UniformBlock for [[f32; 3]; 3][src]

impl UniformBlock for [[f32; 4]; 4][src]

impl UniformBlock for (f32, f32)[src]

impl UniformBlock for (f32, f32, f32)[src]

impl UniformBlock for (f32, f32, f32, f32)[src]

impl UniformBlock for [f32; 2][src]

impl UniformBlock for [f32; 3][src]

impl UniformBlock for [f32; 4][src]

impl UniformBlock for f64[src]

impl UniformBlock for [f64; 2][src]

impl UniformBlock for (f64, f64)[src]

impl UniformBlock for [f64; 3][src]

impl UniformBlock for (f64, f64, f64)[src]

impl UniformBlock for [f64; 4][src]

impl UniformBlock for (f64, f64, f64, f64)[src]

impl UniformBlock for [[f64; 2]; 2][src]

impl UniformBlock for [[f64; 3]; 3][src]

impl UniformBlock for [[f64; 4]; 4][src]

impl UniformBlock for i64[src]

impl UniformBlock for [i64; 2][src]

impl UniformBlock for (i64, i64)[src]

impl UniformBlock for [i64; 3][src]

impl UniformBlock for (i64, i64, i64)[src]

impl UniformBlock for [i64; 4][src]

impl UniformBlock for (i64, i64, i64, i64)[src]

impl UniformBlock for u64[src]

impl UniformBlock for [u64; 2][src]

impl UniformBlock for (u64, u64)[src]

impl UniformBlock for [u64; 3][src]

impl UniformBlock for (u64, u64, u64)[src]

impl UniformBlock for [u64; 4][src]

impl UniformBlock for (u64, u64, u64, u64)[src]

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

impl<T> UniformBlock for [T; 5] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 6] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 7] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 8] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 9] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 10] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 11] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 12] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 13] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 14] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 15] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 16] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 17] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 18] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 19] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 20] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 21] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 22] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 23] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 24] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 25] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 26] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 27] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 28] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 29] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 30] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 31] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 32] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 64] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 128] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 256] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 512] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 1024] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 2048] where
    T: UniformBlock
[src]

impl<T> UniformBlock for [T; 4096] where
    T: UniformBlock
[src]

Loading content...

Implementors

impl UniformBlock for DrawCommandIndices[src]

impl UniformBlock for DrawCommandNoIndices[src]

impl UniformBlock for ComputeCommand[src]

impl<'a> UniformBlock for TextureHandle<'a>[src]

Loading content...