tirbofish/dropbear · commit
a01f355448ea5b2df9d743b4dabbf00509c68a73
feature: multisampling with MSAA
Signature present but could not be verified.
Unverified
@@ -10,6 +10,7 @@ use wgpu::*; use winit::window::Window; use crate::mipmap::MipMapper; +use crate::multisampling::AntiAliasingMode; use crate::pipelines::hdr::HdrPipeline; pub const NO_TEXTURE: &[u8] = include_bytes!("../../../resources/textures/no-texture.png"); @@ -30,6 +31,7 @@ pub struct SharedGraphicsContext { pub future_queue: Arc<FutureQueue>, pub mipmapper: Arc<MipMapper>, pub hdr: Arc<RwLock<HdrPipeline>>, + pub antialiasing: Arc<RwLock<AntiAliasingMode>>, // pub yakui_renderer: Arc<Mutex<yakui_wgpu::YakuiWgpu>>, // pub yakui_texture: yakui::TextureId, } @@ -75,6 +77,7 @@ impl SharedGraphicsContext { // yakui_renderer: state.yakui_renderer.clone(), // yakui_texture: state.yakui_texture.clone(), surface_config: state.config.clone(), + antialiasing: state.antialiasing.clone(), } } } @@ -22,6 +22,7 @@ pub mod shader; pub mod sky; pub mod texture; pub mod utils; +pub mod multisampling; features! { pub mod feature_list { @@ -54,11 +55,7 @@ use std::{ sync::Arc, time::{Duration, Instant}, }; -use wgpu::{ - BindGroupLayout, BindGroupLayoutEntry, BindingType, BufferBindingType, Device, - ExperimentalFeatures, Instance, Queue, ShaderStages, Surface, SurfaceConfiguration, - SurfaceError, TextureFormat, -}; +use wgpu::{BindGroupLayout, BindGroupLayoutEntry, BindingType, BufferBindingType, Device, ExperimentalFeatures, Instance, Queue, ShaderStages, Surface, SurfaceConfiguration, SurfaceError, TextureFormat, TextureFormatFeatureFlags};
Large diffs are not rendered by default. Showing the first 50 of 630 lines. Show full diff