David Peipei

@davidpei.bsky.social

Real time Graphics Engineer working on Wonderland Engine. On the side I do WebGPU pathtracing and lightmapping 💫 in rust 🦀 https://davidpeicho.github.io/about

Trying to solve a fun problem. I am embedding quick-js natively in a rust app. I also have a wasm api to js. My goal: Expose the same api to web js and quickjs. But I also need to handle wasm memory views that are used throughout the API. I would prefer not to use wasi. Any idea? #rust #wasm

Really wish wasm-bindgen gen boilerplate code to write a struct from js to read into rust Wasm, without allocating an object or the need to free a pointer. * Give some pointer to temp memory * wasm-bindgen write the js objects (Pod fields) to pointer * Rust has access to the struct via the pointer

Looks like Chrome DevTools now include an "AI summaries for console messages". I wish I got natvis / LLDB formatters instead, which seems to be slightly more useful to debug WASM code 😅

Most of the noise from disocclusion is now gone. Reflections will be a pain to handle, looking forward to it 😁 I waited too long for that, but I really need some mipmaps to get rid of the texture sampling artefact 🫠 #webgpu #rust

Just released a new version of github.com/DavidPeicho/... * Removes the "basic" API in favor of the "advanced" API provided by #tinybvh. * Unifies layouts build * Safer usage This version is API-breaking, but the library was still tagged as beta 😄 Will probably hit 0.1.0 soon this time!

GitHub - DavidPeicho/tinybvh-rs: Rust wrapper for the tinybvh libary

Rust wrapper for the tinybvh libary. Contribute to DavidPeicho/tinybvh-rs development by creating an account on GitHub.

github.com

Haven't been improving tinybvh-rs much lately, but catching up soon! Unfortunately, compiling a rust crate depending on tinybvh-rs is painful if you don't want to use emscripten. I just decided to not use tinybvh in wasm rust anymore, slowing down my progress on tinybvh-rs.

First time that I think that rust tooling needs some work: The WebAssembly support with a dependency in C++ is not yet nice to use. Using wasm32-unknown-emscripten also means not using wasm-bindgen

First post here! Continuing my journey on my #rustlang #webgpu pathracing library, fully GPU software, i.e., no RTX. TLAS + Texture atlas performance are slowing down the pathtracing quite a bit. Will need to focus on that after I get rid of more noise