zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TranslatorHLSL.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
8 
10 #include "compiler/OutputHLSL.h"
11 
13  : TCompiler(type, spec), mOutputType(output)
14 {
15 }
16 
18 {
19  TParseContext& parseContext = *GetGlobalParseContext();
20  sh::OutputHLSL outputHLSL(parseContext, getResources(), mOutputType);
21 
22  outputHLSL.output();
23  mActiveUniforms = outputHLSL.getUniforms();
24 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
sh::ActiveUniforms mActiveUniforms
TParseContext * GetGlobalParseContext()
const ActiveUniforms & getUniforms()
Definition: OutputHLSL.cpp:128
virtual void translate(TIntermNode *root)
ShShaderOutput mOutputType
ShShaderType
Definition: ShaderLang.h:48
TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output)
const ShBuiltInResources & getResources() const
Definition: Compiler.cpp:390
ShShaderOutput
Definition: ShaderLang.h:80
ShShaderSpec
Definition: ShaderLang.h:53