Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 670 Bytes

ReadMe.md

File metadata and controls

50 lines (32 loc) · 670 Bytes

WGPU Render

Linux

Linux Prerequisites

cargo install cargo-watch

Linux Run and Watch

cargo watch -x run

Web

WASM Prerequisites

Install wasm-server-runner

cargo install cargo-watch
cargo install wasm-server-runner

WASM Run and Watch

WASM_SERVER_RUNNER_CUSTOM_INDEX_HTML=index.html cargo watch -x "run --target wasm32-unknown-unknown"

Use wee_alloc as allocator

Add optional feature Flag --features wee_alloc to compile with wee_alloc as global allocator.

Shader Validation

Shader Prerequisites

cargo install cargo-wgsl

Validate Shaders

cargo wgsl