MCPcopy Create free account
hub / github.com/microsoft/SandDance / getFloatTexture

Function getFloatTexture

docs/tests/v2/es6/js/sanddance.js:60412–60431  ·  view source on GitHub ↗
(gl, opts)

Source from the content-addressed store, hash-verified

60410
60411
60412function 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
60433function getFramebuffer(gl, opts) {
60434 var id = opts.id,

Callers 1

getFramebufferFunction · 0.85

Calls 1

_definePropertyFunction · 0.70

Tested by

no test coverage detected