kitgit

tirbofish/dropbear · diff

f5ca1fd · Thribhu K

wip: stupid ass bug related to not updating Components. todo: i need to upgrade egui to 0.34.1 to get wgpu 29.0.0 working (only took like 4 months for them to make a new release smh)

Unverified

diff --git a/crates/dropbear-engine/src/camera.rs b/crates/dropbear-engine/src/camera.rs
index daf780c..efa9b0d 100644
--- a/crates/dropbear-engine/src/camera.rs
+++ b/crates/dropbear-engine/src/camera.rs
@@ -71,6 +71,7 @@ pub struct Camera {
     pub uniform: CameraUniform,
 
     buffer: UniformBuffer<CameraUniform>,
+    pub bind_group: wgpu::BindGroup,
 
     /// View matrix
     pub view_mat: DMat4,
@@ -116,6 +117,14 @@ impl Camera {
         uniform.view_proj = mvp.as_mat4().to_cols_array_2d();
 
         let buffer = UniformBuffer::new(&graphics.device, "camera uniform");
+        let bind_group = graphics.device.create_bind_group(&wgpu::BindGroupDescriptor {
+            label: Some("editor camera bind group"),
+            layout: &graphics.layouts.camera_bind_group_layout,
+            entries: &[wgpu::BindGroupEntry {
+                binding: 0,
+                resource: buffer.buffer().as_entire_binding(),
+            }],
+        });
 
         let camera = Self {
             eye: builder.eye,
@@ -136,6 +145,7 @@ impl Camera {
             },
             view_mat,
             proj_mat,
+            bind_group,
         };
 
         log::debug!(
diff --git a/crates/dropbear-engine/src/debug.rs b/crates/dropbear-engine/src/debug.rs
index 737d3ad..9a73a76 100644
--- a/crates/dropbear-engine/src/debug.rs
+++ b/crates/dropbear-engine/src/debug.rs
@@ -491,7 +491,7 @@ impl DebugDrawPipeline {
         let mut pass = encoder.begin_render_pass(&RenderPassDescriptor {
             label: Some("debug draw pass"),
             color_attachments: &[Some(RenderPassColorAttachment {
-                view: hdr.view(),
+                view: hdr.render_view(),
                 depth_slice: None,
                 resolve_target: hdr.resolve_target(),
                 ops: Operations {
diff --git a/crates/eucalyptus-core/src/component.rs b/crates/eucalyptus-core/src/component.rs
index d2b8095..4e6116f 100644

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