MCPcopy Create free account
hub / github.com/tensorflow/tfjs / validateFramebuffer

Function validateFramebuffer

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

Source from the content-addressed store, hash-verified

304}
305
306export function validateFramebuffer(gl: WebGLRenderingContext) {
307 const status = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
308 if (status !== gl.FRAMEBUFFER_COMPLETE) {
309 throw new Error(
310 'Error binding framebuffer: ' + getFramebufferErrorMessage(gl, status));
311 }
312}
313
314export function getFramebufferErrorMessage(
315 gl: WebGLRenderingContext, status: number): string {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…