MCPcopy Index your code
hub / github.com/tensorflow/tfjs / createProgram

Function createProgram

tfjs-backend-webgl/src/webgl_util.ts:145–148  ·  view source on GitHub ↗
(gl: WebGLRenderingContext)

Source from the content-addressed store, hash-verified

143}
144
145export function createProgram(gl: WebGLRenderingContext): WebGLProgram {
146 return throwIfNull<WebGLProgram>(
147 gl, () => gl.createProgram(), 'Unable to create WebGLProgram.');
148}
149
150export function linkProgram(gl: WebGLRenderingContext, program: WebGLProgram) {
151 callAndCheck(gl, () => gl.linkProgram(program));

Callers

nothing calls this directly

Calls 2

throwIfNullFunction · 0.85
createProgramMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…