computeImageBitmapEquality
Members
- ctx_ref :
WeakRef.<WebGL2RenderingContext>|null
Ref holding webgl context, being weak-ref, allows context to be removed when not in use
Constants
- sampler_cache :
WeakMap.<ImageBitmap, Sampler2D>
Functions
-
obtainSampler(bitmap, ctx) ⇒
Sampler2D -
obtainCanvasCtx(width, height) ⇒
WebGL2RenderingContext -
sampler_from_bitmap(bitmap) ⇒
Sampler2D -
computeImageBitmapEquality(a, b) ⇒
boolean
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
| Param | Type |
|---|---|
| bitmap | ImageBitmap |
| ctx | WebGL2RenderingContext |
obtainCanvasCtx(width, height) ⇒ WebGL2RenderingContext
Kind: global function
| Param | Type |
|---|---|
| width | number |
| height | number |
sampler_from_bitmap(bitmap) ⇒ Sampler2D
Kind: global function
| Param | Type |
|---|---|
| bitmap | ImageBitmap |
computeImageBitmapEquality(a, b) ⇒ boolean
Kind: global function
| Param | Type |
|---|---|
| a | ImageBitmap |
| b | ImageBitmap |