removed the extra stuff from the kernels. Having some issues with the layouts not agreeing with the set size...
This commit is contained in:
30
src/main.rs
30
src/main.rs
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user