Trait glium::uniforms::UniformBlock
source · 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§
sourcefn matches(
_: &BlockLayout,
base_offset: usize
) -> Result<(), LayoutMismatchError>
fn matches( _: &BlockLayout, base_offset: usize ) -> Result<(), LayoutMismatchError>
Checks whether the uniforms’ layout matches the given block if Self
starts at
the given offset.
sourcefn build_layout(base_offset: usize) -> BlockLayout
fn build_layout(base_offset: usize) -> BlockLayout
Builds the BlockLayout
corresponding to the current object.