renderer: cleanup
This commit is contained in:
parent
40ea757543
commit
44076fb5f0
|
@ -1,13 +1,13 @@
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
collections::{BTreeMap, BTreeSet, HashMap, HashSet},
|
collections::{BTreeMap, BTreeSet, HashMap},
|
||||||
ffi::{CStr, CString},
|
ffi::{CStr, CString},
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
use ash::{
|
use ash::{
|
||||||
ext, khr,
|
khr,
|
||||||
prelude::VkResult,
|
prelude::VkResult,
|
||||||
vk::{self, Handle},
|
vk::{self, Handle},
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,20 +8,13 @@
|
||||||
slice_partition_dedup
|
slice_partition_dedup
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use std::{
|
use std::{collections::HashMap, ffi::CStr, fmt::Debug, marker::PhantomData, sync::Arc};
|
||||||
collections::{BTreeMap, BTreeSet, HashMap},
|
|
||||||
ffi::{CStr, CString},
|
|
||||||
fmt::Debug,
|
|
||||||
marker::PhantomData,
|
|
||||||
sync::Arc,
|
|
||||||
};
|
|
||||||
|
|
||||||
use raw_window_handle::{RawDisplayHandle, RawWindowHandle};
|
use raw_window_handle::{RawDisplayHandle, RawWindowHandle};
|
||||||
|
|
||||||
use parking_lot::{Mutex, MutexGuard};
|
use parking_lot::{Mutex, MutexGuard};
|
||||||
|
|
||||||
use ash::{
|
use ash::{
|
||||||
khr,
|
|
||||||
prelude::VkResult,
|
prelude::VkResult,
|
||||||
vk::{self},
|
vk::{self},
|
||||||
Entry,
|
Entry,
|
||||||
|
@ -87,7 +80,6 @@ mod texture {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
use render_graph::Access;
|
|
||||||
use util::Rgba;
|
use util::Rgba;
|
||||||
|
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
|
@ -800,7 +792,7 @@ impl Renderer2 {
|
||||||
let frame = surface.acquire_image().await?;
|
let frame = surface.acquire_image().await?;
|
||||||
|
|
||||||
let mut rg = render_graph::RenderGraph::new();
|
let mut rg = render_graph::RenderGraph::new();
|
||||||
let framebuffer = rg.import_framebuffer(frame.image.clone());
|
let _framebuffer = rg.import_framebuffer(frame.image.clone());
|
||||||
|
|
||||||
let out = cb(self, &mut rg);
|
let out = cb(self, &mut rg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue