preset: parse feedbackpass value
This commit is contained in:
parent
88080fe059
commit
806e1ae2ee
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,7 @@ use std::str::FromStr;
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Value {
|
pub enum Value {
|
||||||
ShaderCount(i32),
|
ShaderCount(i32),
|
||||||
|
FeedbackPass(i32),
|
||||||
Shader(i32, PathBuf),
|
Shader(i32, PathBuf),
|
||||||
ScaleX(i32, ScaleFactor),
|
ScaleX(i32, ScaleFactor),
|
||||||
ScaleY(i32, ScaleFactor),
|
ScaleY(i32, ScaleFactor),
|
||||||
|
@ -334,6 +335,11 @@ pub fn parse_values(
|
||||||
values.push(Value::ShaderCount(shader_count));
|
values.push(Value::ShaderCount(shader_count));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if token.key.fragment() == &"feedback_pass" {
|
||||||
|
let feedback_pass = from_int(token.value)?;
|
||||||
|
values.push(Value::FeedbackPass(feedback_pass));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if let Ok((_, idx)) = parse_indexed_key("filter_linear", token.key) {
|
if let Ok((_, idx)) = parse_indexed_key("filter_linear", token.key) {
|
||||||
let linear = from_bool(token.value)?;
|
let linear = from_bool(token.value)?;
|
||||||
values.push(Value::FilterMode(idx, if linear { FilterMode::Linear } else { FilterMode::Nearest }));
|
values.push(Value::FilterMode(idx, if linear { FilterMode::Linear } else { FilterMode::Nearest }));
|
||||||
|
|
Loading…
Add table
Reference in a new issue