Closed Colecf closed 2 years ago
Hi! 👋 This isn't possible at the moment but you might be able to work around it using transmute
temporarily.
I think we could definitely add a function to create a NativeTexture
from a u32
handle to support this case. Feel free to add a PR if you'd like, otherwise I'll try to add something soon!
Ah thanks for the tip, transmute
does actually work perfectly.
It's kindof a hassle for me to get permission from the company I work for to contribute to open source projects, so I don't think it's worth it for something so small. But thanks for the tip, I'll keep an eye on future releases to see if this gets improved.
Wow that was fast, thanks again!
Hi, is it possible to take a texture id given as a u32 and wrap it as a glow::Texture? I'm using the
openxr
crate, which gives you textures to render to as u32s, and I can't figure out how to make them into a glow::Texture, considering NativeTexture's field is private.