#rc #webgl #resources #texture

webgl-rc

WebGL wrapper with resources reference counting

13 releases

0.1.12 Oct 12, 2024
0.1.11 Jun 10, 2024
0.1.10 May 11, 2024
0.1.8 Oct 1, 2022
0.1.0 Jun 28, 2022

#1007 in Web programming

Download history

752 downloads per month

MIT license

85KB
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–13MB
~235K SLoC