BufferSpec.ColorFormat

  • BufferSpec.ColorFormat defines available color formats for VR content and needs to match the gvr_types.h enum.

  • It includes constants for the total number of formats (NUM_FORMATS) and specific color formats like RGBA_8888 and RGB_565.

  • This abstract class provides a way to specify color formats for buffers used in VR rendering.

  • Developers can utilize this class to control the color representation of VR content.

public static abstract class BufferSpec.ColorFormat

Available color formats. Needs to be kept in sync with the enum in gvr_types.h.

Constants

int NUM_FORMATS
int RGBA_8888
int RGB_565

Public Constructors

Inherited Methods

Constants

public static final int NUM_FORMATS

Constant Value: 2

public static final int RGBA_8888

Constant Value: 0

public static final int RGB_565

Constant Value: 1

Public Constructors

public BufferSpec.ColorFormat ()