1a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block//
2a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
3a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block// Use of this source code is governed by a BSD-style license that can be
4a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block// found in the LICENSE file.
5a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block//
6a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block
7a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block#include "compiler/TranslatorHLSL.h"
8a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block
9a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block#include "compiler/OutputHLSL.h"
10a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block
11ab9e7a118cf1ea2e3a93dce683b2ded3e7291ddbBen MurdochTranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec)
12ab9e7a118cf1ea2e3a93dce683b2ded3e7291ddbBen Murdoch    : TCompiler(type, spec)
13a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block{
14a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block}
15a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block
16ab9e7a118cf1ea2e3a93dce683b2ded3e7291ddbBen Murdochvoid TranslatorHLSL::translate(TIntermNode *root)
17a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block{
18a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block    TParseContext& parseContext = *GetGlobalParseContext();
19a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block    sh::OutputHLSL outputHLSL(parseContext);
20a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block
21a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block    outputHLSL.output();
22a9bfd6c4a32dfd9cc032cb67c6ccb8d09c16f579Steve Block}
23