pub trait BindingUtil {
    // Required methods
    fn create_binding_map<T>(
        &self,
        f: impl Fn(&dyn UniformMeta) -> T
    ) -> FastHashMap<UniformBinding, T>;
    fn calculate_required_history<'a>(
        pass_meta: impl Iterator<Item = &'a Self>
    ) -> usize
       where Self: 'a;
}
Expand description

Trait for objects that can be used to create a binding map.

Required Methods§

source

fn create_binding_map<T>( &self, f: impl Fn(&dyn UniformMeta) -> T ) -> FastHashMap<UniformBinding, T>

Create the uniform binding map with the given reflection information.

source

fn calculate_required_history<'a>( pass_meta: impl Iterator<Item = &'a Self> ) -> usize
where Self: 'a,

Calculate the number of required images for history.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BindingUtil for BindingMeta

source§

fn create_binding_map<T>( &self, f: impl Fn(&dyn UniformMeta) -> T ) -> FastHashMap<UniformBinding, T>

source§

fn calculate_required_history<'a>( pass_meta: impl Iterator<Item = &'a Self> ) -> usize
where Self: 'a,

Implementors§