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

Add GL backend to default backends for better WASM support #812

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
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 nannou/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ where

/// Specify the set of preferred WGPU backends.
///
/// By default, this is `wgpu::Backends::PRIMARY`.
/// By default, this is `wgpu::Backends::PRIMARY | wgpu::Backends::GL`.
pub fn backends(mut self, backends: wgpu::Backends) -> Self {
self.backends = backends;
self
Expand Down
2 changes: 1 addition & 1 deletion nannou_wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub use wgpu_upstream::{
pub const DEFAULT_POWER_PREFERENCE: PowerPreference = PowerPreference::HighPerformance;

/// Nannou's default WGPU backend preferences.
pub const DEFAULT_BACKENDS: Backends = Backends::PRIMARY;
pub const DEFAULT_BACKENDS: Backends = Backends::PRIMARY.union(Backends::GL);

/// Create a wgpu shader module from the given slice of SPIR-V bytes.
#[cfg(feature = "spirv")]
Expand Down