Outdated Docs > Texture Formats Supported by Cocos2d-x

Texture Formats Supported by Cocos2d-x

Format Alpha Pixel Format Hardware Decoded MipMap Alpha Premultiplied Platform
PNG A RGB888/RGBA8888/I8/IA88 N/A N/A Yes All
JPG N/A RGB888/I8 N/A N/A N/A All
WebP A RGBA8888 N/A N/A No All
TIFF A RGBA8888 N/A N/A Yes All
TGA A RGB5A1/RGB888/RGBA8888/I8 N/A N/A No All
PVRv2 A PVRTC2/PVRTC2A/PVRTC4/PVRTC4A PowerVR GPU A No iOS
PVRv3 A PVRTC2/PVRTC2A/PVRTC4/PVRTC4A PowerVR GPU A Flag Dependent iOS
ETC1 N/A RGB888 GLES 2.0 GPU N/A N/A All(SD)
ATITC A ATC_RGB/ATC_EXPLICIT_ALPHA/ATC_INTERPOLATED_ALPHA Adreno GPU A No All(SD)
S3TC A S3TC_DXT1/S3TC_DXT3/S3TC_DXT5 Y A No All(SD)

Note:
A: Available
N/A: Not Available
Yes: Available and Enabled
No: Available and Disabled
SD: Soft Decoder on unsupported platforms

  • The hardware decoded devices may supported more than what listed in the table. Please refer to Configure::support* to check if it is available on the running device.
  • PVR supports more pixel formats in practice, but we are just listing the most common types.
  • For software decoder, the files are always loaded into Texture2D with RGBA8888 decoded.

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.