I need to impl a private module so I can have a private get_paths
This commit is contained in:
@@ -25,6 +25,7 @@ use crate::compu_buffer::CompuBuffers;
|
||||
use crate::util::load_raw;
|
||||
use crate::canvas_frame::CanvasFrame;
|
||||
use crate::sprite::Poly;
|
||||
use vulkano::instance::debug::DebugCallback;
|
||||
|
||||
|
||||
pub mod util;
|
||||
@@ -58,6 +59,10 @@ pub fn main() {
|
||||
Instance::new(None, &extensions, None).unwrap()
|
||||
};
|
||||
|
||||
let _callback = DebugCallback::errors_and_warnings(&instance, |msg| {
|
||||
println!("Debug callback: {:?}", msg.description);
|
||||
}).ok();
|
||||
|
||||
let mut events_loop = EventsLoop::new();
|
||||
let mut surface = WindowBuilder::new()
|
||||
.with_dimensions(LogicalSize::from((800, 800)))
|
||||
@@ -106,7 +111,6 @@ pub fn main() {
|
||||
|
||||
let test_polygon = Poly::new_with_color((-0.5, -0.5), (0.5, 0.5), 1, (1.0,0.0,0.0,0.0));
|
||||
|
||||
|
||||
drop(q2);
|
||||
drop(q1);
|
||||
|
||||
@@ -186,6 +190,8 @@ pub fn main() {
|
||||
|
||||
drop(l);
|
||||
|
||||
|
||||
|
||||
hprof::end_frame();
|
||||
hprof::profiler().print_timing();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user