so that didn't do what I wanted, essentially a pixelate shader ATM

This commit is contained in:
2019-07-02 18:56:02 -07:00
parent e597e8ef1b
commit b2b486be84
3 changed files with 82 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ mod util;
fn main() {
// Load up the input image, determine some details
let mut img = image::open("resources/images/test2.png").unwrap();
let mut img = image::open("resources/images/funky-bird.jpg").unwrap();
let xy = img.dimensions();
let data_length = xy.0 * xy.1 * 4;
let mut image_buffer = Vec::new();
@@ -70,7 +70,7 @@ fn main() {
let project_root = std::env::current_dir().expect("failed to get root directory");
let mut compute_path = project_root.clone();
compute_path.push(PathBuf::from("resources/shaders/add.compute"));
compute_path.push(PathBuf::from("resources/shaders/simple-homogenize.compute"));
let shader = sr::load_compute(compute_path).expect("Failed to compile");
let vulkano_entry = sr::parse_compute(&shader).expect("failed to parse");