Post

Replies

Boosts

Views

Activity

Reply to Metal pre-multiplies alpha on iOS but not macOS?
I think the problem probably lies with the XCode packaging options rather than the Metal API.There's an option in `Build Settings`->`Compress PNG Files - Packaging` called `Compress PNG Files` which recompresses your PNG files with a custom version of PNGCrush, amongst other things (switching to BGRA IIRC), it premultiplies the alpha.
Nov ’19