(gl, opts)
| 60410 | |
| 60411 | |
| 60412 | function getFloatTexture(gl, opts) { |
| 60413 | var _parameters; |
| 60414 | |
| 60415 | var _opts$width = opts.width, |
| 60416 | width = _opts$width === void 0 ? 1 : _opts$width, |
| 60417 | _opts$height = opts.height, |
| 60418 | height = _opts$height === void 0 ? 1 : _opts$height; |
| 60419 | var texture = new _luma.Texture2D(gl, { |
| 60420 | data: null, |
| 60421 | format: _constants.default.RGBA32F, |
| 60422 | type: _constants.default.FLOAT, |
| 60423 | border: 0, |
| 60424 | mipmaps: false, |
| 60425 | parameters: (_parameters = {}, _defineProperty(_parameters, _constants.default.TEXTURE_MAG_FILTER, _constants.default.NEAREST), _defineProperty(_parameters, _constants.default.TEXTURE_MIN_FILTER, _constants.default.NEAREST), _parameters), |
| 60426 | dataFormat: _constants.default.RGBA, |
| 60427 | width: width, |
| 60428 | height: height |
| 60429 | }); |
| 60430 | return texture; |
| 60431 | } |
| 60432 | |
| 60433 | function getFramebuffer(gl, opts) { |
| 60434 | var id = opts.id, |
no test coverage detected