nbody-wasm-sim icon indicating copy to clipboard operation
nbody-wasm-sim copied to clipboard

"Alphamode" error when compiling to WASM

Open jpryne opened this issue 3 years ago • 1 comments

error[E0063]: missing field alpha_mode in initializer of SurfaceConfiguration --> src\render\wgpu_context.rs:57:22 | 57 | let config = wgpu::SurfaceConfiguration { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing alpha_mode

I got this running by adding the following line (/src/render/wgpu_context, line #63):

        alpha_mode: wgpu::CompositeAlphaMode::Opaque

Pull request?

jpryne avatar Oct 14 '22 16:10 jpryne

PR appreciated, yes!

simbleau avatar Oct 14 '22 19:10 simbleau