The Webgl context that will execute the operations for filtering
Contains GPU info for debug
Optional imageIf GLPut data is the fastest operation, or if forced, this buffer will be used to transfer the data back in the 2d logic
Keyed map for shader cache
Experimental. This object is a sort of repository of help layers used to avoid of recreating them during frequent filtering. If you are previewing a filter with a slider you probably do not want to create help layers every filter step. in this object there will be appended some canvases, created once, resized sometimes cleared never. Clearing is left to the developer.
Keyed map for texture cache
Attempts to apply the requested filters to the source provided, drawing the filtered output to the provided target canvas.
The filters to apply.
The source to be filtered.
The width of the source input.
The height of the source input.
The destination for filtered output to be drawn.
Optional cacheKey: stringA key used to cache resources related to the source. If omitted, caching will be skipped.
Pick a method to copy data from GL context to 2d canvas. In some browsers using drawImage should be faster, but is also bugged for a small combination of old hardware and drivers. putImageData is faster than drawImage for that specific operation.
Copy an input WebGL canvas on to an output 2D canvas.
The WebGL canvas is assumed to be upside down, with the top-left pixel of the desired output image appearing in the bottom-left corner of the WebGL canvas.
The 2D target canvas to copy on to.
Create a WebGL texture object.
Accepts specific dimensions to initialize the texture to or a source image.
The GL context to use for creating the texture.
The width to initialize the texture at.
The height to initialize the texture.
Optional textureImageSource: TexImageSourceA source for the texture data.
Optional filter: numbergl.NEAREST default or gl.LINEAR filters for the texture. This filter is very useful for LUTs filters. If you need interpolation use gl.LINEAR
Can be optionally used to get a texture from the cache array
If an existing texture is not found, a new texture is created and cached.
A cache key to use to find an existing texture.
A source to use to create the texture cache entry if one does not already exist.
Optional filter: numberGenerated using TypeDoc
Define ...