Skip to content

Commit

Permalink
Update for gfx-rs/wgpu#2477
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Feb 15, 2022
1 parent ba00bcc commit f215500
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ noise = {version = "0.7", default-features = false}
pollster = "0.2"
rand = {version = "0.7.2"}
# wgpu = {git = "https://github.com/gfx-rs/wgpu", rev = "6931e571"}
wgpu = {git = "https://github.com/jinleili/wgpu", rev = "33c168c"}
wgpu = {git = "https://github.com/jinleili/wgpu", rev = "92d7b257"}
# wgpu = {path = "../../forks/wgpu/wgpu"}

[target.'cfg(any(not(target_os = "ios"), not(target_os = "android")))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion app-surface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ default = []
log = "0.4"
pollster = "0.2"
# wgpu = {git = "https://github.com/gfx-rs/wgpu", rev = "6931e571"}
wgpu = {git = "https://github.com/jinleili/wgpu", rev = "33c168c"}
wgpu = {git = "https://github.com/jinleili/wgpu", rev = "92d7b257"}
# wgpu = {path = "../../../forks/wgpu/wgpu"}

[target.'cfg(any(not(target_os = "ios"), not(target_os = "android")))'.dependencies]
Expand Down
6 changes: 5 additions & 1 deletion src/examples/hdr_image_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use app_surface::{AppSurface, Frame};
use std::borrow::Cow;
use wgpu::util::DeviceExt;
use wgpu::PrimitiveTopology;
use wgpu::{AstcBlock, AstcChannel, TextureFormat};

#[allow(dead_code)]
pub struct HDRImageView {
Expand Down Expand Up @@ -32,7 +33,10 @@ impl HDRImageView {
mip_level_count: 1,
sample_count: 1,
dimension: wgpu::TextureDimension::D2,
format: wgpu::TextureFormat::Astc6x6RgbaHdr,
format: TextureFormat::Astc {
block: AstcBlock::B6x6,
channel: AstcChannel::Hdr,
},
usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST,
label: None,
},
Expand Down
1 change: 0 additions & 1 deletion src/wgpu_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ impl WgpuCanvas {
} else if index == 4 {
Box::new(Shadow::new(app_surface))
} else {
println!("dafd");
Box::new(HDRImageView::new(app_surface))
}
}
Expand Down

0 comments on commit f215500

Please sign in to comment.