2013-06-11 00:00:52 +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"
|
2013-06-11 00:00:52 +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"
|
2013-06-11 00:00:52 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
namespace mozilla {
|
2013-06-11 00:00:52 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
WebGLExtensionTextureFloatLinear::WebGLExtensionTextureFloatLinear(WebGLContext* webgl)
|
|
|
|
: WebGLExtensionBase(webgl)
|
2013-06-11 00:00:52 +04:00
|
|
|
{
|
2015-11-25 07:15:29 +03: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-11 00:00:52 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
WebGLExtensionTextureFloatLinear::~WebGLExtensionTextureFloatLinear()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-01 17:17:00 +03:00
|
|
|
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionTextureFloatLinear, OES_texture_float_linear)
|
2014-11-14 07:03:50 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|