Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gluten/src/webgl/mod.ts>WebGLRenderingContext#createShader

OpenGL bindings & WebGL API implementation for Deno.
Latest
method WebGLRenderingContext.prototype.createShader
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.7/src/webgl/mod.ts";

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

Parameters

type: number