daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 1 | // |
Nicolas Capens | b1f45b7 | 2013-12-19 17:37:19 -0500 | [diff] [blame] | 2 | // Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved. |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 7 | #ifndef COMPILER_TRANSLATOR_OUTPUTHLSL_H_ |
| 8 | #define COMPILER_TRANSLATOR_OUTPUTHLSL_H_ |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 9 | |
alokp@chromium.org | 4e89d23 | 2010-05-14 19:37:21 +0000 | [diff] [blame] | 10 | #include <list> |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 11 | #include <map> |
Jamie Madill | 32aab01 | 2015-01-27 14:12:26 -0500 | [diff] [blame] | 12 | #include <stack> |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 13 | |
Jamie Madill | f51639a | 2014-06-25 16:04:57 -0400 | [diff] [blame] | 14 | #include "angle_gl.h" |
Corentin Wallez | f4eab3b | 2015-03-18 12:55:45 -0700 | [diff] [blame] | 15 | #include "compiler/translator/ASTMetadataHLSL.h" |
Jamie Madill | b1a85f4 | 2014-08-19 15:23:24 -0400 | [diff] [blame] | 16 | #include "compiler/translator/IntermNode.h" |
Jamie Madill | 6b9cb25 | 2013-10-17 10:45:47 -0400 | [diff] [blame] | 17 | #include "compiler/translator/ParseContext.h" |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 18 | |
Olli Etuaho | 8efc5ad | 2015-03-03 17:21:10 +0200 | [diff] [blame] | 19 | class BuiltInFunctionEmulator; |
Olli Etuaho | e17e319 | 2015-01-02 12:47:59 +0200 | [diff] [blame] | 20 | |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 21 | namespace sh |
| 22 | { |
Corentin Wallez | c2ed938 | 2016-04-15 13:29:25 +0000 | [diff] [blame] | 23 | class StructureHLSL; |
Olli Etuaho | 5858f7e | 2016-04-08 13:08:46 +0300 | [diff] [blame] | 24 | class TextureFunctionHLSL; |
| 25 | class UnfoldShortCircuit; |
Jamie Madill | f91ce81 | 2014-06-13 10:04:34 -0400 | [diff] [blame] | 26 | class UniformHLSL; |
| 27 | |
| 28 | typedef std::map<TString, TIntermSymbol*> ReferencedSymbols; |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 29 | |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 30 | class OutputHLSL : public TIntermTraverser |
| 31 | { |
| 32 | public: |
Qiankun Miao | 7ebb97f | 2016-09-08 18:01:50 +0800 | [diff] [blame^] | 33 | OutputHLSL(sh::GLenum shaderType, |
| 34 | int shaderVersion, |
| 35 | const TExtensionBehavior &extensionBehavior, |
| 36 | const char *sourcePath, |
| 37 | ShShaderOutput outputType, |
| 38 | int numRenderTargets, |
| 39 | const std::vector<Uniform> &uniforms, |
| 40 | ShCompileOptions compileOptions); |
Olli Etuaho | a3a5cc6 | 2015-02-13 13:12:22 +0200 | [diff] [blame] | 41 | |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 42 | ~OutputHLSL(); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 43 | |
Olli Etuaho | a3a5cc6 | 2015-02-13 13:12:22 +0200 | [diff] [blame] | 44 | void output(TIntermNode *treeRoot, TInfoSinkBase &objSink); |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 45 | |
Jamie Madill | 4e1fd41 | 2014-07-10 17:50:10 -0400 | [diff] [blame] | 46 | const std::map<std::string, unsigned int> &getInterfaceBlockRegisterMap() const; |
Jamie Madill | 9fe25e9 | 2014-07-18 10:33:08 -0400 | [diff] [blame] | 47 | const std::map<std::string, unsigned int> &getUniformRegisterMap() const; |
Jamie Madill | 4e1fd41 | 2014-07-10 17:50:10 -0400 | [diff] [blame] | 48 | |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 49 | static TString initializer(const TType &type); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 50 | |
Jamie Madill | 32aab01 | 2015-01-27 14:12:26 -0500 | [diff] [blame] | 51 | TInfoSinkBase &getInfoSink() { ASSERT(!mInfoSinkStack.empty()); return *mInfoSinkStack.top(); } |
| 52 | |
Olli Etuaho | 18b9deb | 2015-11-05 12:14:50 +0200 | [diff] [blame] | 53 | static bool canWriteAsHLSLLiteral(TIntermTyped *expression); |
| 54 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 55 | protected: |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 56 | void header(TInfoSinkBase &out, const BuiltInFunctionEmulator *builtInFunctionEmulator); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 57 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 58 | // Visit AST nodes and output their code to the body stream |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 59 | void visitSymbol(TIntermSymbol*); |
Jamie Madill | 4cfb1e8 | 2014-07-07 12:49:23 -0400 | [diff] [blame] | 60 | void visitRaw(TIntermRaw*); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 61 | void visitConstantUnion(TIntermConstantUnion*); |
| 62 | bool visitBinary(Visit visit, TIntermBinary*); |
| 63 | bool visitUnary(Visit visit, TIntermUnary*); |
Olli Etuaho | d0bad2c | 2016-09-09 18:01:16 +0300 | [diff] [blame] | 64 | bool visitTernary(Visit visit, TIntermTernary *); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 65 | bool visitSelection(Visit visit, TIntermSelection*); |
Olli Etuaho | 3c1dfb5 | 2015-02-20 11:34:03 +0200 | [diff] [blame] | 66 | bool visitSwitch(Visit visit, TIntermSwitch *); |
| 67 | bool visitCase(Visit visit, TIntermCase *); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 68 | bool visitAggregate(Visit visit, TIntermAggregate*); |
| 69 | bool visitLoop(Visit visit, TIntermLoop*); |
| 70 | bool visitBranch(Visit visit, TIntermBranch*); |
| 71 | |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 72 | bool isSingleStatement(TIntermNode *node); |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 73 | bool handleExcessiveLoop(TInfoSinkBase &out, TIntermLoop *node); |
Daniel Bratell | 2919008 | 2015-02-20 16:42:54 +0100 | [diff] [blame] | 74 | |
| 75 | // Emit one of three strings depending on traverse phase. Called with literal strings so using const char* instead of TString. |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 76 | void outputTriplet(TInfoSinkBase &out, |
| 77 | Visit visit, |
| 78 | const char *preString, |
| 79 | const char *inString, |
| 80 | const char *postString); |
| 81 | void outputLineDirective(TInfoSinkBase &out, int line); |
daniel@transgaming.com | 005c739 | 2010-04-15 20:45:27 +0000 | [diff] [blame] | 82 | TString argumentString(const TIntermSymbol *symbol); |
daniel@transgaming.com | 0b6b834 | 2010-04-26 15:33:45 +0000 | [diff] [blame] | 83 | int vectorSize(const TType &type) const; |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 84 | |
Daniel Bratell | 2919008 | 2015-02-20 16:42:54 +0100 | [diff] [blame] | 85 | // Emit constructor. Called with literal names so using const char* instead of TString. |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 86 | void outputConstructor(TInfoSinkBase &out, |
| 87 | Visit visit, |
| 88 | const TType &type, |
| 89 | const char *name, |
| 90 | const TIntermSequence *parameters); |
| 91 | const TConstantUnion *writeConstantUnion(TInfoSinkBase &out, |
| 92 | const TType &type, |
| 93 | const TConstantUnion *constUnion); |
daniel@transgaming.com | 6369186 | 2010-04-29 03:32:42 +0000 | [diff] [blame] | 94 | |
Olli Etuaho | 7fb4955 | 2015-03-18 17:27:44 +0200 | [diff] [blame] | 95 | void outputEqual(Visit visit, const TType &type, TOperator op, TInfoSinkBase &out); |
| 96 | |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 97 | void writeEmulatedFunctionTriplet(TInfoSinkBase &out, Visit visit, const char *preStr); |
Jamie Madill | 3799714 | 2015-01-28 10:06:34 -0500 | [diff] [blame] | 98 | void makeFlaggedStructMaps(const std::vector<TIntermTyped *> &flaggedStructs); |
| 99 | |
| 100 | // Returns true if it found a 'same symbol' initializer (initializer that references the variable it's initting) |
| 101 | bool writeSameSymbolInitializer(TInfoSinkBase &out, TIntermSymbol *symbolNode, TIntermTyped *expression); |
Olli Etuaho | 18b9deb | 2015-11-05 12:14:50 +0200 | [diff] [blame] | 102 | // Returns true if variable initializer could be written using literal {} notation. |
| 103 | bool writeConstantInitialization(TInfoSinkBase &out, |
| 104 | TIntermSymbol *symbolNode, |
| 105 | TIntermTyped *expression); |
| 106 | |
Jamie Madill | 3799714 | 2015-01-28 10:06:34 -0500 | [diff] [blame] | 107 | void writeDeferredGlobalInitializers(TInfoSinkBase &out); |
Jamie Madill | 8c46ab1 | 2015-12-07 16:39:19 -0500 | [diff] [blame] | 108 | void writeSelection(TInfoSinkBase &out, TIntermSelection *node); |
Olli Etuaho | 5c9cd3d | 2014-12-18 13:04:25 +0200 | [diff] [blame] | 109 | |
Jamie Madill | 55e79e0 | 2015-02-09 15:35:00 -0500 | [diff] [blame] | 110 | // Returns the function name |
| 111 | TString addStructEqualityFunction(const TStructure &structure); |
Olli Etuaho | 7fb4955 | 2015-03-18 17:27:44 +0200 | [diff] [blame] | 112 | TString addArrayEqualityFunction(const TType &type); |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 113 | TString addArrayAssignmentFunction(const TType &type); |
Olli Etuaho | 9638c35 | 2015-04-01 14:34:52 +0300 | [diff] [blame] | 114 | TString addArrayConstructIntoFunction(const TType &type); |
Jamie Madill | 55e79e0 | 2015-02-09 15:35:00 -0500 | [diff] [blame] | 115 | |
Jamie Madill | 2e295e2 | 2015-04-29 10:41:33 -0400 | [diff] [blame] | 116 | // Ensures if the type is a struct, the struct is defined |
| 117 | void ensureStructDefined(const TType &type); |
| 118 | |
Olli Etuaho | a3a5cc6 | 2015-02-13 13:12:22 +0200 | [diff] [blame] | 119 | sh::GLenum mShaderType; |
| 120 | int mShaderVersion; |
| 121 | const TExtensionBehavior &mExtensionBehavior; |
| 122 | const char *mSourcePath; |
shannon.woods@transgaming.com | b73964e | 2013-01-25 21:49:14 +0000 | [diff] [blame] | 123 | const ShShaderOutput mOutputType; |
Qiankun Miao | 7ebb97f | 2016-09-08 18:01:50 +0800 | [diff] [blame^] | 124 | ShCompileOptions mCompileOptions; |
Olli Etuaho | a3a5cc6 | 2015-02-13 13:12:22 +0200 | [diff] [blame] | 125 | |
daniel@transgaming.com | f9ef107 | 2010-04-22 13:35:16 +0000 | [diff] [blame] | 126 | bool mInsideFunction; |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 127 | |
| 128 | // Output streams |
| 129 | TInfoSinkBase mHeader; |
| 130 | TInfoSinkBase mBody; |
| 131 | TInfoSinkBase mFooter; |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 132 | |
Jamie Madill | 32aab01 | 2015-01-27 14:12:26 -0500 | [diff] [blame] | 133 | // A stack is useful when we want to traverse in the header, or in helper functions, but not always |
| 134 | // write to the body. Instead use an InfoSink stack to keep our current state intact. |
Olli Etuaho | 7fb4955 | 2015-03-18 17:27:44 +0200 | [diff] [blame] | 135 | // TODO (jmadill): Just passing an InfoSink in function parameters would be simpler. |
Jamie Madill | 32aab01 | 2015-01-27 14:12:26 -0500 | [diff] [blame] | 136 | std::stack<TInfoSinkBase *> mInfoSinkStack; |
| 137 | |
daniel@transgaming.com | 8803b85 | 2012-12-20 21:11:47 +0000 | [diff] [blame] | 138 | ReferencedSymbols mReferencedUniforms; |
shannonwoods@chromium.org | 4a643ae | 2013-05-30 00:12:27 +0000 | [diff] [blame] | 139 | ReferencedSymbols mReferencedInterfaceBlocks; |
daniel@transgaming.com | 8803b85 | 2012-12-20 21:11:47 +0000 | [diff] [blame] | 140 | ReferencedSymbols mReferencedAttributes; |
| 141 | ReferencedSymbols mReferencedVaryings; |
Jamie Madill | 46131a3 | 2013-06-20 11:55:50 -0400 | [diff] [blame] | 142 | ReferencedSymbols mReferencedOutputVariables; |
daniel@transgaming.com | 86f7c9d | 2010-04-20 18:52:06 +0000 | [diff] [blame] | 143 | |
Jamie Madill | 8daaba1 | 2014-06-13 10:04:33 -0400 | [diff] [blame] | 144 | StructureHLSL *mStructureHLSL; |
Jamie Madill | f91ce81 | 2014-06-13 10:04:34 -0400 | [diff] [blame] | 145 | UniformHLSL *mUniformHLSL; |
Olli Etuaho | 5858f7e | 2016-04-08 13:08:46 +0300 | [diff] [blame] | 146 | TextureFunctionHLSL *mTextureFunctionHLSL; |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 147 | |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 148 | // Parameters determining what goes in the header output |
shannon.woods%transgaming.com@gtempaccount.com | aa8b5cf | 2013-04-13 03:31:55 +0000 | [diff] [blame] | 149 | bool mUsesFragColor; |
| 150 | bool mUsesFragData; |
daniel@transgaming.com | d7c9810 | 2010-05-14 17:30:48 +0000 | [diff] [blame] | 151 | bool mUsesDepthRange; |
daniel@transgaming.com | 4af7acc | 2010-05-14 17:30:53 +0000 | [diff] [blame] | 152 | bool mUsesFragCoord; |
| 153 | bool mUsesPointCoord; |
| 154 | bool mUsesFrontFacing; |
| 155 | bool mUsesPointSize; |
Gregoire Payen de La Garanderie | b3dced2 | 2015-01-12 14:54:55 +0000 | [diff] [blame] | 156 | bool mUsesInstanceID; |
Corentin Wallez | b076add | 2016-01-11 16:45:46 -0500 | [diff] [blame] | 157 | bool mUsesVertexID; |
Jamie Madill | 2aeb26a | 2013-07-08 14:02:55 -0400 | [diff] [blame] | 158 | bool mUsesFragDepth; |
daniel@transgaming.com | d7c9810 | 2010-05-14 17:30:48 +0000 | [diff] [blame] | 159 | bool mUsesXor; |
Jamie Madill | 3c9eeb9 | 2013-11-04 11:09:26 -0500 | [diff] [blame] | 160 | bool mUsesDiscardRewriting; |
Nicolas Capens | 655fe36 | 2014-04-11 13:12:34 -0400 | [diff] [blame] | 161 | bool mUsesNestedBreak; |
Arun Patole | 44efa0b | 2015-03-04 17:11:05 +0530 | [diff] [blame] | 162 | bool mRequiresIEEEStrictCompiling; |
| 163 | |
daniel@transgaming.com | 005c739 | 2010-04-15 20:45:27 +0000 | [diff] [blame] | 164 | |
shannon.woods%transgaming.com@gtempaccount.com | aa8b5cf | 2013-04-13 03:31:55 +0000 | [diff] [blame] | 165 | int mNumRenderTargets; |
| 166 | |
daniel@transgaming.com | b6ef8f1 | 2010-11-15 16:41:14 +0000 | [diff] [blame] | 167 | int mUniqueIndex; // For creating unique names |
daniel@transgaming.com | 89431aa | 2012-05-31 01:20:29 +0000 | [diff] [blame] | 168 | |
Corentin Wallez | 1239ee9 | 2015-03-19 14:38:02 -0700 | [diff] [blame] | 169 | CallDAG mCallDag; |
| 170 | MetadataList mASTMetadataList; |
| 171 | ASTMetadataHLSL *mCurrentFunctionMetadata; |
daniel@transgaming.com | 89431aa | 2012-05-31 01:20:29 +0000 | [diff] [blame] | 172 | bool mOutputLod0Function; |
daniel@transgaming.com | e11100c | 2012-05-31 01:20:32 +0000 | [diff] [blame] | 173 | bool mInsideDiscontinuousLoop; |
Nicolas Capens | 655fe36 | 2014-04-11 13:12:34 -0400 | [diff] [blame] | 174 | int mNestedLoopDepth; |
daniel@transgaming.com | e9b3f60 | 2012-07-11 20:37:31 +0000 | [diff] [blame] | 175 | |
| 176 | TIntermSymbol *mExcessiveLoopIndex; |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 177 | |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 178 | TString structInitializerString(int indent, const TStructure &structure, const TString &rhsStructName); |
daniel@transgaming.com | f4d9fef | 2012-12-20 21:12:13 +0000 | [diff] [blame] | 179 | |
Jamie Madill | 570e04d | 2013-06-21 09:15:33 -0400 | [diff] [blame] | 180 | std::map<TIntermTyped*, TString> mFlaggedStructMappedNames; |
| 181 | std::map<TIntermTyped*, TString> mFlaggedStructOriginalNames; |
| 182 | |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 183 | struct HelperFunction |
Olli Etuaho | ae37a5c | 2015-03-20 16:50:15 +0200 | [diff] [blame] | 184 | { |
| 185 | TString functionName; |
| 186 | TString functionDefinition; |
| 187 | |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 188 | virtual ~HelperFunction() {} |
Olli Etuaho | ae37a5c | 2015-03-20 16:50:15 +0200 | [diff] [blame] | 189 | }; |
| 190 | |
| 191 | // A list of all equality comparison functions. It's important to preserve the order at |
| 192 | // which we add the functions, since nested structures call each other recursively, and |
| 193 | // structure equality functions may need to call array equality functions and vice versa. |
| 194 | // The ownership of the pointers is maintained by the type-specific arrays. |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 195 | std::vector<HelperFunction*> mEqualityFunctions; |
Olli Etuaho | ae37a5c | 2015-03-20 16:50:15 +0200 | [diff] [blame] | 196 | |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 197 | struct StructEqualityFunction : public HelperFunction |
Jamie Madill | 55e79e0 | 2015-02-09 15:35:00 -0500 | [diff] [blame] | 198 | { |
| 199 | const TStructure *structure; |
Jamie Madill | 55e79e0 | 2015-02-09 15:35:00 -0500 | [diff] [blame] | 200 | }; |
Olli Etuaho | ae37a5c | 2015-03-20 16:50:15 +0200 | [diff] [blame] | 201 | std::vector<StructEqualityFunction*> mStructEqualityFunctions; |
Jamie Madill | 55e79e0 | 2015-02-09 15:35:00 -0500 | [diff] [blame] | 202 | |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 203 | struct ArrayHelperFunction : public HelperFunction |
Olli Etuaho | 7fb4955 | 2015-03-18 17:27:44 +0200 | [diff] [blame] | 204 | { |
| 205 | TType type; |
Olli Etuaho | 7fb4955 | 2015-03-18 17:27:44 +0200 | [diff] [blame] | 206 | }; |
Olli Etuaho | 1269076 | 2015-03-31 12:55:28 +0300 | [diff] [blame] | 207 | std::vector<ArrayHelperFunction*> mArrayEqualityFunctions; |
| 208 | |
| 209 | std::vector<ArrayHelperFunction> mArrayAssignmentFunctions; |
Olli Etuaho | 9638c35 | 2015-04-01 14:34:52 +0300 | [diff] [blame] | 210 | |
| 211 | // The construct-into functions are functions that fill an N-element array passed as an out parameter |
| 212 | // with the other N parameters of the function. This is used to work around that arrays can't be |
| 213 | // return values in HLSL. |
| 214 | std::vector<ArrayHelperFunction> mArrayConstructIntoFunctions; |
Olli Etuaho | 9696316 | 2016-03-21 11:54:33 +0200 | [diff] [blame] | 215 | |
| 216 | private: |
| 217 | TString samplerNamePrefixFromStruct(TIntermTyped *node); |
| 218 | bool ancestorEvaluatesToSamplerInStruct(Visit visit); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 219 | }; |
Jamie Madill | 8daaba1 | 2014-06-13 10:04:33 -0400 | [diff] [blame] | 220 | |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 221 | } |
| 222 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 223 | #endif // COMPILER_TRANSLATOR_OUTPUTHLSL_H_ |