Documentation / @ripl/3d / releaseTexturePatternCache
Function: releaseTexturePatternCache() ​
releaseTexturePatternCache(
ctx):void
Defined in: 3d/src/core/texture-pattern.ts:194
Drops every texture pattern cached against a context, together with the offscreen tile canvases the mirrored and ImageData-backed ones hold. Call it when the context is torn down.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
ctx | CanvasRenderingContext2D | The native context whose cached patterns are released. |
Returns ​
void