MCPcopy Create free account
hub / github.com/gre/gl-react / parseInterpolation

Function parseInterpolation

packages/gl-react/src/Node.tsx:151–161  ·  view source on GitHub ↗
(gl: WebGLRenderingContext, i: string)

Source from the content-addressed store, hash-verified

149};
150
151const parseInterpolation = (gl: WebGLRenderingContext, i: string): number => {
152 switch (i) {
153 case "linear":
154 return gl.LINEAR;
155 case "nearest":
156 return gl.NEAREST;
157 default:
158 console.warn("Invalid interpolation. Got:", i);
159 return gl.LINEAR;
160 }
161};
162
163type Framebuffer = {
164 handle: WebGLFramebuffer;

Callers 1

applyTextureOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…