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

Example does not build (Windows) #2

Closed
Ragarnoy opened this issue Oct 26, 2021 · 1 comment
Closed

Example does not build (Windows) #2

Ragarnoy opened this issue Oct 26, 2021 · 1 comment

Comments

@Ragarnoy
Copy link

When cargo running the eww example, these are the errors shown by the compiler

error[E0433]: failed to resolve: could not find `BackendBit` in `wgpu`
  --> eww\examples\basic.rs:93:50
   |
93 |         let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY);
   |                                                  ^^^^^^^^^^ could not find `BackendBit` in `wgpu`

error[E0433]: failed to resolve: could not find `TextureUsage` in `wgpu`
   --> eww\examples\basic.rs:118:26
    |
118 |             usage: wgpu::TextureUsage::RENDER_ATTACHMENT,
    |                          ^^^^^^^^^^^^ could not find `TextureUsage` in `wgpu`
error[E0412]: cannot find type `SwapChain` in crate `wgpu`
  --> eww\examples\basic.rs:88:23
   |
88 |     swap_chain: wgpu::SwapChain,
   |                       ^^^^^^^^^ not found in `wgpu`
error[E0422]: cannot find struct, variant or union type `SwapChainDescriptor` in crate `wgpu`
   --> eww\examples\basic.rs:117:29
    |
117 |         let sc_desc = wgpu::SwapChainDescriptor {
    |                             ^^^^^^^^^^^^^^^^^^^ not found in `wgpu`
error[E0599]: no method named `create_swap_chain` found for struct `Device` in the current scope
   --> eww\examples\basic.rs:125:33
    |
125 |         let swap_chain = device.create_swap_chain(&surface, &sc_desc);
    |                                 ^^^^^^^^^^^^^^^^^ method not found in `Device`

@luiswirth
Copy link
Owner

I forgot to update the example. This is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants