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

Function resizeFBO

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

Source from the content-addressed store, hash-verified

646 }
647
648 function resizeFBO(target, w, h, internalFormat, format, type, param) {
649 let newFBO = createFBO(w, h, internalFormat, format, type, param);
650 copyProgram.bind();
651 gl.uniform1i(copyProgram.uniforms.uTexture, target.attach(0));
652 blit(newFBO);
653 return newFBO;
654 }
655
656 function resizeDoubleFBO(target, w, h, internalFormat, format, type, param) {
657 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