mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
25b16d5cc8
* First attempt of exposing create_surface_from_canvas for webgl * Test Fix Compile For WebGL Offscreen Canvas * Only specify web-sys feature version in wgpu-core, so that patch version is taken from workspace * Reuse already existing fn create_surface_from_canvas * Remove unnecessary unsafe * Remove unsafe prefix also from top-level create_surface_from_canvas * Add create_surface_from_offscreen_canvas() for webgl * Cargo fmt * Store webgl2_context instead of canvas, which works also for OffscreenCanvas * Copy skybox example for OffscreenCanvas example * Use offscreen_canvas instead in newly created example * Update skypbox_offscreen readme.md * Allow enabling OffscreenCanvas in examples via http://localhost:8000/?offscreen_canvas=true * Fix cargo fmt * [fix warning] Only import FromStr for wasm32 * [fix warning] Exclude offscreen_canvas_setup from non-wasm32 * [fix warning] Add ImageBitmap feature as well so that all related methods can be used * Fix cargo fmt * Fix emscripten build * Remove `webgl` feature from wgpu-core as webgl is the only wasm32 backend Co-authored-by: Zicklag <zicklag@katharostech.com> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE.APACHE | ||
LICENSE.MIT |