2013-06-10 20:00:52 +00: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 04:03:50 +00:00
|
|
|
|
2016-07-22 06:25:41 +00:00
|
|
|
#include "GLContext.h"
|
2013-06-10 20:00:52 +00:00
|
|
|
#include "mozilla/dom/WebGLRenderingContextBinding.h"
|
2014-11-14 04:03:50 +00:00
|
|
|
#include "WebGLContext.h"
|
2015-07-17 00:27:26 +00:00
|
|
|
#include "WebGLFormats.h"
|
2013-06-10 20:00:52 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
namespace mozilla {
|
2013-06-10 20:00:52 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
WebGLExtensionTextureFloatLinear::WebGLExtensionTextureFloatLinear(WebGLContext* webgl)
|
|
|
|
: WebGLExtensionBase(webgl)
|
2013-06-10 20:00:52 +00:00
|
|
|
{
|
2015-11-25 04:15:29 +00:00
|
|
|
auto& fua = webgl->mFormatUsage;
|
|
|
|
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::RGBA32F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::RGB32F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Luminance32FAlpha32F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Luminance32F)->isFilterable = true;
|
|
|
|
fua->EditUsage(webgl::EffectiveFormat::Alpha32F)->isFilterable = true;
|
2013-06-10 20:00:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
WebGLExtensionTextureFloatLinear::~WebGLExtensionTextureFloatLinear()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-01 14:17:00 +00:00
|
|
|
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionTextureFloatLinear, OES_texture_float_linear)
|
2014-11-14 04:03:50 +00:00
|
|
|
|
|
|
|
} // namespace mozilla
|