2014-02-13 18:53:53 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "WebGLExtensions.h"
|
2014-11-14 07:03:50 +03:00
|
|
|
|
2016-07-22 09:25:41 +03:00
|
|
|
#include "GLContext.h"
|
2014-02-13 18:53:53 +04:00
|
|
|
#include "mozilla/dom/WebGLRenderingContextBinding.h"
|
2014-11-14 07:03:50 +03:00
|
|
|
#include "WebGLContext.h"
|
2015-07-17 03:27:26 +03:00
|
|
|
#include "WebGLFormats.h"
|
2014-02-13 18:53:53 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
namespace mozilla {
|
2014-02-13 18:53:53 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
WebGLExtensionTextureHalfFloatLinear::WebGLExtensionTextureHalfFloatLinear(WebGLContext* webgl)
|
|
|
|
: WebGLExtensionBase(webgl)
|
2014-02-13 18:53:53 +04:00
|
|
|
{
|
2017-08-23 02:26:33 +03:00
|
|
|
MOZ_ASSERT(!webgl->IsWebGL2());
|
2015-11-25 07:15:29 +03:00
|
|
|
auto& fua = webgl->mFormatUsage;
|
|
|
|
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::RGBA16F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::RGB16F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Luminance16FAlpha16F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Luminance16F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Alpha16F)->isFilterable = true;
|
2014-02-13 18:53:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
WebGLExtensionTextureHalfFloatLinear::~WebGLExtensionTextureHalfFloatLinear()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-01 17:17:00 +03:00
|
|
|
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionTextureHalfFloatLinear, OES_texture_half_float_linear)
|
2014-11-14 07:03:50 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|