Skip to content

pohldaniel/Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust

To build the 01GLFW3 example open a console and change the directory to PATH\Rust\01GLFW3 and run the commands

      cargo build
      cargo run

To build the wgpu-lib wasm module, change to 02Wasm\src\assets\wasm\wgpu-lib and type

      wasm-pack build --target web

To build the ems-lib wasm module you will need the emscripten sdk and the wasm32-unknown-emscripten traget

      rustup target add wasm32-unknown-emscripten

Change to 02Wasm\src\assets\wasm\ems-lib and type

      cargo build --release --target wasm32-unknown-emscripten

after that switch back to 02Wasm directory and type

      npm install
      npm run build-prod (git deployment)
      ng serve (local development)

Try it out:

      https://pohldaniel.github.io/Rust/web-gpu/

The example is from https://www.trion.de/news/2022/11/15/wgpu-webasm.html and https://github.com/NeoCogi/rs-glfw3-gles2-test

To build the 03Vulkan example open a console and change the directory to PATH\Rust\01GLFW3 and run the commands

      cargo build
      cargo run --bin triangle
      cargo run --bin 32_secondary_command_buffers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published