Begin add Window Render Context
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 26m40s

This commit is contained in:
Florian RICHER 2025-04-13 19:23:05 +02:00
parent e2616a0ef5
commit a04c769438
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
5 changed files with 163 additions and 14 deletions

View file

@ -1,9 +1,11 @@
use context::VulkanContext;
use vulkan_context::VulkanContext;
use window_render_context::WindowRenderContext;
use super::app::App;
mod context;
mod utils;
mod vulkan_context;
mod window_render_context;
#[derive(Debug, thiserror::Error)]
pub enum VulkanError {
@ -16,9 +18,11 @@ pub struct Vulkan;
impl Vulkan {
pub fn new(app: &mut App) -> Result<(), VulkanError> {
let vulkan_context = VulkanContext::from(app as &App);
app.world_mut().insert_resource(vulkan_context);
let window_render_context = WindowRenderContext::from(app as &App);
app.world_mut().insert_resource(window_render_context);
Ok(())
}
}