#webgl #reference-counting #wrapper #resources

webgl-rc

WebGL wrapper with resources reference counting

9 releases

0.1.8 Oct 1, 2022
0.1.7 Sep 4, 2022
0.1.6 Aug 30, 2022
0.1.3 Jul 5, 2022
0.1.0 Jun 28, 2022

#21 in #webgl

MIT license

82KB
2.5K SLoC

Rust WebGL Wrapper

Every resource in webgl-rc contains a reference counter. So, cloning texture or buffer will create a new reference to the same resource.

Example

Source: https://github.com/monkin/webgl-rc/tree/master/webgl-rc-example

Live: https://monkin.github.io/webgl-rc/webgl-rc-example/dist/index.html

Dependencies

~9–12MB
~224K SLoC