lib: remove print statements

This commit is contained in:
chyyran 2023-01-13 00:07:18 -05:00
parent e39d8e9a65
commit 455b56ce8e
3 changed files with 8 additions and 8 deletions

View file

@ -343,13 +343,13 @@ impl FilterChainD3D11 {
// not using frame history;
if required_images <= 1 {
println!("[history] not using frame history");
// println!("[history] not using frame history");
return Ok((VecDeque::new(), Box::new([])));
}
// history0 is aliased with the original
eprintln!("[history] using frame history with {required_images} images");
// eprintln!("[history] using frame history with {required_images} images");
let mut framebuffers = VecDeque::with_capacity(required_images);
framebuffers.resize_with(required_images, || {
OwnedFramebuffer::new(device, context, Size::new(1, 1), ImageFormat::R8G8B8A8Unorm)
@ -420,7 +420,7 @@ impl FilterChainD3D11 {
let passes = passes
.into_iter()
.map(|shader| {
eprintln!("[dx11] loading {}", &shader.name.display());
// eprintln!("[dx11] loading {}", &shader.name.display());
let source: ShaderSource = ShaderSource::load(&shader.name)?;
let spirv = GlslangCompilation::compile(&source)?;

View file

@ -169,7 +169,7 @@ impl OwnedFramebuffer {
};
if self.size != image.size || format != self.format {
eprintln!("[history] resizing");
// eprintln!("[history] resizing");
self.init(image.size, ImageFormat::from(format))?;
}

View file

@ -177,7 +177,7 @@ impl<T: GLInterface> FilterChainImpl<T> {
let passes = passes
.into_iter()
.map(|shader| {
eprintln!("[gl] loading {}", &shader.name.display());
// eprintln!("[gl] loading {}", &shader.name.display());
let source: ShaderSource = ShaderSource::load(&shader.name)?;
let spirv = GlslangCompilation::compile(&source)?;
@ -387,13 +387,13 @@ impl<T: GLInterface> FilterChainImpl<T> {
// not using frame history;
if required_images <= 1 {
println!("[history] not using frame history");
// println!("[history] not using frame history");
return (VecDeque::new(), Box::new([]));
}
// history0 is aliased with the original
eprintln!("[history] using frame history with {required_images} images");
// eprintln!("[history] using frame history with {required_images} images");
let mut framebuffers = VecDeque::with_capacity(required_images);
framebuffers.resize_with(required_images, || T::FramebufferInterface::new(1));
@ -411,7 +411,7 @@ impl<T: GLInterface> FilterChainImpl<T> {
fn push_history(&mut self, input: &GLImage) -> error::Result<()> {
if let Some(mut back) = self.history_framebuffers.pop_back() {
if back.size != input.size || (input.format != 0 && input.format != back.format) {
eprintln!("[history] resizing");
// eprintln!("[history] resizing");
T::FramebufferInterface::init(&mut back, input.size, input.format)?;
}