Registry / other / bevy-webgl2

bevy-webgl2

JSON →
library0.5.2rscratesunverified

A WebGL2 render backend for the Bevy game engine, enabling wasm32 targets.

# Cargo.toml [dependencies] bevy_webgl2 = "0.5.2"
INSTALL
IMPORT
SIG · BEVY-WEBGL2
B
bevy-webgl2
otherrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebGL2Backend
use bevy_webgl2::WebGL2Backend;

Sets up a Bevy app with the WebGL2 render backend for wasm.

use bevy::prelude::*; use bevy_webgl2::WebGL2Backend; fn main() { App::new() .add_plugins(DefaultPlugins.set(RenderPlugin { render_backend: WebGL2Backend, ..default() })) .run(); }
Debug
Known issues
gotchaRequires wasm32 target and webgl2 support in browser.
fix
Compile with --target wasm32-unknown-unknown and ensure browser supports WebGL2.
affects: >=0.5.0
Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Meta
2
OpenAI (training)
1
Resources
bevy-webgl2 — cargo add bevy-webgl2 · libregistry