gfx/angle/src/compiler/TranslatorHLSL.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/compiler/TranslatorHLSL.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +//
     1.5 +// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
     1.6 +// Use of this source code is governed by a BSD-style license that can be
     1.7 +// found in the LICENSE file.
     1.8 +//
     1.9 +
    1.10 +#ifndef COMPILER_TRANSLATORHLSL_H_
    1.11 +#define COMPILER_TRANSLATORHLSL_H_
    1.12 +
    1.13 +#include "compiler/ShHandle.h"
    1.14 +#include "compiler/CompilerUniform.h"
    1.15 +
    1.16 +class TranslatorHLSL : public TCompiler {
    1.17 +public:
    1.18 +    TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output);
    1.19 +
    1.20 +    virtual TranslatorHLSL *getAsTranslatorHLSL() { return this; }
    1.21 +    const sh::ActiveUniforms &getUniforms() { return mActiveUniforms; }
    1.22 +
    1.23 +protected:
    1.24 +    virtual void translate(TIntermNode* root);
    1.25 +
    1.26 +    sh::ActiveUniforms mActiveUniforms;
    1.27 +    ShShaderOutput mOutputType;
    1.28 +};
    1.29 +
    1.30 +#endif  // COMPILER_TRANSLATORHLSL_H_

mercurial