tirbofish/dropbear · diff
fix: before hdr (it compiles)
fix: reverted the weird camera stuff
jarvis, run github actions
Signature present but could not be verified.
Unverified
@@ -62,7 +62,7 @@ pub use gilrs; pub use wgpu; pub use winit; use winit::window::{WindowAttributes, WindowId}; -use crate::pipelines::hdr::HdrPipeline; +// use crate::pipelines::hdr::HdrPipeline; use crate::scene::Scene; pub struct BindGroupLayouts { @@ -95,7 +95,7 @@ pub struct State { pub texture_id: Arc<TextureId>, pub future_queue: Arc<FutureQueue>, pub mipmapper: Arc<MipMapper>, - pub hdr: Arc<HdrPipeline>, + // pub hdr: Arc<HdrPipeline>, physics_accumulator: Duration, @@ -246,7 +246,7 @@ Hardware: let mut egui_renderer = Arc::new(Mutex::new(EguiRenderer::new( &device, Texture::TEXTURE_FORMAT, - Some(Texture::DEPTH_FORMAT), + None, 1, &window, ))); @@ -335,7 +335,7 @@ Hardware: let device = Arc::new(device); let queue = Arc::new(queue); - let hdr = Arc::new(HdrPipeline::new(&device, &config)); + // let hdr = Arc::new(HdrPipeline::new(&device, &config)); // let yakui_renderer = Arc::new(Mutex::new(yakui_wgpu::YakuiWgpu::new( // &device, @@ -379,7 +379,7 @@ Hardware: supports_storage: supports_storage_resources, // yakui_renderer, // yakui_texture, - hdr, + // hdr, }; Ok(result) @@ -395,8 +395,8 @@ Hardware: } self.surface.configure(&self.device, &self.config.read()); self.is_surface_configured = true; - Arc::get_mut(&mut self.hdr) - .resize(&self.device, width, height); + // Arc::get_mut(&mut self.hdr) + // .resize(&self.device, width, height); } self.depth_texture = @@ -473,7 +473,8 @@ Hardware: let _ = encoder.begin_render_pass(&wgpu::RenderPassDescriptor { label: Some("surface clear pass"), color_attachments: &[Some(wgpu::RenderPassColorAttachment { - view: &self.hdr.view(), + // view: &self.hdr.view(), + view: &view, depth_slice: None, resolve_target: None, ops: wgpu::Operations { @@ -5,7 +5,7 @@ use crate::shader::Shader; pub mod shader; pub mod light_cube; pub mod globals; -pub mod hdr; +// pub mod hdr; pub use globals::{Globals, GlobalsUniform};