kitgit

tirbofish/dropbear · diff

7c471d2 · Thribhu K

feature: euca-runner now works successfully. fix: got windowing options available for the redback-runtime fix: some general fixes here and there. jarvis, run github actions. Unverified

diff --git a/Cargo.toml b/Cargo.toml
index ff19719..1aecd11 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -72,7 +72,7 @@ dyn-hash = "1.0"
 semver = { version = "1.0", features = ["serde"] }
 rapier3d = { version = "0.32", features = [ "simd-stable", "serde-serialize" ] }
 cbindgen = { version = "0.29.2" }
-postcard = { version = "1.1"}
+postcard = { version = "1.1", features = ["use-std"]}
 pollster = "0.4"
 yakui = { git = "https://github.com/SecondHalfGames/yakui", rev = "af8fc1f", features = ["default-fonts"] }
 yakui-wgpu = { git = "https://github.com/SecondHalfGames/yakui", rev = "af8fc1f" }
diff --git a/crates/dropbear-engine/src/graphics.rs b/crates/dropbear-engine/src/graphics.rs
index bcf8a9f..5c18635 100644
--- a/crates/dropbear-engine/src/graphics.rs
+++ b/crates/dropbear-engine/src/graphics.rs
@@ -7,7 +7,7 @@ use crate::{
 use dropbear_future_queue::FutureQueue;
 use egui::{Context, TextureId};
 use glam::{DMat4, DQuat, DVec3, Mat3};
-use parking_lot::Mutex;
+use parking_lot::{Mutex, RwLock};
 use std::sync::Arc;
 use wgpu::*;
 use winit::window::Window;
@@ -21,6 +21,7 @@ pub struct SharedGraphicsContext {
     pub queue: Arc<Queue>,
     pub surface: Arc<Surface<'static>>,
     pub surface_format: TextureFormat,
+    pub surface_config: Arc<RwLock<SurfaceConfiguration>>,
     pub instance: Arc<wgpu::Instance>,
     pub layouts: Arc<BindGroupLayouts>,
     pub window: Arc<Window>,
@@ -77,6 +78,7 @@ impl SharedGraphicsContext {
             mipmapper: state.mipmapper.clone(),
             yakui_renderer: state.yakui_renderer.clone(),
             yakui_texture: state.yakui_texture.clone(),
+            surface_config: state.config.clone(),
         }
     }
 }
diff --git a/crates/dropbear-engine/src/lib.rs b/crates/dropbear-engine/src/lib.rs
index 0028298..6da1a98 100644
--- a/crates/dropbear-engine/src/lib.rs
+++ b/crates/dropbear-engine/src/lib.rs
@@ -85,7 +85,7 @@ pub struct State {
     pub surface_format: TextureFormat,
     pub device: Arc<Device>,
     pub queue: Arc<Queue>,

Large diffs are not rendered by default. Showing the first 50 of 930 lines. Show full diff