Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#createShader

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

Creates a WebGLShader that can then be configured further using WebGLRenderingContext.shaderSource() and WebGLRenderingContext.compileShader().

Parameters

type: number