MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / constructor

Method constructor

gpu-pipeline/webgl/gl-class.js:47–51  ·  view source on GitHub ↗
(gl, program)

Source from the content-addressed store, hash-verified

45// A wrapper class for WebGL program and its utility functions.
46class GlProgramImpl {
47 constructor(gl, program) {
48 this.gl_ = gl;
49 this.program_ = program;
50 this.cachedUniformLocations_ = new Map();
51 }
52
53 useProgram() {
54 this.gl_.useProgram(this.program_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected