Line data Source code
1 : /* This Source Code Form is subject to the terms of the Mozilla Public
2 : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #include "WebGLExtensions.h"
6 :
7 : #include "GLContext.h"
8 : #include "mozilla/dom/WebGLRenderingContextBinding.h"
9 : #include "WebGLContext.h"
10 : #include "WebGLFormats.h"
11 :
12 : namespace mozilla {
13 :
14 0 : WebGLExtensionTextureFloatLinear::WebGLExtensionTextureFloatLinear(WebGLContext* webgl)
15 0 : : WebGLExtensionBase(webgl)
16 : {
17 0 : auto& fua = webgl->mFormatUsage;
18 :
19 0 : fua->EditUsage(webgl::EffectiveFormat::RGBA32F)->isFilterable = true;
20 0 : fua->EditUsage(webgl::EffectiveFormat::RGB32F)->isFilterable = true;
21 0 : fua->EditUsage(webgl::EffectiveFormat::Luminance32FAlpha32F)->isFilterable = true;
22 0 : fua->EditUsage(webgl::EffectiveFormat::Luminance32F)->isFilterable = true;
23 0 : fua->EditUsage(webgl::EffectiveFormat::Alpha32F)->isFilterable = true;
24 0 : }
25 :
26 0 : WebGLExtensionTextureFloatLinear::~WebGLExtensionTextureFloatLinear()
27 : {
28 0 : }
29 :
30 0 : IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionTextureFloatLinear, OES_texture_float_linear)
31 :
32 : } // namespace mozilla
|