(target, w, h, internalFormat, format, type, param)
| 1114 | } |
| 1115 | |
| 1116 | function 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 | |
| 1128 | function createTextureAsync (url) { |
| 1129 | let texture = gl.createTexture(); |
no test coverage detected