Repository navigation
Replies: 1 comment 1 reply
|
Note that there are some methods on Texture: https://github.com/visgl/luma.gl/blob/master/modules/core/src/adapter/resources/texture.ts#L283 Haven't quite had the time to settle on the final interface. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Related to the planned "Move
readPixels*()to CommandEncoder" work mentioned in #2408 (also possibly related: #2380)I'm trying to implement HDR export in deck.gl that needs cross-platform texture readback. Currently:
device.readPixelsToArrayWebGL()(sync)I've added a workaround in deck.gl (
_readPixelsAsync) that:copyTextureToBuffer+buffer.mapAsyncwith proper 256-byte row alignmentreadPixelsToArrayWebGLin PromiseProposed unified API:
This would let us remove the deck.gl workaround. Happy to contribute a PR if there's agreement on the API shape.
Ref: visgl/deck.gl#9936
All reactions