zenilib: zenilib/jni/external/angle/src/compiler/TranslatorHLSL.cpp Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
7 #include "compiler/TranslatorHLSL.h"
8
9 #include "compiler/InitializeParseContext.h"
10 #include "compiler/OutputHLSL.h"
11
12 TranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output)
13 : TCompiler(type, spec), mOutputType(output)
14 {
15 }
16
17 void TranslatorHLSL::translate(TIntermNode *root)
18 {
19 TParseContext& parseContext = *GetGlobalParseContext();
20 sh::OutputHLSL outputHLSL(parseContext, getResources(), mOutputType);
21
22 outputHLSL.output();
23 mActiveUniforms = outputHLSL.getUniforms();
24 }
type
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
TParseContext
Definition: ParseHelper.h:27
TranslatorHLSL::mActiveUniforms
sh::ActiveUniforms mActiveUniforms
Definition: TranslatorHLSL.h:23
GetGlobalParseContext
TParseContext * GetGlobalParseContext()
Definition: InitializeParseContext.cpp:35
sh::OutputHLSL::getUniforms
const ActiveUniforms & getUniforms()
Definition: OutputHLSL.cpp:128
TranslatorHLSL.h
TranslatorHLSL::translate
virtual void translate(TIntermNode *root)
Definition: TranslatorHLSL.cpp:17
sh::OutputHLSL
Definition: OutputHLSL.h:25
sh::OutputHLSL::output
void output()
Definition: OutputHLSL.cpp:112
sort_controllers.output
tuple output
Definition: sort_controllers.py:10
TCompiler
Definition: ShHandle.h:58
TranslatorHLSL::mOutputType
ShShaderOutput mOutputType
Definition: TranslatorHLSL.h:24
ShShaderType
ShShaderType
Definition: ShaderLang.h:48
TIntermNode
Definition: intermediate.h:206
TranslatorHLSL::TranslatorHLSL
TranslatorHLSL(ShShaderType type, ShShaderSpec spec, ShShaderOutput output)
Definition: TranslatorHLSL.cpp:12
TCompiler::getResources
const ShBuiltInResources & getResources() const
Definition: Compiler.cpp:390
ShShaderOutput
ShShaderOutput
Definition: ShaderLang.h:80
ShShaderSpec
ShShaderSpec
Definition: ShaderLang.h:53
InitializeParseContext.h
OutputHLSL.h