Skip to content

Commit

Permalink
Winit 0.30
Browse files Browse the repository at this point in the history
Timing is off, and there still some jank to clean
  • Loading branch information
IsaacMarovitz committed Apr 30, 2024
1 parent dbfea33 commit f218646
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 181 deletions.
175 changes: 105 additions & 70 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
winit = { version = "0.29", features = ["serde"] }
winit = { version = "0.30", features = ["serde"] }
cpal = "0.15"
fundsp = { version = "0.17", default-features = false }
clap = { version = "4.5", features = ["derive"] }
Expand All @@ -16,4 +16,4 @@ num-traits = "0.2"
num-derive = "0.4"
serde = { version = "1.0", features = ["derive"] }
toml = "0.8"
pollster = "0.3.0"
pollster = "0.3"
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ impl Context {
]
}

pub fn update(&mut self, rgba: Vec<u8>) {
pub fn update(&mut self, rgba: &Vec<u8>) {
self.queue.write_texture(
wgpu::ImageCopyTexture {
aspect: wgpu::TextureAspect::All,
Expand Down
Loading

0 comments on commit f218646

Please sign in to comment.