tirbofish/dropbear · commit
e4ca62f6c3ef70816087a0729def7cd617e4b467
feature: hdr
Signature present but could not be verified.
Unverified
@@ -13,6 +13,7 @@ use wgpu::*; use winit::window::Window; use crate::mipmap::MipMapper; +use crate::pipelines::hdr::HdrPipeline; pub const NO_TEXTURE: &[u8] = include_bytes!("../../../resources/textures/no-texture.png"); @@ -32,6 +33,7 @@ pub struct SharedGraphicsContext { pub future_queue: Arc<FutureQueue>, pub supports_storage: bool, pub mipmapper: Arc<MipMapper>, + pub hdr: Arc<RwLock<HdrPipeline>>, // pub yakui_renderer: Arc<Mutex<yakui_wgpu::YakuiWgpu>>, // pub yakui_texture: yakui::TextureId, } @@ -76,6 +78,7 @@ impl SharedGraphicsContext { surface_format: state.surface_format, supports_storage: state.supports_storage, mipmapper: state.mipmapper.clone(), + hdr: state.hdr.clone(), // yakui_renderer: state.yakui_renderer.clone(), // yakui_texture: state.yakui_texture.clone(), surface_config: state.config.clone(), @@ -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<RwLock<HdrPipeline>>, physics_accumulator: Duration,
Large diffs are not rendered by default. Showing the first 50 of 419 lines. Show full diff