-
Notifications
You must be signed in to change notification settings - Fork 953
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
allow creation of wgpu_hal textures for gles backend #3046
Conversation
82a7202
to
9abc9eb
Compare
f1c6dc3
to
28f04cf
Compare
It'd be great to be able to roll the functionality in #2609 into this! I think it'd require something like this: pub unsafe fn texture_from_raw(
&self,
raw_texture: RawTexture,
...
) enum RawTexture {
Name(&str),
WebGl(web_sys::WebGlFramebuffer)
} |
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.
Small comments, otherwise LGTM
This should be enough to allow RGB external textures to work on Linux. For Android, we still need to implement logic to generate shaders with samplerOESExternal and select the correct shader depending on the type of texture being created.
28f04cf
to
0360e60
Compare
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.
One more nit, then G2G
Checklist
cargo clippy
.RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown
if applicable.Connections
Relating to #2320, this should expose enough to allow external textures to work on Linux. I will write a further explanation on the linked issue about Android and what is covered so far by that issue.
Description
Add functions to create gles textures from external objects. Specifically, from a GL texture and GL renderbuffer.
Note: This pull request will need a new glow release at some point in the future.