bitmap2sampler_gl
bitmap2sampler_gl(gl, sampler, bitmap)
Transfer bitmap contents to Sampler2D, effectively moving data to CPU, making it readable
Kind: global function
Param | Type |
---|---|
gl | WebGL2RenderingContext |
sampler | Sampler2D |
bitmap | ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement |
bitmap2sampler_gl~target_data : Uint8ClampedArray
Kind: inner constant of bitmap2sampler_gl