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

Function toFramebuffer

docs/app/js/sanddance-app.js:60682–60691  ·  view source on GitHub ↗
(texture, opts)

Source from the content-addressed store, hash-verified

60680 return new TextureType(gl, textureOptions);
60681}
60682function toFramebuffer(texture, opts) {
60683 var gl = texture.gl, width = texture.width, height = texture.height, id = texture.id;
60684 var framebuffer = new (0, _framebufferDefault.default)(gl, Object.assign({}, opts, {
60685 id: "framebuffer-for-".concat(id),
60686 width: width,
60687 height: height,
60688 attachments: (0, _definePropertyDefault.default)({}, 36064, texture)
60689 }));
60690 return framebuffer;
60691}
60692
60693},{"@babel/runtime/helpers/esm/defineProperty":"5Xk1p","../classes/texture-2d":"cRt4v","../classes/texture-cube":"jRimD","../classes/texture-3d":"67D1a","../classes/framebuffer":"3wciM","../utils":"eK1k6","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"cRt4v":[function(require,module,exports) {
60694var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected