Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#deleteProgram

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

Mark for deletion the program object contained in the passed WebGLProgram, as if by calling glDeleteProgram. If the object has already been marked for deletion, the call has no effect. Note that underlying GL object will be automatically marked for deletion when the JS object is destroyed, however this method allows authors to mark an object for deletion early.

Parameters

program: WebGLProgram | null