Bug 1700051: part 26) Correct typo in comment of `mozInlineSpellWordUtil::BuildSoftTe...
[gecko.git] / dom / canvas / WebGLExtensionTextureHalfFloatLinear.cpp
blob0d454086272d3751ee421dece3e6d9231e002c86
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"
7 #include "GLContext.h"
8 #include "mozilla/dom/WebGLRenderingContextBinding.h"
9 #include "WebGLContext.h"
10 #include "WebGLFormats.h"
12 namespace mozilla {
14 WebGLExtensionTextureHalfFloatLinear::WebGLExtensionTextureHalfFloatLinear(
15 WebGLContext* webgl)
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 =
23 true;
24 fua->EditUsage(webgl::EffectiveFormat::Luminance16F)->isFilterable = true;
25 fua->EditUsage(webgl::EffectiveFormat::Alpha16F)->isFilterable = true;
28 } // namespace mozilla