Hash :
83f349ea
Author :
Date :
2015-09-23T09:50:36
Remove CompilerImpl and merge code to gl::Compiler. This class uses no Impl-specific code. We can also do a similar code relocation for the gl::Shader class, but in several steps because it is a bit more complex. BUG=angleproject:1159 Change-Id: I4d3ce3253df0a2bdee1d98e46cfd4b999d86be6e Reviewed-on: https://chromium-review.googlesource.com/299874 Reviewed-by: Geoff Lang <geofflang@chromium.org> Tested-by: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
//
// Copyright 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// CompilerGL:
// Implementation of the D3D compiler methods.
//
#include "libANGLE/renderer/d3d/CompilerD3D.h"
namespace rx
{
namespace
{
ShShaderOutput GetShaderOutputType(RendererClass rendererClass)
{
if (rendererClass == RENDERER_D3D11)
{
return SH_HLSL11_OUTPUT;
}
else
{
ASSERT(rendererClass == RENDERER_D3D9);
return SH_HLSL9_OUTPUT;
}
}
} // anonymous namespace
CompilerD3D::CompilerD3D(RendererClass rendererClass)
: mTranslatorOutputType(GetShaderOutputType(rendererClass))
{
}
} // namespace rx