gfx/angle/src/compiler/TranslatorHLSL.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/compiler/TranslatorHLSL.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     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 +#include "compiler/TranslatorHLSL.h"
    1.11 +
    1.12 +#include "compiler/InitializeParseContext.h"
    1.13 +#include "compiler/OutputHLSL.h"
    1.14 +
    1.15 +TranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output)
    1.16 +    : TCompiler(type, spec), mOutputType(output)
    1.17 +{
    1.18 +}
    1.19 +
    1.20 +void TranslatorHLSL::translate(TIntermNode *root)
    1.21 +{
    1.22 +    TParseContext& parseContext = *GetGlobalParseContext();
    1.23 +    sh::OutputHLSL outputHLSL(parseContext, getResources(), mOutputType);
    1.24 +
    1.25 +    outputHLSL.output();
    1.26 +    mActiveUniforms = outputHLSL.getUniforms();
    1.27 +}

mercurial