running. Rust is absolutley amazing. I haven't run this in ~20 commits, yet it only took a few unwrap() fixes and it's back working
This commit is contained in:
@@ -71,6 +71,10 @@ fn main() {
|
||||
let mut processor = vkprocessor::VkProcessor::new(&instance, &surface);
|
||||
processor.create_swapchain(&surface);
|
||||
|
||||
processor.preload_kernels();
|
||||
processor.preload_shaders();
|
||||
processor.preload_textures();
|
||||
|
||||
let mut timer = Timer::new();
|
||||
let mut frame_future = Box::new(sync::now(processor.device.clone())) as Box<dyn GpuFuture>;
|
||||
|
||||
@@ -85,6 +89,7 @@ fn main() {
|
||||
|
||||
|
||||
|
||||
|
||||
let sprite = Sprite::new_with_color((0.,0.), (0.1,0.1), (1.,0.,0.,1.));
|
||||
let sprite2 = Sprite::new_with_color((-1.,-0.5), (0.1,0.1), (0.,1.,0.,1.));
|
||||
|
||||
@@ -93,7 +98,6 @@ fn main() {
|
||||
let image_data = load_raw(String::from("funky-bird.jpg"));
|
||||
let compute_buffer = processor.new_compute_buffer(image_data.0, image_data.1, 4);
|
||||
|
||||
// TODO need to implement
|
||||
let compute_kernel = processor.get_kernel_handle(String::from("simple-edge.compute"))
|
||||
.expect("Can't find that kernel");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user