Skip to content

"Alphamode" error when compiling to WASM #73

@jpryne

Description

@jpryne

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions