Trait librashader_runtime::binding::BindingUtil
source · 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§
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_required_history<'a>(
pass_meta: impl Iterator<Item = &'a Self>
) -> usizewhere
Self: 'a,
fn calculate_required_history<'a>(
pass_meta: impl Iterator<Item = &'a Self>
) -> usizewhere
Self: 'a,
Calculate the number of required images for history.
Object Safety§
This trait is not object safe.