b=738872, implement WebGL OES_texture_half_float; part 1 - GLContext; r=jgilbert

This commit is contained in:
Vladimir Vukicevic 2014-01-23 12:47:56 -05:00
parent f5982a8788
commit b6b7a87f86
3 changed files with 22 additions and 0 deletions

View File

@ -83,6 +83,8 @@ static const char *sExtensionNames[] = {
"GL_OES_texture_float",
"GL_OES_texture_float_linear",
"GL_ARB_texture_float",
"GL_OES_texture_half_float",
"GL_NV_half_float",
"GL_EXT_unpack_subimage",
"GL_OES_standard_derivatives",
"GL_EXT_texture_filter_anisotropic",

View File

@ -106,6 +106,7 @@ MOZ_BEGIN_ENUM_CLASS(GLFeature)
standard_derivatives,
texture_float,
texture_float_linear,
texture_half_float,
texture_non_power_of_two,
transform_feedback,
vertex_array_object,
@ -358,6 +359,8 @@ public:
OES_texture_float,
OES_texture_float_linear,
ARB_texture_float,
OES_texture_half_float,
NV_half_float,
EXT_unpack_subimage,
OES_standard_derivatives,
EXT_texture_filter_anisotropic,

View File

@ -291,6 +291,23 @@ static const FeatureInfo sFeatureInfoArr[] = {
GLContext::Extensions_End
}
},
{
"texture_half_float",
310, // OpenGL version
300, // OpenGL ES version
{
GLContext::ARB_texture_float,
GLContext::NV_half_float,
GLContext::Extensions_End
}
/**
* We are not including OES_texture_half_float in this feature, because:
* GL_HALF_FLOAT = 0x140B
* GL_HALF_FLOAT_ARB = 0x140B == GL_HALF_FLOAT
* GL_HALF_FLOAT_NV = 0x140B == GL_HALF_FLOAT
* GL_HALF_FLOAT_OES = 0x8D61 != GL_HALF_FLOAT
*/
},
{
"texture_non_power_of_two",
200, // OpenGL version