Repository navigation
ASTC compressed texture support? #4141
PodcastStudioX
started this conversation in
General
Replies: 1 comment
|
WebGPU supports ASTC texture compression through the optional "texture-compression-astc" feature. Via the WebGPU/Skia interop this should work nicely. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'm using React Native Skia in an app that draws a lot of large images on iOS and Android. GPU memory is becoming a constraint, and I'd love to use ASTC-compressed textures to cut it down.
For example, a 4096×4096 RGBA image takes ~64 MB once decoded, versus ~16 MB as ASTC 4×4 (or less with larger block sizes).
From what I can tell, ASTC isn't possible right now:
MakeImageFromEncodedcan't decode.astc/.ktxfilesSkTextureCompressionTypeonly includes ETC2 RGB8 and BC1, with no ASTCI see v3 moved to Graphite and the native buffer API now goes through WebGPU. Does that change what's possible here? WebGPU has a texture-compression-astc feature, so I'm wondering if there's a path via the WebGPU interop, or if Graphite itself would need ASTC added to its format tables.
A few questions:
Thanks for all the work on this library!
All reactions