Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#deleteShader

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

Mark for deletion the shader object contained in the passed WebGLShader, as if by calling glDeleteShader. 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

shader: WebGLShader | null