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/. */
5 #include "WebGLExtensions.h"
8 #include "mozilla/dom/WebGLRenderingContextBinding.h"
9 #include "WebGLContext.h"
10 #include "WebGLFormats.h"
14 WebGLExtensionTextureHalfFloatLinear::WebGLExtensionTextureHalfFloatLinear(
16 : WebGLExtensionBase(webgl
) {
17 MOZ_ASSERT(!webgl
->IsWebGL2());
18 auto& fua
= webgl
->mFormatUsage
;
20 fua
->EditUsage(webgl::EffectiveFormat::RGBA16F
)->isFilterable
= true;
21 fua
->EditUsage(webgl::EffectiveFormat::RGB16F
)->isFilterable
= true;
22 fua
->EditUsage(webgl::EffectiveFormat::Luminance16FAlpha16F
)->isFilterable
=
24 fua
->EditUsage(webgl::EffectiveFormat::Luminance16F
)->isFilterable
= true;
25 fua
->EditUsage(webgl::EffectiveFormat::Alpha16F
)->isFilterable
= true;
28 } // namespace mozilla