MCPcopy Index your code
hub / github.com/microsoft/SandDance / getFramebuffer

Function getFramebuffer

docs/app/js/sanddance-app.js:63892–63901  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

63890 return dstFramebuffer;
63891}
63892function getFramebuffer(source) {
63893 if (!(source instanceof (0, _framebufferDefault.default))) return {
63894 framebuffer: (0, _textureUtils.toFramebuffer)(source),
63895 deleteFramebuffer: true
63896 };
63897 return {
63898 framebuffer: source,
63899 deleteFramebuffer: false
63900 };
63901}
63902function getPixelArray(pixelArray, type, format, width, height) {
63903 if (pixelArray) return pixelArray;
63904 type = type || 5121;

Callers 5

readPixelsToArrayFunction · 0.70
readPixelsToBufferFunction · 0.70
copyToTextureFunction · 0.70
blitFunction · 0.70
GPUSpringTransition1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected