MCPcopy Create free account
hub / github.com/tensorflow/tfjs / unbindTextureUnit

Function unbindTextureUnit

tfjs-backend-webgl/src/webgl_util.ts:253–258  ·  view source on GitHub ↗
(
    gl: WebGLRenderingContext, textureUnit: number)

Source from the content-addressed store, hash-verified

251}
252
253export function unbindTextureUnit(
254 gl: WebGLRenderingContext, textureUnit: number) {
255 validateTextureUnit(gl, textureUnit);
256 callAndCheck(gl, () => gl.activeTexture(gl.TEXTURE0 + textureUnit));
257 callAndCheck(gl, () => gl.bindTexture(gl.TEXTURE_2D, null));
258}
259
260export function getProgramUniformLocationOrThrow(
261 gl: WebGLRenderingContext, program: WebGLProgram,

Callers

nothing calls this directly

Calls 2

validateTextureUnitFunction · 0.85
callAndCheckFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…