-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement copyExternalImageToTexture
#2781
Implement copyExternalImageToTexture
#2781
Conversation
Yes, let's include the example, if it's not too large. |
Is it possible to test this using wasm? I'm not sure how to run the examples for Web. |
Yes. You should to run |
I kind of failed at testing this. Firefox Nightly does not yet support this. The dev branch of google chrome currently fails to execute any WebGPU demo for me. I think this feature should also be supported with WebGL. The following command fails for me:
|
I tested this changes on the Chrome Canary version. I probably add WebGL support, but I prefer to do it in separate pull request to minimize changes for review. |
# Conflicts: # wgpu/Cargo.toml
Whats the status of this? :) |
# Conflicts: # wgpu/Cargo.toml
@maxammann I have resolved conflicts and changes according PR comments. So probably need to await reviewers approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have maintainability concerns about this getting it's own example, but we can tackle that later, I want to get this into the release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have multiple concerns about the example - I don't want to merge the example right now - but I do want to get the core functionality in for this release. I have pushed a change to remove the example from this PR - but I want to continue iterating on the example in another PR!
Connections
A few requests in matrix chat.
Description
This method allow to improve performance of web page, because creating an
ImageBitmap
causes the image data to be decoded into a GPU-friendly format, and it does so off the main thread. linkTesting
I created an example locally to test the new method.
Let me know if I should push it.