kitgit

tirbofish/dropbear · diff

c4de601 · Thribhu K

wip: this is a tomorrow problem Unverified

diff --git a/crates/dropbear-engine/src/graphics.rs b/crates/dropbear-engine/src/graphics.rs
index 344f16e..8cb81c3 100644
--- a/crates/dropbear-engine/src/graphics.rs
+++ b/crates/dropbear-engine/src/graphics.rs
@@ -106,7 +106,7 @@ impl SharedGraphicsContext {
                         module: &shader.module,
                         entry_point: Some("fs_main"),
                         targets: &[Some(wgpu::ColorTargetState {
-                            format: wgpu::TextureFormat::Rgba16Float,
+                            format: Texture::TEXTURE_FORMAT,
                             blend: Some(wgpu::BlendState::REPLACE),
                             write_mask: wgpu::ColorWrites::ALL,
                         })],
diff --git a/crates/dropbear-engine/src/lib.rs b/crates/dropbear-engine/src/lib.rs
index 9d4831b..bc3694f 100644
--- a/crates/dropbear-engine/src/lib.rs
+++ b/crates/dropbear-engine/src/lib.rs
@@ -192,16 +192,16 @@ Hardware:
 
         let surface_caps = surface.get_capabilities(&adapter);
 
-        let surface_format = surface_caps
-            .formats
-            .iter()
-            .find(|f| f.is_srgb())
-            .copied()
-            .unwrap_or(TextureFormat::Rgba16Float);
+        // let surface_format = surface_caps
+        //     .formats
+        //     .iter()
+        //     .find(|f| f.is_srgb())
+        //     .copied()
+        //     .unwrap_or(TextureFormat::Rgba16Float);
         
         let config = SurfaceConfiguration {
             usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
-            format: surface_format,
+            format: Texture::TEXTURE_FORMAT,
             width: initial_width,
             height: initial_height,
             present_mode: surface_caps.present_modes[0],
@@ -246,7 +246,7 @@ Hardware:
 
         let result = Self {
             surface: Arc::new(surface),
-            surface_format,
+            surface_format: Texture::TEXTURE_FORMAT,
             device: Arc::new(device),
             queue: Arc::new(queue),
             config,

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