removed the extra stuff from the kernels. Having some issues with the layouts not agreeing with the set size...

This commit is contained in:
2019-08-11 17:23:58 -07:00
parent dfd4cbb6a2
commit 0be20eb959
11 changed files with 21 additions and 92 deletions

View File

@@ -10,36 +10,11 @@ extern crate rand;
extern crate sfml;
extern crate time;
use sfml::system::*;
use vulkano::sync;
use crate::timer::Timer;
use vulkano::instance::{Instance};
use vulkano::sync::GpuFuture;
use winit::{EventsLoop, WindowBuilder, WindowEvent, Event, DeviceEvent, VirtualKeyCode, ElementState};
use winit::dpi::LogicalSize;
use vulkano_win::VkSurfaceBuild;
@@ -47,7 +22,6 @@ use sprite::Sprite;
mod util;
mod slider;
mod timer;
mod input;
@@ -73,7 +47,8 @@ fn main() {
let mut processor = vkprocessor::VkProcessor::new(&instance, &surface);
processor.compile_kernel(String::from("simple-edge.compute"));
processor.load_textures(String::from("background.jpg"));
processor.load_compute_image(String::from("background.jpg"));
processor.load_textures(String::from("funky-bird.jpg"));
processor.create_swapchain(&surface);
let mut timer = Timer::new();
@@ -136,6 +111,7 @@ fn main() {
}
(frame_future) = processor.run(&surface, frame_future);
}
}