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

Class GlTextureImpl

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

Source from the content-addressed store, hash-verified

17
18// A wrapper class for WebGL texture and its utility functions.
19class GlTextureImpl {
20 constructor(gl, texture, width, height) {
21 this.gl_ = gl;
22 this.texture_ = texture;
23 this.width = width;
24 this.height = height;
25 }
26
27 bindTexture() {
28 this.gl_.bindTexture(this.gl_.TEXTURE_2D, this.texture_);
29 }
30}
31
32// A wrapper class for WebGL texture and its associted framebuffer and utility functions.
33class GlTextureFramebuffer extends GlTextureImpl {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected