diff options
Diffstat (limited to 'src/3rdparty/angle/src/compiler/TranslatorHLSL.cpp')
-rw-r--r-- | src/3rdparty/angle/src/compiler/TranslatorHLSL.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/3rdparty/angle/src/compiler/TranslatorHLSL.cpp b/src/3rdparty/angle/src/compiler/TranslatorHLSL.cpp new file mode 100644 index 0000000000..f41decd48c --- /dev/null +++ b/src/3rdparty/angle/src/compiler/TranslatorHLSL.cpp @@ -0,0 +1,23 @@ +// +// Copyright (c) 2002-2010 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. +// + +#include "compiler/TranslatorHLSL.h" + +#include "compiler/InitializeParseContext.h" +#include "compiler/OutputHLSL.h" + +TranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec) + : TCompiler(type, spec) +{ +} + +void TranslatorHLSL::translate(TIntermNode *root) +{ + TParseContext& parseContext = *GetGlobalParseContext(); + sh::OutputHLSL outputHLSL(parseContext); + + outputHLSL.output(); +} |