grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.17k stars 130 forks source link

Fill out tex*Image*D overloads for WebGL2 #234

Closed cwfitzgerald closed 1 year ago

cwfitzgerald commented 1 year ago

This fills out the various gl web apis for texImageD overloads with Canvas, Video, Image, and ImageBitmap.

In service of https://github.com/gfx-rs/wgpu/issues/1888.

The other major change is adding width and height arguments to the ones that are shared with webgl1 - it will just ignore the width and height on webgl1.

cwfitzgerald commented 1 year ago

Alright, I'll split them