I already have experience with opengl, cuda. I want to start learning more about webassembly and webgpu so I can run these applications cross platform. I have a couple projects in mind to do with these technologies, but I want to create an engine to build them with.
Ikik I could use a preexisting engine, but I think these exercises are fun and the unexpected challenges that come with building something like this always teach me something.
npm run build
and then open dist/index.html
in the browserThe general flow
Use the wgsl programming language Seems to have a similar syntax to rust Vertex shaders are interpolated like opengl
Create a buffer and add the data. Then specify the format/stride/offset of the vertices. Then render, making sure that shader has the location of the buffers aligned properly.