Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#getExtension

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method WebGLRenderingContext.prototype.getExtension
import { WebGLRenderingContext } from "https://deno.land/x/caviar@2.6.7/deps.ts";

Returns an object if, and only if, name is an ASCII case-insensitive match [HTML] for one of the names returned from getSupportedExtensions; otherwise, returns null. The object returned from getExtension contains any constants or functions provided by the extension. A returned object may have no constants or functions if the extension does not define any, but a unique object must still be returned. That object is used to indicate that the extension has been enabled.

Parameters

name: string