Trait glium::uniforms::UniformBlock
[−]
[src]
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.
Implementors
impl UniformBlock for DrawCommandNoIndices
impl UniformBlock for DrawCommandIndices
impl UniformBlock for ComputeCommand
impl UniformBlock for i32
impl UniformBlock for [i32; 2]
impl UniformBlock for (i32, i32)
impl UniformBlock for [i32; 3]
impl UniformBlock for (i32, i32, i32)
impl UniformBlock for [i32; 4]
impl UniformBlock for (i32, i32, i32, i32)
impl UniformBlock for u32
impl UniformBlock for [u32; 2]
impl UniformBlock for (u32, u32)
impl UniformBlock for [u32; 3]
impl UniformBlock for (u32, u32, u32)
impl UniformBlock for [u32; 4]
impl UniformBlock for (u32, u32, u32, u32)
impl UniformBlock for bool
impl UniformBlock for [bool; 2]
impl UniformBlock for (bool, bool)
impl UniformBlock for [bool; 3]
impl UniformBlock for (bool, bool, bool)
impl UniformBlock for [bool; 4]
impl UniformBlock for (bool, bool, bool, bool)
impl UniformBlock for f32
impl UniformBlock for [[f32; 2]; 2]
impl UniformBlock for [[f32; 3]; 3]
impl UniformBlock for [[f32; 4]; 4]
impl UniformBlock for (f32, f32)
impl UniformBlock for (f32, f32, f32)
impl UniformBlock for (f32, f32, f32, f32)
impl UniformBlock for [f32; 2]
impl UniformBlock for [f32; 3]
impl UniformBlock for [f32; 4]
impl UniformBlock for f64
impl UniformBlock for [f64; 2]
impl UniformBlock for (f64, f64)
impl UniformBlock for [f64; 3]
impl UniformBlock for (f64, f64, f64)
impl UniformBlock for [f64; 4]
impl UniformBlock for (f64, f64, f64, f64)
impl UniformBlock for [[f64; 2]; 2]
impl UniformBlock for [[f64; 3]; 3]
impl UniformBlock for [[f64; 4]; 4]
impl UniformBlock for i64
impl UniformBlock for [i64; 2]
impl UniformBlock for (i64, i64)
impl UniformBlock for [i64; 3]
impl UniformBlock for (i64, i64, i64)
impl UniformBlock for [i64; 4]
impl UniformBlock for (i64, i64, i64, i64)
impl UniformBlock for u64
impl UniformBlock for [u64; 2]
impl UniformBlock for (u64, u64)
impl UniformBlock for [u64; 3]
impl UniformBlock for (u64, u64, u64)
impl UniformBlock for [u64; 4]
impl UniformBlock for (u64, u64, u64, u64)
impl<T> UniformBlock for [T] where T: UniformBlock
impl<T> UniformBlock for [T; 5] where T: UniformBlock
impl<T> UniformBlock for [T; 6] where T: UniformBlock
impl<T> UniformBlock for [T; 7] where T: UniformBlock
impl<T> UniformBlock for [T; 8] where T: UniformBlock
impl<T> UniformBlock for [T; 9] where T: UniformBlock
impl<T> UniformBlock for [T; 10] where T: UniformBlock
impl<T> UniformBlock for [T; 11] where T: UniformBlock
impl<T> UniformBlock for [T; 12] where T: UniformBlock
impl<T> UniformBlock for [T; 13] where T: UniformBlock
impl<T> UniformBlock for [T; 14] where T: UniformBlock
impl<T> UniformBlock for [T; 15] where T: UniformBlock
impl<T> UniformBlock for [T; 16] where T: UniformBlock
impl<T> UniformBlock for [T; 17] where T: UniformBlock
impl<T> UniformBlock for [T; 18] where T: UniformBlock
impl<T> UniformBlock for [T; 19] where T: UniformBlock
impl<T> UniformBlock for [T; 20] where T: UniformBlock
impl<T> UniformBlock for [T; 21] where T: UniformBlock
impl<T> UniformBlock for [T; 22] where T: UniformBlock
impl<T> UniformBlock for [T; 23] where T: UniformBlock
impl<T> UniformBlock for [T; 24] where T: UniformBlock
impl<T> UniformBlock for [T; 25] where T: UniformBlock
impl<T> UniformBlock for [T; 26] where T: UniformBlock
impl<T> UniformBlock for [T; 27] where T: UniformBlock
impl<T> UniformBlock for [T; 28] where T: UniformBlock
impl<T> UniformBlock for [T; 29] where T: UniformBlock
impl<T> UniformBlock for [T; 30] where T: UniformBlock
impl<T> UniformBlock for [T; 31] where T: UniformBlock
impl<T> UniformBlock for [T; 32] where T: UniformBlock
impl<T> UniformBlock for [T; 64] where T: UniformBlock
impl<T> UniformBlock for [T; 128] where T: UniformBlock
impl<T> UniformBlock for [T; 256] where T: UniformBlock
impl<T> UniformBlock for [T; 512] where T: UniformBlock
impl<T> UniformBlock for [T; 1024] where T: UniformBlock
impl<T> UniformBlock for [T; 2048] where T: UniformBlock
impl<'a> UniformBlock for TextureHandle<'a>