ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: support jpg/png images

Michael-Lfx opened this issue · comments

commented

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

typedef enum TextureContainerType
{
/// Use whatever container is designed for that platform
/// Windows, macOS, Linux - TEXTURE_CONTAINER_DDS
/// iOS, Android - TEXTURE_CONTAINER_KTX
TEXTURE_CONTAINER_DEFAULT = 0,
/// Explicit container types
/// .dds
TEXTURE_CONTAINER_DDS,
/// .ktx
TEXTURE_CONTAINER_KTX,
/// .gnf
TEXTURE_CONTAINER_GNF,
/// .basis
TEXTURE_CONTAINER_BASIS,
/// .svt
TEXTURE_CONTAINER_SVT,
} TextureContainerType;

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

commented

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.