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 WebGLExtensionTextureHalfFloatLinear(WebGLContext * webgl)14WebGLExtensionTextureHalfFloatLinear::WebGLExtensionTextureHalfFloatLinear( 15 WebGLContext* webgl) 16 : WebGLExtensionBase(webgl) { 17 MOZ_ASSERT(!webgl->IsWebGL2()); 18 auto& fua = webgl->mFormatUsage; 19 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; 26 } 27 28 } // namespace mozilla 29