contrast_renderer
WebGL_Compute_shader
contrast_renderer | WebGL_Compute_shader | |
---|---|---|
4 | 3 | |
63 | 289 | |
- | - | |
6.1 | 10.0 | |
3 months ago | over 4 years ago | |
Rust | TypeScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
contrast_renderer
-
WebGPU Fundamentals
This is true, but there is a lot more to the story. For one, WebGPU does not (yet) support mesh shaders, though it may later as an extension. For two, consider a glyph such as "o" that has two contours. Real triangulation generates a mesh that only generates triangles between the outer and inner contours, and mesh shaders aren't good at that. There are techniques (cover and stencil) that draw twice, incrementing and decrementing a winding number stored in the stencil buffer (see contrast renderer[1] for a clean modern implementation), but it does require nontrivial tracking on the CPU side, and can result in lots of draw calls to switch between the cover and stencil stages unless sophisticated batching is done.
Compute shaders avoid all these problems and work on WebGPU 1.0 today.
[1]: https://github.com/Lichtso/contrast_renderer
-
Rust: State of GUI, December 2022 – KAS blog
Thanks!
You can also checkout the "feature/ui" branch in GIT [1] to get the UI framework prototype.
[1]: https://github.com/Lichtso/contrast_renderer/tree/feature/ui
- Vector Graphics on GPU
WebGL_Compute_shader
-
3D and 2D: Testing out my cross-platform graphics engine
It should be noted that the reason we don't have compute shaders on WebGL 2.0 was Chrome team dropping the ball on them.
https://github.com/9ballsyndrome/WebGL_Compute_shader/issues...
https://www.khronos.org/webgl/public-mailing-list/public_web...
https://issues.chromium.org/issues/40150444
-
WebGPU Fundamentals
Yes,
https://registry.khronos.org/webgl/specs/latest/2.0-compute/
https://github.com/9ballsyndrome/WebGL_Compute_shader
And then Google decides not implementating it after all, because of WebGPU.
https://github.com/9ballsyndrome/WebGL_Compute_shader/issues...
-
i still don't understand how webgl,webgpu makes things faster
You can do number processing on the GPU in shaders using compute shaders such as these demos
What are some alternatives?
nbody-wasm-sim - An N-body WebAssembly simulation using Web GPU
fciv-net - Freeciv 3D - Fciv.net the 3D version of the Freeciv strategy game
nanovgXC - Lightweight vector graphics library implementing exact-coverage antialiasing in OpenGL
qemujs - Qemu.js source code with proof-of-concept machine-code-to-WASM JIT.
glyphy - GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.
caniuse - Raw browser/feature support data from caniuse.com
vger-rs - 2D GPU renderer for dynamic UIs
hashlink - A virtual machine for Haxe
msdfgen - Multi-channel signed distance field generator
Kha - Ultra-portable, high performance, open source multimedia framework.
wxRust2 - re-exploration Rust binding to wx
component-model - Repository for design and specification of the Component Model