Skip to main content

computeImageBitmapEquality

Members

  • ctx_ref : WeakRef.<WebGL2RenderingContext> | null

Ref holding webgl context, being weak-ref, allows context to be removed when not in use

Constants

Functions

ctx_ref : WeakRef.<WebGL2RenderingContext> | null

Ref holding webgl context, being weak-ref, allows context to be removed when not in use

Kind: global variable

sampler_cache : WeakMap.<ImageBitmap, Sampler2D>

Kind: global constant

obtainSampler(bitmap, ctx) ⇒ Sampler2D

Kind: global function

ParamType
bitmapImageBitmap
ctxWebGL2RenderingContext

obtainCanvasCtx(width, height) ⇒ WebGL2RenderingContext

Kind: global function

ParamType
widthnumber
heightnumber

sampler_from_bitmap(bitmap) ⇒ Sampler2D

Kind: global function

ParamType
bitmapImageBitmap

computeImageBitmapEquality(a, b) ⇒ boolean

Kind: global function

ParamType
aImageBitmap
bImageBitmap