pub trait FilterChainParameters {
    fn get_enabled_pass_count(&self) -> usize;
    fn set_enabled_pass_count(&mut self, count: usize);
    fn enumerate_parameters(&self) -> Iter<'_, String, f32>;
    fn get_parameter(&self, parameter: &str) -> Option<f32>;
    fn set_parameter(&mut self, parameter: &str, new_value: f32) -> Option<f32>;
}
Expand description

Trait for filter chains that allow runtime reflection of shader parameters.

Required Methods§

Gets the number of shader passes enabled at runtime.

Sets the number of shader passes enabled at runtime.

Enumerates the active parameters as well as their values in the current filter chain.

Get the value of the given parameter if present.

Set the value of the given parameter if present.

Returns None if the parameter did not exist, or the old value if successful.

Implementors§