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

Function createFrameBuffer

tfjs-react-native/src/camera/camera_webgl_util.ts:300–306  ·  view source on GitHub ↗
(gl: WebGL2RenderingContext)

Source from the content-addressed store, hash-verified

298}
299
300function createFrameBuffer(gl: WebGL2RenderingContext): WebGLFramebuffer {
301 const fb = gl.createFramebuffer();
302 if (fb == null) {
303 throw new Error('Could not create framebuffer');
304 }
305 return fb;
306}
307
308export function drawTextureProgram(
309 gl: WebGL2RenderingContext, flipHorizontal: boolean, flipVertical: boolean,

Callers 2

downloadTextureDataFunction · 0.85
runResizeProgramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…