MCPcopy
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / resizeFBO

Function resizeFBO

script.js:1108–1114  ·  view source on GitHub ↗
(target, w, h, internalFormat, format, type, param)

Source from the content-addressed store, hash-verified

1106}
1107
1108function resizeFBO (target, w, h, internalFormat, format, type, param) {
1109 let newFBO = createFBO(w, h, internalFormat, format, type, param);
1110 copyProgram.bind();
1111 gl.uniform1i(copyProgram.uniforms.uTexture, target.attach(0));
1112 blit(newFBO);
1113 return newFBO;
1114}
1115
1116function resizeDoubleFBO (target, w, h, internalFormat, format, type, param) {
1117 if (target.width == w && target.height == h)

Callers 1

resizeDoubleFBOFunction · 0.85

Calls 2

createFBOFunction · 0.85
bindMethod · 0.45

Tested by

no test coverage detected