l1npengtul / nokhwa

Cross Platform Rust Library for Powerful Webcam/Camera Capture
Apache License 2.0
521 stars 132 forks source link

Fix compile error caused by wgpu api changes #118

Closed KunoSayo closed 1 year ago

KunoSayo commented 1 year ago

Due to https://github.com/gfx-rs/wgpu/pull/3529, some types have been changed. The dependencies were updated to wgpu 0.16, but the code wasn't updated.

I have no idea whether to check the 0 value now or not, so I just use frame size and pass it to wgpu.

l1npengtul commented 1 year ago

Sorry, I forgot about this PR and made the changes myself :p

I'll be closing this now, apologies.