Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit b7883e4

Browse files
committed
Small comment on WebGPU backend bit, readme update
1 parent e30a428 commit b7883e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
wgpu-rs is an idiomatic Rust wrapper over [wgpu-core](https://github.com/gfx-rs/wgpu). It's designed to be suitable for general purpose graphics and computation needs of Rust community.
1010

11-
Currently wgpu-rs works on native platforms, but [WASM support is currently being added](https://github.com/gfx-rs/wgpu-rs/issues/101) as well.
11+
wgpu-rs can target both the natively supported backends and WASM directly.
1212

1313
## Gallery
1414

src/backend/web.rs

+3
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,9 @@ impl crate::Context for Context {
634634
options: &crate::RequestAdapterOptions<'_>,
635635
_backends: wgt::BackendBit,
636636
) -> Self::RequestAdapterFuture {
637+
//TODO: support this check, return `None` if the flag is not set.
638+
// It's not trivial, since we need the Future logic to have this check,
639+
// and currently the Future her has no room for extra parameter `backends`.
637640
//assert!(backends.contains(wgt::BackendBit::BROWSER_WEBGPU));
638641
let mut mapped_options = web_sys::GpuRequestAdapterOptions::new();
639642
let mapped_power_preference = match options.power_preference {

0 commit comments

Comments
 (0)