rt: allow specifying frame_direction
This commit is contained in:
parent
afe7165707
commit
8935ab28e9
|
@ -485,6 +485,7 @@ impl FilterChainD3D11 {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let frame_direction = options.map(|f| f.frame_direction).unwrap_or(1);
|
||||||
let filter = passes[0].config.filter;
|
let filter = passes[0].config.filter;
|
||||||
let wrap_mode = passes[0].config.wrap_mode;
|
let wrap_mode = passes[0].config.wrap_mode;
|
||||||
|
|
||||||
|
@ -551,7 +552,7 @@ impl FilterChainD3D11 {
|
||||||
} else {
|
} else {
|
||||||
frame_count
|
frame_count
|
||||||
} as u32,
|
} as u32,
|
||||||
1,
|
frame_direction,
|
||||||
viewport,
|
viewport,
|
||||||
&original,
|
&original,
|
||||||
&source,
|
&source,
|
||||||
|
@ -581,7 +582,7 @@ impl FilterChainD3D11 {
|
||||||
} else {
|
} else {
|
||||||
frame_count
|
frame_count
|
||||||
} as u32,
|
} as u32,
|
||||||
1,
|
frame_direction,
|
||||||
viewport,
|
viewport,
|
||||||
&original,
|
&original,
|
||||||
&source,
|
&source,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct FrameOptionsD3D11 {
|
pub struct FrameOptionsD3D11 {
|
||||||
pub clear_history: bool,
|
pub clear_history: bool,
|
||||||
|
pub frame_direction: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
|
@ -437,6 +437,7 @@ impl<T: GLInterface> FilterChainImpl<T> {
|
||||||
if passes.is_empty() {
|
if passes.is_empty() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
let frame_direction = options.map(|f| f.frame_direction).unwrap_or(1);
|
||||||
|
|
||||||
// do not need to rebind FBO 0 here since first `draw` will
|
// do not need to rebind FBO 0 here since first `draw` will
|
||||||
// bind automatically.
|
// bind automatically.
|
||||||
|
@ -509,8 +510,7 @@ impl<T: GLInterface> FilterChainImpl<T> {
|
||||||
} else {
|
} else {
|
||||||
count
|
count
|
||||||
} as u32,
|
} as u32,
|
||||||
// todo: put this in options
|
frame_direction,
|
||||||
1,
|
|
||||||
viewport,
|
viewport,
|
||||||
&original,
|
&original,
|
||||||
&source,
|
&source,
|
||||||
|
@ -536,7 +536,7 @@ impl<T: GLInterface> FilterChainImpl<T> {
|
||||||
} else {
|
} else {
|
||||||
count
|
count
|
||||||
} as u32,
|
} as u32,
|
||||||
1,
|
frame_direction,
|
||||||
viewport,
|
viewport,
|
||||||
&original,
|
&original,
|
||||||
&source,
|
&source,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct FrameOptionsGL {
|
pub struct FrameOptionsGL {
|
||||||
pub clear_history: bool,
|
pub clear_history: bool,
|
||||||
|
pub frame_direction: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
Loading…
Reference in a new issue