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

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

Required Methods§

source

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

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

source

fn build_layout(base_offset: usize) -> BlockLayout

Builds the BlockLayout corresponding to the current object.

Implementations on Foreign Types§

source§

impl UniformBlock for (i32, i32, i32, i32)

source§

impl UniformBlock for [f64; 4]

source§

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

source§

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

source§

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

source§

impl UniformBlock for [i64; 4]

source§

impl UniformBlock for (u32, u32)

source§

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

source§

impl UniformBlock for [f32; 2]

source§

impl UniformBlock for (bool, bool, bool)

source§

impl UniformBlock for (f32, f32, f32)

source§

impl UniformBlock for [bool; 4]

source§

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

source§

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

source§

impl UniformBlock for [i64; 2]

source§

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

source§

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

source§

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

source§

impl UniformBlock for u32

source§

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

source§

impl UniformBlock for (i64, i64, i64, i64)

source§

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

source§

impl UniformBlock for (u64, u64, u64)

source§

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

source§

impl UniformBlock for [f64; 2]

source§

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

source§

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

source§

impl UniformBlock for (bool, bool, bool, bool)

source§

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

source§

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

source§

impl UniformBlock for [f64; 3]

source§

impl UniformBlock for [bool; 2]

source§

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

source§

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

source§

impl UniformBlock for (bool, bool)

source§

impl UniformBlock for [f32; 4]

source§

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

source§

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

source§

impl UniformBlock for (u64, u64)

source§

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

source§

impl UniformBlock for (i32, i32)

source§

impl UniformBlock for (u32, u32, u32, u32)

source§

impl UniformBlock for (u32, u32, u32)

source§

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

source§

impl UniformBlock for (f32, f32)

source§

impl UniformBlock for (i64, i64, i64)

source§

impl UniformBlock for i32

source§

impl UniformBlock for (f64, f64, f64)

source§

impl UniformBlock for [u64; 3]

source§

impl UniformBlock for (f64, f64, f64, f64)

source§

impl UniformBlock for f64

source§

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

source§

impl UniformBlock for [u32; 3]

source§

impl UniformBlock for bool

source§

impl UniformBlock for (i32, i32, i32)

source§

impl UniformBlock for [i32; 4]

source§

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

source§

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

source§

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

source§

impl UniformBlock for [u64; 4]

source§

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

source§

impl UniformBlock for [u64; 2]

source§

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

source§

impl UniformBlock for [i32; 2]

source§

impl UniformBlock for (u64, u64, u64, u64)

source§

impl UniformBlock for u64

source§

impl UniformBlock for (f64, f64)

source§

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

source§

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

source§

impl UniformBlock for [i64; 3]

source§

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

source§

impl UniformBlock for [u32; 2]

source§

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

source§

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

source§

impl UniformBlock for (i64, i64)

source§

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

source§

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

source§

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

source§

impl UniformBlock for [bool; 3]

source§

impl UniformBlock for [u32; 4]

source§

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

source§

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

source§

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

source§

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

source§

impl UniformBlock for f32

source§

impl UniformBlock for [i32; 3]

source§

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

source§

impl UniformBlock for [f32; 3]

source§

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

source§

impl UniformBlock for (f32, f32, f32, f32)

source§

impl UniformBlock for i64

Implementors§