ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.65k stars 491 forks source link

Request: support jpg/png images #231

Closed Michael-Lfx closed 2 years ago

Michael-Lfx commented 2 years ago

Could you support loading .jpg and .png files for IResourceLoader?

https://github.com/ConfettiFX/The-Forge/blob/e882fbc000b2915b52c98fe3a8c791930490dd3c/Common_3/Renderer/IResourceLoader.h#L42-L59

wolfgangfengel commented 2 years ago

We only support practical formats that you can use in games. So the ones that are expected to be hardware decompressed ...

Michael-Lfx commented 2 years ago

Thank you for the reply! I am trying to use The-Forge in our app like TikTok which using graphics API to do image processing and 3D rendering. Most of our video effect resources are pngs and mp4s with alpha channel. It will be great if The-Forge official supports. Then we can avoid to diverge from the official.