MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / resizeFBO

Function resizeFBO

src/content/Animations/SplashCursor/SplashCursor.jsx:651–657  ·  view source on GitHub ↗
(target, w, h, internalFormat, format, type, param)

Source from the content-addressed store, hash-verified

649 }
650
651 function resizeFBO(target, w, h, internalFormat, format, type, param) {
652 let newFBO = createFBO(w, h, internalFormat, format, type, param);
653 copyProgram.bind();
654 gl.uniform1i(copyProgram.uniforms.uTexture, target.attach(0));
655 blit(newFBO);
656 return newFBO;
657 }
658
659 function resizeDoubleFBO(target, w, h, internalFormat, format, type, param) {
660 if (target.width === w && target.height === h) return target;

Callers 1

resizeDoubleFBOFunction · 0.70

Calls 2

createFBOFunction · 0.70
bindMethod · 0.45

Tested by

no test coverage detected