()
| 233 | } |
| 234 | |
| 235 | getTextureFormat() { |
| 236 | const { context: gl } = this; |
| 237 | switch (this.getInternalFormat()) { |
| 238 | case gl.R32F: |
| 239 | return gl.RED; |
| 240 | case gl.RG32F: |
| 241 | return gl.RG; |
| 242 | case gl.RGBA32F: |
| 243 | return gl.RGBA; |
| 244 | case gl.RGBA: |
| 245 | return gl.RGBA; |
| 246 | default: |
| 247 | throw new Error('Unknown internal format'); |
| 248 | } |
| 249 | } |
| 250 | getInternalFormat() { |
| 251 | const { context: gl } = this; |
| 252 |
no test coverage detected