pub trait BindingUtil {
// Required methods
fn create_binding_map<T>(
&self,
f: impl Fn(&dyn UniformMeta) -> T,
) -> FastHashMap<UniformBinding, T>;
fn calculate_requirements<'a>(
pass_meta: impl Iterator<Item = &'a Self>,
) -> BindingRequirements
where Self: 'a;
}Expand description
Trait for objects that can be used to create a binding map.
Required Methods§
sourcefn create_binding_map<T>(
&self,
f: impl Fn(&dyn UniformMeta) -> T,
) -> FastHashMap<UniformBinding, T>
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.
sourcefn calculate_requirements<'a>(
pass_meta: impl Iterator<Item = &'a Self>,
) -> BindingRequirementswhere
Self: 'a,
fn calculate_requirements<'a>(
pass_meta: impl Iterator<Item = &'a Self>,
) -> BindingRequirementswhere
Self: 'a,
Calculate the number of required images for history.
Object Safety§
This trait is not object safe.