all AI news
WebGL texture slots allocation
Nov. 24, 2023, 5:57 p.m. | Jack Le Hamster
DEV Community dev.to
A bit about WebGL texture
For those who don't know how it works.
In WebGL, the way we show an image is by placing it on a texture, and sending it to the GPU.
The code looks something like this:
this.gl.texSubImage2D(
GL.TEXTURE_2D,
0,
dstX,
dstY,
dstWidth,
dstHeight,
GL.RGBA,
GL.UNSIGNED_BYTE,
mediaInfo.texImgSrc,
);
And while this seems a bit complex, …
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Alternance DATA/AI Engineer (H/F)
@ SQLI | Le Grand-Quevilly, France