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

Class GlTextureFramebuffer

gpu-pipeline/webgl/gl-class.js:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32// A wrapper class for WebGL texture and its associted framebuffer and utility functions.
33class GlTextureFramebuffer extends GlTextureImpl {
34 constructor(gl, framebuffer, texture, width, height) {
35 super(gl, texture, width, height);
36 this.framebuffer_ = framebuffer;
37 }
38
39 bindFramebuffer() {
40 this.gl_.bindFramebuffer(this.gl_.FRAMEBUFFER, this.framebuffer_);
41 this.gl_.viewport(0, 0, this.width, this.height);
42 }
43}
44
45// A wrapper class for WebGL program and its utility functions.
46class GlProgramImpl {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected