Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wgpu requirement from 0.15 to 0.19 #150

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ wio = "0.2"

[dev-dependencies]
pollster = "0.3"
wgpu = "0.15"
wgpu = "0.19"
wgpu-subscriber = "0.1.0"
winit = "0.28"


Unchanged files with check annotations Beta

let instance = wgpu::Instance::default();
let surface = unsafe { instance.create_surface(&window) }.unwrap();

Check failure on line 15 in examples/triangle.rs

GitHub Actions / cargo test (beta)

the trait bound `winit::window::Window: HasWindowHandle` is not satisfied

Check failure on line 15 in examples/triangle.rs

GitHub Actions / cargo test (beta)

the trait bound `winit::window::Window: HasDisplayHandle` is not satisfied

Check failure on line 15 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

the trait bound `winit::window::Window: HasWindowHandle` is not satisfied

Check failure on line 15 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

the trait bound `winit::window::Window: HasDisplayHandle` is not satisfied
let adapter = instance
.request_adapter(&wgpu::RequestAdapterOptions {
power_preference: wgpu::PowerPreference::default(),
.request_device(
&wgpu::DeviceDescriptor {
label: None,
features: wgpu::Features::empty(),

Check failure on line 31 in examples/triangle.rs

GitHub Actions / cargo test (beta)

struct `wgpu_types::DeviceDescriptor<Option<&str>>` has no field named `features`

Check failure on line 31 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

struct `wgpu_types::DeviceDescriptor<Option<&str>>` has no field named `features`
// Make sure we use the texture resolution limits from the adapter, so we can support images the size of the swapchain.
limits: wgpu::Limits::downlevel_webgl2_defaults()

Check failure on line 33 in examples/triangle.rs

GitHub Actions / cargo test (beta)

struct `wgpu_types::DeviceDescriptor<Option<&str>>` has no field named `limits`

Check failure on line 33 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

struct `wgpu_types::DeviceDescriptor<Option<&str>>` has no field named `limits`
.using_resolution(adapter.limits()),
},
None,
multiview: None,
});
let mut config = wgpu::SurfaceConfiguration {

Check failure on line 82 in examples/triangle.rs

GitHub Actions / cargo test (beta)

missing field `desired_maximum_frame_latency` in initializer of `wgpu_types::SurfaceConfiguration<Vec<TextureFormat>>`

Check failure on line 82 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

missing field `desired_maximum_frame_latency` in initializer of `wgpu_types::SurfaceConfiguration<Vec<TextureFormat>>`
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
format: swapchain_format,
width: size.width,
let mut encoder =
device.create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None });
{
let mut rpass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {

Check failure on line 143 in examples/triangle.rs

GitHub Actions / cargo test (beta)

missing fields `occlusion_query_set` and `timestamp_writes` in initializer of `wgpu::RenderPassDescriptor<'_, '_>`

Check failure on line 143 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

missing fields `occlusion_query_set` and `timestamp_writes` in initializer of `wgpu::RenderPassDescriptor<'_, '_>`
label: None,
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
view: &view,
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(wgpu::Color::GREEN),
store: true,

Check failure on line 150 in examples/triangle.rs

GitHub Actions / cargo test (beta)

mismatched types

Check failure on line 150 in examples/triangle.rs

GitHub Actions / cargo test (1.64.0)

mismatched types
},
})],
depth_stencil_attachment: None,