michael@0: // michael@0: // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #include "compiler/TranslatorHLSL.h" michael@0: michael@0: #include "compiler/InitializeParseContext.h" michael@0: #include "compiler/OutputHLSL.h" michael@0: michael@0: TranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output) michael@0: : TCompiler(type, spec), mOutputType(output) michael@0: { michael@0: } michael@0: michael@0: void TranslatorHLSL::translate(TIntermNode *root) michael@0: { michael@0: TParseContext& parseContext = *GetGlobalParseContext(); michael@0: sh::OutputHLSL outputHLSL(parseContext, getResources(), mOutputType); michael@0: michael@0: outputHLSL.output(); michael@0: mActiveUniforms = outputHLSL.getUniforms(); michael@0: }