Read Texture2D pixel data at runtime with IOStore

Hey everyone, I’ve spent much time trying countless ways online to read the raw pixel data of a Texture2D in hopes of exporting it as a PNG file to disk, but no avail. Most likely because of IOStore.

I have tried using Lock but it returns a pointer to reserved but empty data. ExportToDisk doesn’t work because the Texture is DXT5 compressed.

I don’t know much about IOStore due to its lack of documentation but what’s the best approach for this?