@warrenm Useful! Now we just need better UIImage - Metal/GL compatibility.
-
-
-
@_psonice On the Metal front, MTKTextureLoader makes it pretty easy to go UIImage -> texture, via CGImage. What’s missing? -
Using a UIImage(named:) with MTKTextureLoader (it's a PNG with alpha) throws error "Image decoding failed". Is there an obvious reason?
-
I can reproduce this on iOS 10.3.1. Please file a Radar.
-
In the meantime, try using UIImagePNGRepresentation on the image to get a Data and create the texture from that.
-
Got it! Thank you for the quick reply!
-
Always happy to help :)
-
I submitted a Radar and also put it on https://openradar.appspot.com/radar?id=4985535642730496 …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.