pulled swapchain out of shaderkernels

This commit is contained in:
2019-08-05 22:09:21 -07:00
parent 28878dc345
commit bb1f782168
6 changed files with 171 additions and 79 deletions

45
src/canvas.rs Normal file
View File

@@ -0,0 +1,45 @@
// Canvas is the accumulator of Sprites for drawing
// Needs to know:
// textured?
// colored?
// vertices
/*
If it is textured. It needs to be rendered with the texture shader which requires a separate
graphics pipeline. Might as well have a new render pass as well.
Need to pull recreate swapchain out of shader_kernels.rs
I need a second version of shaderkernels
*/
trait Drawable {
fn draw() {
}
}
pub struct Canvas {
}
impl Canvas {
pub fn new() -> Canvas {
Canvas {
}
}
pub fn draw() ->
}