Note that the device running your game might not support all of these features, and the constants will only be exposed if it does.

On the Haxe side, use the isAvailable() method on the enum to check if a format is supported.

Static variables

@:enum@:native("TEXTURE_FORMAT_LUMINANCE")staticread onlyLuminance:ResourceTextureFormat

  • Luminance type texture format.

@:enum@:native("TEXTURE_FORMAT_R16F")staticread onlyR16f:ResourceTextureFormat

  • R16F type texture format

@:enum@:native("TEXTURE_FORMAT_R32F")staticread onlyR32f:ResourceTextureFormat

  • R32F type texture format

@:enum@:native("TEXTURE_FORMAT_R_BC4")staticread onlyRBC4:ResourceTextureFormat

  • R_BC4 type texture format

@:enum@:native("TEXTURE_FORMAT_RG16F")staticread onlyRg16f:ResourceTextureFormat

  • RG16F type texture format

@:enum@:native("TEXTURE_FORMAT_RG32F")staticread onlyRg32f:ResourceTextureFormat

  • RG32F type texture format

@:enum@:native("TEXTURE_FORMAT_RG_BC5")staticread onlyRgBC5:ResourceTextureFormat

  • RG_BC5 type texture format

@:enum@:native("TEXTURE_FORMAT_RGB")staticread onlyRgb:ResourceTextureFormat

  • RGB type texture format.

@:enum@:native("TEXTURE_FORMAT_RGB16F")staticread onlyRgb16f:ResourceTextureFormat

  • RGB16F type texture format

@:enum@:native("TEXTURE_FORMAT_RGB32F")staticread onlyRgb32f:ResourceTextureFormat

  • RGB32F type texture format

@:enum@:native("TEXTURE_FORMAT_RGB_BC1")staticread onlyRgbBc1:ResourceTextureFormat

  • RGB_BC1 type texture format

@:enum@:native("TEXTURE_FORMAT_RGB_ETC1")staticread onlyRgbEtc1:ResourceTextureFormat

  • RGB_ETC1 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_ETC2")staticread onlyRgbEtc2:ResourceTextureFormat

  • RGBA_ETC2 type texture format

@:enum@:native("TEXTURE_FORMAT_RGB_PVRTC_2BPPV1")staticread onlyRgbPvrtc2BPPv1:ResourceTextureFormat

  • RGB_PVRTC_2BPPV1 type texture format

@:enum@:native("TEXTURE_FORMAT_RGB_PVRTC_4BPPV1")staticread onlyRgbPvrtc4BPPv1:ResourceTextureFormat

  • RGB_PVRTC_4BPPV1 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA")staticread onlyRgba:ResourceTextureFormat

  • RGBA type texture format.

@:enum@:native("TEXTURE_FORMAT_RGBA16F")staticread onlyRgba16f:ResourceTextureFormat

  • RGBA16F type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA32F")staticread onlyRgba32f:ResourceTextureFormat

  • RGBA32F type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_ASTC_4x4")staticread onlyRgbaAstc4x4:ResourceTextureFormat

  • RGBA_ASTC_4x4 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_BC7")staticread onlyRgbaBC7:ResourceTextureFormat

  • RGBA_BC7 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_BC3")staticread onlyRgbaBc3:ResourceTextureFormat

  • RGBA_BC3 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_PVRTC_2BPPV1")staticread onlyRgbaPvrtc2BPPv1:ResourceTextureFormat

  • RGBA_PVRTC_2BPPV1 type texture format

@:enum@:native("TEXTURE_FORMAT_RGBA_PVRTC_4BPPV1")staticread onlyRgbaPvrtc4BPPv1:ResourceTextureFormat

  • RGBA_PVRTC_4BPPV1 type texture format

Static methods

staticinlineisAvailable(this:Null<Int>):Bool

  • Checks if the device running the game supports this format.

Returns:

true if the format is available on the device, otherwise false