Package com.google.android.filament
Enum Texture.InternalFormat
- java.lang.Object
-
- java.lang.Enum<Texture.InternalFormat>
-
- com.google.android.filament.Texture.InternalFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Texture.InternalFormat>
- Enclosing class:
- Texture
public static enum Texture.InternalFormat extends java.lang.Enum<Texture.InternalFormat>
Internal texel formatsThese formats are used to specify a texture's internal storage format.
Enumerants syntax format
[components][size][type]components: List of stored components by this formatsize: Size in bit of each componenttype: Type this format is stored asName Component R Linear Red RG Linear Red, Green RGB Linear Red, Green, Blue RGBA Linear Red, Green Blue, Alpha SRGB sRGB encoded Red, Green, Blue DEPTH Depth STENCIL Stencil
Name Type (none) Unsigned Normalized Integer [0, 1] _SNORM Signed Normalized Integer [-1, 1] UI Unsigned Integer [0, 2size] I Signed Integer [-2size-1, 2size-1-1] F Floating-point
Special color formats
There are a few special color formats that don't follow the convention above:Name Format RGB565 5-bits for R and B, 6-bits for G. RGB5_A1 5-bits for R, G and B, 1-bit for A. RGB10_A2 10-bits for R, G and B, 2-bits for A. RGB9_E5 Unsigned floating point. 9-bits mantissa for RGB, 5-bits shared exponent R11F_G11F_B10F Unsigned floating point. 6-bits mantissa, for R and G, 5-bits for B. 5-bits exponent. SRGB8_A8 sRGB 8-bits with linear 8-bits alpha. DEPTH24_STENCIL8 24-bits unsigned normalized integer depth, 8-bits stencil.
Compressed texture formats
Many compressed texture formats are supported as well, which include (but are not limited to) the following list:Name Format EAC_R11 Compresses R11UI EAC_R11_SIGNED Compresses R11I EAC_RG11 Compresses RG11UI EAC_RG11_SIGNED Compresses RG11I ETC2_RGB8 Compresses RGB8 ETC2_SRGB8 compresses SRGB8 ETC2_EAC_RGBA8 Compresses RGBA8 ETC2_EAC_SRGBA8 Compresses SRGB8_A8 ETC2_RGB8_A1 Compresses RGB8 with 1-bit alpha ETC2_SRGB8_A1 Compresses sRGB8 with 1-bit alpha
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Texture.InternalFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Texture.InternalFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
R8
public static final Texture.InternalFormat R8
-
R8_SNORM
public static final Texture.InternalFormat R8_SNORM
-
R8UI
public static final Texture.InternalFormat R8UI
-
R8I
public static final Texture.InternalFormat R8I
-
STENCIL8
public static final Texture.InternalFormat STENCIL8
-
R16F
public static final Texture.InternalFormat R16F
-
R16UI
public static final Texture.InternalFormat R16UI
-
R16I
public static final Texture.InternalFormat R16I
-
RG8
public static final Texture.InternalFormat RG8
-
RG8_SNORM
public static final Texture.InternalFormat RG8_SNORM
-
RG8UI
public static final Texture.InternalFormat RG8UI
-
RG8I
public static final Texture.InternalFormat RG8I
-
RGB565
public static final Texture.InternalFormat RGB565
-
RGB9_E5
public static final Texture.InternalFormat RGB9_E5
-
RGB5_A1
public static final Texture.InternalFormat RGB5_A1
-
RGBA4
public static final Texture.InternalFormat RGBA4
-
DEPTH16
public static final Texture.InternalFormat DEPTH16
-
RGB8
public static final Texture.InternalFormat RGB8
-
SRGB8
public static final Texture.InternalFormat SRGB8
-
RGB8_SNORM
public static final Texture.InternalFormat RGB8_SNORM
-
RGB8UI
public static final Texture.InternalFormat RGB8UI
-
RGB8I
public static final Texture.InternalFormat RGB8I
-
DEPTH24
public static final Texture.InternalFormat DEPTH24
-
R32F
public static final Texture.InternalFormat R32F
-
R32UI
public static final Texture.InternalFormat R32UI
-
R32I
public static final Texture.InternalFormat R32I
-
RG16F
public static final Texture.InternalFormat RG16F
-
RG16UI
public static final Texture.InternalFormat RG16UI
-
RG16I
public static final Texture.InternalFormat RG16I
-
R11F_G11F_B10F
public static final Texture.InternalFormat R11F_G11F_B10F
-
RGBA8
public static final Texture.InternalFormat RGBA8
-
SRGB8_A8
public static final Texture.InternalFormat SRGB8_A8
-
RGBA8_SNORM
public static final Texture.InternalFormat RGBA8_SNORM
-
UNUSED
public static final Texture.InternalFormat UNUSED
-
RGB10_A2
public static final Texture.InternalFormat RGB10_A2
-
RGBA8UI
public static final Texture.InternalFormat RGBA8UI
-
RGBA8I
public static final Texture.InternalFormat RGBA8I
-
DEPTH32F
public static final Texture.InternalFormat DEPTH32F
-
DEPTH24_STENCIL8
public static final Texture.InternalFormat DEPTH24_STENCIL8
-
DEPTH32F_STENCIL8
public static final Texture.InternalFormat DEPTH32F_STENCIL8
-
RGB16F
public static final Texture.InternalFormat RGB16F
-
RGB16UI
public static final Texture.InternalFormat RGB16UI
-
RGB16I
public static final Texture.InternalFormat RGB16I
-
RG32F
public static final Texture.InternalFormat RG32F
-
RG32UI
public static final Texture.InternalFormat RG32UI
-
RG32I
public static final Texture.InternalFormat RG32I
-
RGBA16F
public static final Texture.InternalFormat RGBA16F
-
RGBA16UI
public static final Texture.InternalFormat RGBA16UI
-
RGBA16I
public static final Texture.InternalFormat RGBA16I
-
RGB32F
public static final Texture.InternalFormat RGB32F
-
RGB32UI
public static final Texture.InternalFormat RGB32UI
-
RGB32I
public static final Texture.InternalFormat RGB32I
-
RGBA32F
public static final Texture.InternalFormat RGBA32F
-
RGBA32UI
public static final Texture.InternalFormat RGBA32UI
-
RGBA32I
public static final Texture.InternalFormat RGBA32I
-
EAC_R11
public static final Texture.InternalFormat EAC_R11
-
EAC_R11_SIGNED
public static final Texture.InternalFormat EAC_R11_SIGNED
-
EAC_RG11
public static final Texture.InternalFormat EAC_RG11
-
EAC_RG11_SIGNED
public static final Texture.InternalFormat EAC_RG11_SIGNED
-
ETC2_RGB8
public static final Texture.InternalFormat ETC2_RGB8
-
ETC2_SRGB8
public static final Texture.InternalFormat ETC2_SRGB8
-
ETC2_RGB8_A1
public static final Texture.InternalFormat ETC2_RGB8_A1
-
ETC2_SRGB8_A1
public static final Texture.InternalFormat ETC2_SRGB8_A1
-
ETC2_EAC_RGBA8
public static final Texture.InternalFormat ETC2_EAC_RGBA8
-
ETC2_EAC_SRGBA8
public static final Texture.InternalFormat ETC2_EAC_SRGBA8
-
DXT1_RGB
public static final Texture.InternalFormat DXT1_RGB
-
DXT1_RGBA
public static final Texture.InternalFormat DXT1_RGBA
-
DXT3_RGBA
public static final Texture.InternalFormat DXT3_RGBA
-
DXT5_RGBA
public static final Texture.InternalFormat DXT5_RGBA
-
DXT1_SRGB
public static final Texture.InternalFormat DXT1_SRGB
-
DXT1_SRGBA
public static final Texture.InternalFormat DXT1_SRGBA
-
DXT3_SRGBA
public static final Texture.InternalFormat DXT3_SRGBA
-
DXT5_SRGBA
public static final Texture.InternalFormat DXT5_SRGBA
-
RGBA_ASTC_4x4
public static final Texture.InternalFormat RGBA_ASTC_4x4
-
RGBA_ASTC_5x4
public static final Texture.InternalFormat RGBA_ASTC_5x4
-
RGBA_ASTC_5x5
public static final Texture.InternalFormat RGBA_ASTC_5x5
-
RGBA_ASTC_6x5
public static final Texture.InternalFormat RGBA_ASTC_6x5
-
RGBA_ASTC_6x6
public static final Texture.InternalFormat RGBA_ASTC_6x6
-
RGBA_ASTC_8x5
public static final Texture.InternalFormat RGBA_ASTC_8x5
-
RGBA_ASTC_8x6
public static final Texture.InternalFormat RGBA_ASTC_8x6
-
RGBA_ASTC_8x8
public static final Texture.InternalFormat RGBA_ASTC_8x8
-
RGBA_ASTC_10x5
public static final Texture.InternalFormat RGBA_ASTC_10x5
-
RGBA_ASTC_10x6
public static final Texture.InternalFormat RGBA_ASTC_10x6
-
RGBA_ASTC_10x8
public static final Texture.InternalFormat RGBA_ASTC_10x8
-
RGBA_ASTC_10x10
public static final Texture.InternalFormat RGBA_ASTC_10x10
-
RGBA_ASTC_12x10
public static final Texture.InternalFormat RGBA_ASTC_12x10
-
RGBA_ASTC_12x12
public static final Texture.InternalFormat RGBA_ASTC_12x12
-
SRGB8_ALPHA8_ASTC_4x4
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_4x4
-
SRGB8_ALPHA8_ASTC_5x4
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_5x4
-
SRGB8_ALPHA8_ASTC_5x5
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_5x5
-
SRGB8_ALPHA8_ASTC_6x5
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_6x5
-
SRGB8_ALPHA8_ASTC_6x6
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_6x6
-
SRGB8_ALPHA8_ASTC_8x5
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_8x5
-
SRGB8_ALPHA8_ASTC_8x6
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_8x6
-
SRGB8_ALPHA8_ASTC_8x8
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_8x8
-
SRGB8_ALPHA8_ASTC_10x5
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_10x5
-
SRGB8_ALPHA8_ASTC_10x6
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_10x6
-
SRGB8_ALPHA8_ASTC_10x8
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_10x8
-
SRGB8_ALPHA8_ASTC_10x10
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_10x10
-
SRGB8_ALPHA8_ASTC_12x10
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_12x10
-
SRGB8_ALPHA8_ASTC_12x12
public static final Texture.InternalFormat SRGB8_ALPHA8_ASTC_12x12
-
-
Method Detail
-
values
public static Texture.InternalFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Texture.InternalFormat c : Texture.InternalFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Texture.InternalFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-