Replies: 1 comment 1 reply
-
Is there some reason you can't use https://webgpufundamentals.org/webgpu/lessons/webgpu-importing-textures.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to work around the lack of HTMLVideoElement interaction by getting video frame data into a canvas element and then into C++ webgpu.h write_texture via emscripten FS files. Using regular webgl getImageData commands gives me an odd shaped image over in C++. Maybe i don't know the exact request of bytesPerBlockRow or blockRowsPerImage purpose or equation? I get my frames all chopped up into consecutively smaller chunks as if the data sizes don't line up.
Anyone want to clarify?
ty...
Beta Was this translation helpful? Give feedback.
All reactions