Advertisement ยท 728 ร— 90

Posts by Iwo Plaza | TypeGPU

Video

I am using Three.js examples to track how well ByeGL is emulating WebGL on top of WebGPU, and today another one started working ๐ŸŽ‰

#byegl #webgpu #webgl

2 months ago 4 1 0 0

Thanks for having me! ๐Ÿ’œ

4 months ago 8 0 0 0

Taking it to the next level ๐Ÿ‘๐Ÿคฏ

4 months ago 3 0 0 0
Video

Just discovered TypeGPU. It's a TypeScript-first way to write GPU shaders and compute pipelines.
You stay in TypeScript, it auto-generates WGSL for WebGPU. ๐Ÿ”ฅ
Perfect for experimenting with rendering, compute, and even AI inference in the browser.

docs.swmansion.com/TypeGPU/exam...

5 months ago 5 2 0 0
Preview
See you at JSNation US? jsnation.us

WebGPU is exciting โ€” but bridging libraries is tricky.

๐ŸŽฎ@iwoplaza.bsky.social introduces TypeGPU: a TypeScript way to write shaders that talk across Three.js, TensorFlow & more. For devs curious about graphics + interop.

See you at JSNation US?

6 months ago 4 1 0 0
Video

The APIs related to uniforms (gl.getActiveUniform, gl.getUniformLocation) are now way more accurate. To test it out, I made a simple multi-light example to diff between ByeGL and WebGL

#byegl #webgpu #webgl

7 months ago 5 0 0 0
Video

I dug up a WebGL game I made 8 years ago, and it's running on WebGPU without any changes thanks to #byegl ๐Ÿฅฏ๐Ÿถ๐ŸŽ‰

#webgl #webgpu

7 months ago 3 0 0 0
Preview
GitHub - software-mansion-labs/byegl: ๐Ÿฅฏ๐Ÿถ A reimplementation of the WebGL API on top of WebGPU, allowing for gradual migration into the future of 3d on the web ๐Ÿฅฏ๐Ÿถ A reimplementation of the WebGL API on top of WebGPU, allowing for gradual migration into the future of 3d on the web - software-mansion-labs/byegl

See the source-code, and consider contributing with issues or PRs ๐Ÿ™
github.com/software-man...

And while you're at it, give us a star! โœจ

7 months ago 0 0 0 0

Get started here: software-mansion-labs.github.io/byegl/

It's very early in development, but the promise of mixing WebGL and WebGPU even in the simplest of examples is already exciting! ๐Ÿฅฏ๐Ÿถ

7 months ago 2 0 1 0
Advertisement
Post image

"byegl" is an initiative to make the WebGL->WebGPU transition seamless for established WebGL apps.

In the end, apps that use "byegl" to migrate will be built on top of WebGPU, not on top of potentially limiting abstractions. Follow us along on the journey!

#webgl #webgpu #byegl

7 months ago 4 0 1 0
Video

The surface below is drawn using vanilla WebGL, yet the vertex buffer is generated procedurally with a WebGPU compute shader.

Once complete, my solution will allow established WebGL apps to migrate to WebGPU, *incrementally*!

I'm shaking from excitement ๐Ÿซจ

#webgpu #webgl #byegl

7 months ago 3 1 0 0
Simulation steps per second

ajs1998.github.io/double-pendu...

I made a simulator to explore the space of double pendulums! It runs in your browser with WebGPU, and it's very fast!

I wrote a little about it here: alex.leaflet.pub/3lxizbtwyg22d

7 months ago 10 3 1 0
Preview
feat: Scaffold the @typegpu/glsl package ยท Issue #1637 ยท software-mansion/TypeGPU The main export of @typegpu/glsl would be the GLSLGenerator, a class matching the new ShaderGenerator interface, responsible for generating GLSL from tinyest. The main uses for the library would be...

Our main effort is definitely WGSL, as weโ€™re betting on it becoming the go-to standard going forward, but a few plans and interests have been materializing lately to give GLSL generation a shot ๐Ÿ‘€

Tracking here:
github.com/software-man...

7 months ago 0 0 0 0

Thank you so much! ๐Ÿ™Œ

7 months ago 1 0 0 0
Iwo Plaza โ€“ Your GPU is a JavaScript runtime* (TypeGPU deep-dive)
Iwo Plaza โ€“ Your GPU is a JavaScript runtime* (TypeGPU deep-dive) YouTube video by Software Mansion

www.youtube.com/watch?v=pBRL...

8 months ago 3 0 0 0
Post image

My talk titled "Your GPU is a JavaScript Runtime*" just landed on YouTube! ๐Ÿ‘จโ€๐Ÿ’ป

I answer WHY and HOW we compile JS/TS to WGSL, how it improves interop for the whole ecosystem, and the added dimension of customizability it unlocks for WebGPU libraries

Video below โฌ‡๏ธ
#webgpu #typegpu #typescript

8 months ago 8 2 1 1

The code above creates a well-typed view over an existing buffer, so you don't have to use TypeGPU APIs anywhere else. We try to be as non-invasive as possible, so people can easily incorporate or eject out granularly.

8 months ago 1 0 1 0
Post image

Glad you stumbled upon us! I know it's not everyone's cup of tea, but we try to make the syntax as similar as we can to WGSL.
As for the maximalist part, you can pick and choose which part of WebGPU you want help with, and we'll stay out of your way for the rest ๐Ÿ’œ

8 months ago 1 0 1 0

Interesting! ๐Ÿ‘€
Would love to share notes, weโ€™re building a very low-level and type-focused library on top of WebGPU called TypeGPU, Iโ€™m sure weโ€™ve stumbled upon similar challenges

8 months ago 1 0 1 0
Advertisement
Video

floating soft glass

made with WebGPU, compute shader, and a fully custom material

r3f.maximeheckel.com/webgpu/glass

8 months ago 31 3 3 0
Video

Sorry guys, turns out Iโ€™ve been making a crab character all along ๐Ÿฆ€

Itโ€™s really fun to make all of this from scratch in a custom engine, Iโ€™m having a blast!
#typegpu #webgpu

8 months ago 7 0 1 0
Video

Remember to always test on deviceโ€ฆ

I thought it was going to run easy 60fps, but only quarter-resolution runs smoothly ๐Ÿข

I guess I gotta embrace the pixelated look!

#typegpu #webgpu

8 months ago 1 0 0 0
Post image

TypeGPU 0.6.0 heading your way! ๐Ÿš€
๐Ÿ” Shader logic re-use โ€“ share logic across shaders without resorting to string concat
๐Ÿงฉ Dependency injection โ€“ parametrize shaders at compile time with slots
๐Ÿ” Auto-generated arg + return types in typed functions โ€“ inferred from your schema
โ€ฆ And more! ๐Ÿ‘‡

8 months ago 7 1 1 0
Video

SDF ray marching written in TypeScript, compiled into WebGPU Shading Language! I think we struck a good balance of flexibility & expressiveness, while vastly improving the DX of working with WebGPU (from the perspective of a TypeScript app)

GPU & CPU end-to-end type safety, tRPC/oRPC style ๐Ÿš€

9 months ago 4 0 0 0

I think it was able to get it right on first try because:
- The TypeScript LSP was able to give feedback to the model along the way
- The I/O bridge between the CPU & GPU is type safe, no need to maintain both sides of the app separately (less room for runtime errors)

Expect more updates on this ๐Ÿ‘€

9 months ago 1 0 0 0
Video

I hate to say it but... LLMs are decent at writing TypeGPU shaders. @thdxr.com's opencode wrote a few SDF functions, then created a simple ray marched scene.

Mind you, this is NOT a Three.js scene! It's a custom fragment shader that sends rays into an "imaginary" space, written fully in TypeScript

9 months ago 2 0 1 0

Exciting! โœจ
It would be awesome to hear your perspective on the problem of interop between WebGPU-based libraries like Tensorflow.js and Three.js, and possible ways forward.

bsky.app/profile/iwop...

9 months ago 1 0 0 0

Looks beautiful! ๐Ÿ’œ

9 months ago 1 0 0 0
Advertisement

Thanks so much for the shout out! ๐Ÿš€
Really fun episode, I am especially interested in the *secret* Nintendo Switch project... ๐Ÿ‘€

9 months ago 1 0 1 0

Definitely a XorDev classic ๐Ÿ‘๐Ÿ‘

Reimplementing it in TypeScript went smoother than last time. Love playing with the parameters on this one ๐Ÿซจ

Code & Preview (WebGPU required):
docs.swmansion.com/TypeGPU/exam...

#webgpu #typegpu #shaders

9 months ago 13 3 1 1