just doing a naive layered compute for meow

This commit is contained in:
2019-08-28 22:55:44 -07:00
parent 885e19fb64
commit 66d11e22c0
3 changed files with 75 additions and 18 deletions

View File

@@ -261,6 +261,10 @@ impl Canvas {
id
}
pub fn get_image(&self, image_handle: Arc<u32>) -> std::sync::Arc<vulkano::image::attachment::AttachmentImage> {
self.image_buffers.get((*image_handle).clone() as usize).unwrap().clone()
}
// TODO Handle file not found gracefully
fn get_texture_from_file(&self, image_filename: String) -> Arc<ImmutableImage<Format>> {
let project_root =