working on piping events through to the rendered sprites, ztesting, focus, etc.

This commit is contained in:
2020-08-02 22:36:21 -07:00
parent ea98b7e7d6
commit 2ea20c4c0a
4 changed files with 89 additions and 59 deletions

View File

@@ -44,6 +44,7 @@ pub struct VkProcessor {
/// State holding textures, images, and their related vertex buffers
canvas_state: CanvasState,
/// State holding
compute_state: CompuState,
@@ -89,6 +90,10 @@ impl VkProcessor {
}
}
pub fn get_canvas_state(&self) -> &CanvasState {
&self.canvas_state
}
/// Using the surface, we calculate the surface capabilities and create the swapchain and swapchain images
pub fn create_swapchain(&mut self, instance: Arc<Instance>, surface: Arc<Surface<Window>>) {
let (mut swapchain, images) = {