(glType)
| 61768 | } |
| 61769 | } |
| 61770 | function getTypedArrayFromGLType(glType) { |
| 61771 | var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref$clamped = _ref.clamped, clamped = _ref$clamped === void 0 ? true : _ref$clamped; |
| 61772 | switch(glType){ |
| 61773 | case 5126: |
| 61774 | return Float32Array; |
| 61775 | case 5123: |
| 61776 | case 33635: |
| 61777 | case 32819: |
| 61778 | case 32820: |
| 61779 | return Uint16Array; |
| 61780 | case 5125: |
| 61781 | return Uint32Array; |
| 61782 | case 5121: |
| 61783 | return clamped ? Uint8ClampedArray : Uint8Array; |
| 61784 | case 5120: |
| 61785 | return Int8Array; |
| 61786 | case 5122: |
| 61787 | return Int16Array; |
| 61788 | case 5124: |
| 61789 | return Int32Array; |
| 61790 | default: |
| 61791 | throw new Error("Failed to deduce typed array type from GL constant"); |
| 61792 | } |
| 61793 | } |
| 61794 | function flipRows(_ref2) { |
| 61795 | var data = _ref2.data, width = _ref2.width, height = _ref2.height, _ref2$bytesPerPixel = _ref2.bytesPerPixel, bytesPerPixel = _ref2$bytesPerPixel === void 0 ? 4 : _ref2$bytesPerPixel, temp = _ref2.temp; |
| 61796 | var bytesPerRow = width * bytesPerPixel; |
nothing calls this directly
no outgoing calls
no test coverage detected