Use latest `wgpu` releases instead of patched sources

This commit is contained in:
Héctor Ramón 2021-05-19 17:11:51 +07:00
parent 8b7452a55d
commit cf6af4c256
5 changed files with 31 additions and 37 deletions

View File

@ -11,18 +11,6 @@ readme = "README.md"
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
categories = ["gui"]
[patch."https://github.com/gfx-rs/wgpu"]
wgpu-types = { git = "https://github.com/Dispersia/wgpu" }
wgpu-core = { git = "https://github.com/Dispersia/wgpu" }
[patch."https://github.com/gfx-rs/wgpu-rs"]
wgpu = { git = "https://github.com/Dispersia/wgpu-rs" }
[patch.crates-io]
wgpu-types = { git = "https://github.com/Dispersia/wgpu" }
wgpu-core = { git = "https://github.com/Dispersia/wgpu" }
wgpu = { git = "https://github.com/Dispersia/wgpu-rs" }
[features]
default = ["wgpu", "default_system_font"]
# Enables the `iced_wgpu` renderer

View File

@ -26,8 +26,8 @@ qr_code = ["iced_graphics/qr_code"]
default_system_font = ["iced_graphics/font-source"]
[dependencies]
wgpu = {git="https://github.com/Dispersia/wgpu-rs"}
wgpu_glyph = {git="https://github.com/Dispersia/wgpu_glyph", branch = "update-wgpu"}
wgpu = "0.8"
wgpu_glyph = "0.12"
glyph_brush = "0.7"
raw-window-handle = "0.3"
log = "0.4"

View File

@ -97,11 +97,13 @@ impl Pipeline {
entries: &[
wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::Buffer {
buffer: &uniforms_buffer,
offset: 0,
size: None,
},
resource: wgpu::BindingResource::Buffer(
wgpu::BufferBinding {
buffer: &uniforms_buffer,
offset: 0,
size: None,
},
),
},
wgpu::BindGroupEntry {
binding: 1,

View File

@ -47,11 +47,11 @@ impl Pipeline {
layout: &constant_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::Buffer {
resource: wgpu::BindingResource::Buffer(wgpu::BufferBinding {
buffer: &constants_buffer,
offset: 0,
size: None,
},
}),
}],
});

View File

@ -110,13 +110,17 @@ impl Pipeline {
layout: &constants_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::Buffer {
buffer: &constants_buffer.raw,
offset: 0,
size: wgpu::BufferSize::new(
std::mem::size_of::<Uniforms>() as u64,
),
},
resource: wgpu::BindingResource::Buffer(
wgpu::BufferBinding {
buffer: &constants_buffer.raw,
offset: 0,
size: wgpu::BufferSize::new(std::mem::size_of::<
Uniforms,
>(
)
as u64),
},
),
}],
});
@ -256,15 +260,15 @@ impl Pipeline {
layout: &self.constants_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::Buffer {
buffer: &self.uniforms_buffer.raw,
offset: 0,
size: wgpu::BufferSize::new(std::mem::size_of::<
Uniforms,
>(
)
as u64),
},
resource: wgpu::BindingResource::Buffer(
wgpu::BufferBinding {
buffer: &self.uniforms_buffer.raw,
offset: 0,
size: wgpu::BufferSize::new(
std::mem::size_of::<Uniforms>() as u64,
),
},
),
}],
});
}