Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Dec 12, 2024
1 parent dbcbbb7 commit 2b2eb6e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion crates/eframe/src/native/wgpu_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ impl<'app> WgpuWinitRunning<'app> {
true
}
});
let screenshot_requested = !screenshot_commands.is_empty();
let vsync_secs = painter.paint_and_update_textures(
viewport_id,
pixels_per_point,
Expand Down
5 changes: 1 addition & 4 deletions crates/egui-wgpu/src/capture.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::RenderState;
use egui::{UserData, ViewportId};
use epaint::ColorImage;
use std::sync::{mpsc, Arc};
use wgpu::{BindGroupLayout, MultisampleState, Sampler, StoreOp};
use wgpu::{BindGroupLayout, MultisampleState, StoreOp};

/// A texture and a buffer for reading the rendered frame back to the cpu.
/// The texture is required since [`wgpu::TextureUsages::COPY_SRC`] is not an allowed
Expand All @@ -16,7 +15,6 @@ pub struct CaptureState {
pub texture: wgpu::Texture,
pipeline: wgpu::RenderPipeline,
bind_group: wgpu::BindGroup,
buffer: Option<wgpu::Buffer>,
}

pub type CaptureReceiver = mpsc::Receiver<(ViewportId, Vec<UserData>, ColorImage)>;
Expand Down Expand Up @@ -62,7 +60,6 @@ impl CaptureState {
texture,
pipeline,
bind_group,
buffer: None,
}
}

Expand Down
2 changes: 0 additions & 2 deletions crates/egui-wgpu/src/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
use crate::capture::{capture_channel, CaptureReceiver, CaptureSender, CaptureState};
use crate::{renderer, RenderState, SurfaceErrorAction, WgpuConfiguration};
use egui::{Context, Event, UserData, ViewportId, ViewportIdMap, ViewportIdSet};
use epaint::ColorImage;
use std::sync::mpsc;
use std::{num::NonZeroU32, sync::Arc};

struct SurfaceState {
Expand Down

0 comments on commit 2b2eb6e

Please sign in to comment.