mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
b=738872, implement WebGL OES_texture_half_float; part 1 - GLContext; r=jgilbert
This commit is contained in:
parent
2839e2ea5e
commit
9d5d5dab4a
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user