From 7d5dffa2348001b1efddbfbc0438f85817c980ce Mon Sep 17 00:00:00 2001 From: numzero Date: Sun, 22 Dec 2024 02:05:58 +0300 Subject: [PATCH] That just looks better --- src/main.rs | 4 ++-- src/trace.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d0846d9..8121d8b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ fn make_viewport(w: u32, h: u32) -> [Vertex; 4] { }) } -const N_SPHERES: u32 = 42; +const N_SPHERES: u32 = 100; fn main() { let event_loop = EventLoop::new().unwrap(); @@ -73,7 +73,7 @@ fn main() { &device, &wgpu::SurfaceConfiguration { usage: wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::COPY_DST, - format: wgpu::TextureFormat::Bgra8UnormSrgb, + format: wgpu::TextureFormat::Bgra8Unorm, width: physical_size.width, height: physical_size.height, present_mode: wgpu::PresentMode::Fifo, diff --git a/src/trace.rs b/src/trace.rs index be0d84f..be57f88 100644 --- a/src/trace.rs +++ b/src/trace.rs @@ -114,7 +114,7 @@ impl Tracer { entry_point: None, compilation_options: wgpu::PipelineCompilationOptions::default(), targets: &[Some(wgpu::ColorTargetState { - format: wgpu::TextureFormat::Bgra8UnormSrgb, + format: wgpu::TextureFormat::Bgra8Unorm, blend: Some(wgpu::BlendState::REPLACE), write_mask: wgpu::ColorWrites::ALL, })],