Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#getShaderPrecisionFormat

OpenGL bindings & WebGL API implementation for Deno.
Go to Latest
method WebGLRenderingContext.prototype.getShaderPrecisionFormat
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.6/mod.ts";

Return a new WebGLShaderPrecisionFormat describing the range and precision for the specified shader numeric format. The shadertype value can be FRAGMENT_SHADER or VERTEX_SHADER. The precisiontype value can be LOW_FLOAT, MEDIUM_FLOAT, HIGH_FLOAT, LOW_INT, MEDIUM_INT or HIGH_INT. Returns null if any OpenGL errors are generated during the execution of this function.

Parameters

shaderType: number
precisionType: number