pulled out the draw call. forgot to allocate buffers
This commit is contained in:
@@ -19,6 +19,7 @@ use winit::{EventsLoop, WindowBuilder, WindowEvent, Event, DeviceEvent, VirtualK
|
||||
use winit::dpi::LogicalSize;
|
||||
use vulkano_win::VkSurfaceBuild;
|
||||
use sprite::Sprite;
|
||||
use crate::canvas::CanvasFrame;
|
||||
|
||||
|
||||
mod util;
|
||||
@@ -62,7 +63,7 @@ fn main() {
|
||||
|
||||
let mut mouse_xy = Vector2i::new(0,0);
|
||||
|
||||
Sprite::new_with_color((0.,0.), (0,0), (0.,0.,0.,0.));
|
||||
let sprite = Sprite::new_with_color((0.,0.), (0,0), (0.,0.,0.,0.));
|
||||
|
||||
while let Some(p) = window.get_position() {
|
||||
|
||||
@@ -110,9 +111,10 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut canvas = CanvasFrame::new();
|
||||
canvas.draw(&sprite);
|
||||
|
||||
|
||||
(frame_future) = processor.run(&surface, frame_future);
|
||||
(frame_future) = processor.run(&surface, frame_future, canvas);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user