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: #ifndef COMPILER_TRANSLATORHLSL_H_ michael@0: #define COMPILER_TRANSLATORHLSL_H_ michael@0: michael@0: #include "compiler/ShHandle.h" michael@0: #include "compiler/CompilerUniform.h" michael@0: michael@0: class TranslatorHLSL : public TCompiler { michael@0: public: michael@0: TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output); michael@0: michael@0: virtual TranslatorHLSL *getAsTranslatorHLSL() { return this; } michael@0: const sh::ActiveUniforms &getUniforms() { return mActiveUniforms; } michael@0: michael@0: protected: michael@0: virtual void translate(TIntermNode* root); michael@0: michael@0: sh::ActiveUniforms mActiveUniforms; michael@0: ShShaderOutput mOutputType; michael@0: }; michael@0: michael@0: #endif // COMPILER_TRANSLATORHLSL_H_