(gl, format)
| 6224 | } |
| 6225 | |
| 6226 | function isLinearFilteringSupported(gl, format) { |
| 6227 | var info = TEXTURE_FORMATS[format]; |
| 6228 | |
| 6229 | switch (info && info.types[0]) { |
| 6230 | // Both WebGL1 and WebGL2? |
| 6231 | case 5126: |
| 6232 | return gl.getExtension('OES_texture_float_linear'); |
| 6233 | // Not in WebGL2? |
| 6234 | |
| 6235 | case 5131: |
| 6236 | return gl.getExtension('OES_texture_half_float_linear'); |
| 6237 | |
| 6238 | default: |
| 6239 | return true; |
| 6240 | } |
| 6241 | } |
| 6242 | |
| 6243 | var Texture = |
| 6244 | /*#__PURE__*/ |