Skip to content

Conversation

@lucycycy
Copy link
Contributor

Add ASTC support for PVRv3 textures and improve PVR format detection and safety.

  • Added mapping for PVRv3 ASTC_* formats in v3_pixel_formathash.
  • Implemented correct ASTC block size calculation in PVRv3 loader (bx/by → block count → dataSize).
  • Added software fallback to RGBA8 when ASTC hardware decoding is not supported.
  • Honored the PremultipliedAlpha flag in PVRv3 header.
  • Made isPvr() detection more robust by comparing header sizes instead of OR check.
  • Clarified BGRA8888 fallthrough and fixed RG8 assert message.

@halx99 halx99 added this to the 2.9.1 milestone Oct 23, 2025
@halx99 halx99 added the enhancement New feature or request label Oct 23, 2025
@halx99 halx99 merged commit b512a7d into axmolengine:release/2.x Oct 24, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants