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

Function getPixelArray

docs/app/js/sanddance-app.js:63902–63910  ·  view source on GitHub ↗
(pixelArray, type, format, width, height)

Source from the content-addressed store, hash-verified

63900 };
63901}
63902function getPixelArray(pixelArray, type, format, width, height) {
63903 if (pixelArray) return pixelArray;
63904 type = type || 5121;
63905 var ArrayType = (0, _typedArrayUtils.getTypedArrayFromGLType)(type, {
63906 clamped: false
63907 });
63908 var components = (0, _formatUtils.glFormatToComponents)(format);
63909 return new ArrayType(width * height * components);
63910}
63911
63912},{"./buffer":"b1PWl","./framebuffer":"3wciM","./texture":"fa6ef","@luma.gl/gltools":"7HW6a","../webgl-utils":"hZtIX","../webgl-utils/typed-array-utils":"4mpgk","../webgl-utils/format-utils":"19VoX","../webgl-utils/texture-utils":"hWpBe","../utils":"eK1k6","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"19VoX":[function(require,module,exports) {
63913var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

readPixelsToArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected