MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / resizeDoubleFBO

Function resizeDoubleFBO

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

Source from the content-addressed store, hash-verified

1114}
1115
1116function resizeDoubleFBO (target, w, h, internalFormat, format, type, param) {
1117 if (target.width == w && target.height == h)
1118 return target;
1119 target.read = resizeFBO(target.read, w, h, internalFormat, format, type, param);
1120 target.write = createFBO(w, h, internalFormat, format, type, param);
1121 target.width = w;
1122 target.height = h;
1123 target.texelSizeX = 1.0 / w;
1124 target.texelSizeY = 1.0 / h;
1125 return target;
1126}
1127
1128function createTextureAsync (url) {
1129 let texture = gl.createTexture();

Callers 1

initFramebuffersFunction · 0.85

Calls 2

resizeFBOFunction · 0.85
createFBOFunction · 0.85

Tested by

no test coverage detected