daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 1 | // |
daniel@transgaming.com | a390e1e | 2013-01-11 04:09:39 +0000 | [diff] [blame] | 2 | // Copyright (c) 2002-2013 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 | |
| 7 | #ifndef COMPILER_OUTPUTHLSL_H_ |
| 8 | #define COMPILER_OUTPUTHLSL_H_ |
| 9 | |
alokp@chromium.org | 4e89d23 | 2010-05-14 19:37:21 +0000 | [diff] [blame] | 10 | #include <list> |
| 11 | #include <set> |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 12 | #include <map> |
| 13 | |
| 14 | #define GL_APICALL |
shannon.woods%transgaming.com@gtempaccount.com | f26ddae | 2013-04-13 03:29:13 +0000 | [diff] [blame] | 15 | #include <GLES3/gl3.h> |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 16 | #include <GLES2/gl2.h> |
alokp@chromium.org | 4e89d23 | 2010-05-14 19:37:21 +0000 | [diff] [blame] | 17 | |
daniel@transgaming.com | bbf56f7 | 2010-04-20 18:52:13 +0000 | [diff] [blame] | 18 | #include "compiler/intermediate.h" |
| 19 | #include "compiler/ParseHelper.h" |
daniel@transgaming.com | f4d9fef | 2012-12-20 21:12:13 +0000 | [diff] [blame] | 20 | #include "compiler/Uniform.h" |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 21 | |
| 22 | namespace sh |
| 23 | { |
daniel@transgaming.com | f8f8f36 | 2012-04-28 00:35:00 +0000 | [diff] [blame] | 24 | class UnfoldShortCircuit; |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 25 | |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 26 | class OutputHLSL : public TIntermTraverser |
| 27 | { |
| 28 | public: |
shannon.woods%transgaming.com@gtempaccount.com | 18b4c4b | 2013-04-13 03:31:40 +0000 | [diff] [blame] | 29 | OutputHLSL(TParseContext &context, const ShBuiltInResources& resources, ShShaderOutput outputType); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 30 | ~OutputHLSL(); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 31 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 32 | void output(); |
| 33 | |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 34 | TInfoSinkBase &getBodyStream(); |
daniel@transgaming.com | 043da13 | 2012-12-20 21:12:22 +0000 | [diff] [blame] | 35 | const ActiveUniforms &getUniforms(); |
shannonwoods@chromium.org | 4a643ae | 2013-05-30 00:12:27 +0000 | [diff] [blame] | 36 | const ActiveInterfaceBlocks &getInterfaceBlocks() const; |
Jamie Madill | 46131a3 | 2013-06-20 11:55:50 -0400 | [diff] [blame] | 37 | const ActiveShaderVariables &getOutputVariables() const; |
Jamie Madill | defb674 | 2013-06-20 11:55:51 -0400 | [diff] [blame] | 38 | const ActiveShaderVariables &getAttributes() const; |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 39 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 40 | TString typeString(const TType &type); |
shannon.woods@transgaming.com | fb256be | 2013-01-25 21:49:25 +0000 | [diff] [blame] | 41 | TString textureString(const TType &type); |
Nicolas Capens | cb127d3 | 2013-07-15 17:26:18 -0400 | [diff] [blame^] | 42 | TString samplerString(const TType &type); |
shannon.woods%transgaming.com@gtempaccount.com | 1886fd4 | 2013-04-13 03:41:45 +0000 | [diff] [blame] | 43 | TString interpolationString(TQualifier qualifier); |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 44 | TString structureString(const TStructure &structure, bool useHLSLRowMajorPacking, bool useStd140Packing); |
| 45 | TString structureTypeName(const TStructure &structure, bool useHLSLRowMajorPacking, bool useStd140Packing); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 46 | static TString qualifierString(TQualifier qualifier); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 47 | static TString arrayString(const TType &type); |
| 48 | static TString initializer(const TType &type); |
daniel@transgaming.com | c72c641 | 2011-09-20 16:09:17 +0000 | [diff] [blame] | 49 | static TString decorate(const TString &string); // Prepends an underscore to avoid naming clashes |
apatrick@chromium.org | 6575602 | 2012-01-17 21:45:38 +0000 | [diff] [blame] | 50 | static TString decorateUniform(const TString &string, const TType &type); |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 51 | static TString decorateField(const TString &string, const TStructure &structure); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 52 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 53 | protected: |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 54 | void header(); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 55 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 56 | // Visit AST nodes and output their code to the body stream |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 57 | void visitSymbol(TIntermSymbol*); |
| 58 | void visitConstantUnion(TIntermConstantUnion*); |
| 59 | bool visitBinary(Visit visit, TIntermBinary*); |
| 60 | bool visitUnary(Visit visit, TIntermUnary*); |
| 61 | bool visitSelection(Visit visit, TIntermSelection*); |
| 62 | bool visitAggregate(Visit visit, TIntermAggregate*); |
| 63 | bool visitLoop(Visit visit, TIntermLoop*); |
| 64 | bool visitBranch(Visit visit, TIntermBranch*); |
| 65 | |
daniel@transgaming.com | 44fffee | 2012-04-28 00:34:20 +0000 | [diff] [blame] | 66 | void traverseStatements(TIntermNode *node); |
daniel@transgaming.com | b587598 | 2010-04-15 20:44:53 +0000 | [diff] [blame] | 67 | bool isSingleStatement(TIntermNode *node); |
daniel@transgaming.com | 4a35ef2 | 2010-04-08 03:51:06 +0000 | [diff] [blame] | 68 | bool handleExcessiveLoop(TIntermLoop *node); |
daniel@transgaming.com | 67de6d6 | 2010-04-29 03:35:30 +0000 | [diff] [blame] | 69 | void outputTriplet(Visit visit, const TString &preString, const TString &inString, const TString &postString); |
apatrick@chromium.org | 0f4cefe | 2011-01-26 19:30:57 +0000 | [diff] [blame] | 70 | void outputLineDirective(int line); |
daniel@transgaming.com | 005c739 | 2010-04-15 20:45:27 +0000 | [diff] [blame] | 71 | TString argumentString(const TIntermSymbol *symbol); |
daniel@transgaming.com | 0b6b834 | 2010-04-26 15:33:45 +0000 | [diff] [blame] | 72 | int vectorSize(const TType &type) const; |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 73 | |
daniel@transgaming.com | 67de6d6 | 2010-04-29 03:35:30 +0000 | [diff] [blame] | 74 | void addConstructor(const TType &type, const TString &name, const TIntermSequence *parameters); |
daniel@transgaming.com | a54da4e | 2010-05-07 13:03:28 +0000 | [diff] [blame] | 75 | const ConstantUnion *writeConstantUnion(const TType &type, const ConstantUnion *constUnion); |
daniel@transgaming.com | 6369186 | 2010-04-29 03:32:42 +0000 | [diff] [blame] | 76 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 77 | TString scopeString(unsigned int depthLimit); |
| 78 | TString scopedStruct(const TString &typeName); |
| 79 | TString structLookup(const TString &typeName); |
| 80 | |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 81 | TParseContext &mContext; |
shannon.woods@transgaming.com | b73964e | 2013-01-25 21:49:14 +0000 | [diff] [blame] | 82 | const ShShaderOutput mOutputType; |
daniel@transgaming.com | f8f8f36 | 2012-04-28 00:35:00 +0000 | [diff] [blame] | 83 | UnfoldShortCircuit *mUnfoldShortCircuit; |
daniel@transgaming.com | f9ef107 | 2010-04-22 13:35:16 +0000 | [diff] [blame] | 84 | bool mInsideFunction; |
daniel@transgaming.com | 950f993 | 2010-04-13 03:26:14 +0000 | [diff] [blame] | 85 | |
| 86 | // Output streams |
| 87 | TInfoSinkBase mHeader; |
| 88 | TInfoSinkBase mBody; |
| 89 | TInfoSinkBase mFooter; |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 90 | |
daniel@transgaming.com | 8803b85 | 2012-12-20 21:11:47 +0000 | [diff] [blame] | 91 | typedef std::map<TString, TIntermSymbol*> ReferencedSymbols; |
| 92 | ReferencedSymbols mReferencedUniforms; |
shannonwoods@chromium.org | 4a643ae | 2013-05-30 00:12:27 +0000 | [diff] [blame] | 93 | ReferencedSymbols mReferencedInterfaceBlocks; |
daniel@transgaming.com | 8803b85 | 2012-12-20 21:11:47 +0000 | [diff] [blame] | 94 | ReferencedSymbols mReferencedAttributes; |
| 95 | ReferencedSymbols mReferencedVaryings; |
Jamie Madill | 46131a3 | 2013-06-20 11:55:50 -0400 | [diff] [blame] | 96 | ReferencedSymbols mReferencedOutputVariables; |
daniel@transgaming.com | 86f7c9d | 2010-04-20 18:52:06 +0000 | [diff] [blame] | 97 | |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 98 | struct TextureFunction |
| 99 | { |
Nicolas Capens | 75fb475 | 2013-07-10 15:14:47 -0400 | [diff] [blame] | 100 | enum Method |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 101 | { |
Nicolas Capens | 75fb475 | 2013-07-10 15:14:47 -0400 | [diff] [blame] | 102 | IMPLICIT, // Mipmap LOD determined implicitly (standard lookup) |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 103 | BIAS, |
| 104 | LOD, |
Nicolas Capens | 75fb475 | 2013-07-10 15:14:47 -0400 | [diff] [blame] | 105 | LOD0, |
| 106 | SIZE // textureSize() |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | TBasicType sampler; |
| 110 | int coords; |
| 111 | bool proj; |
Nicolas Capens | 75fb475 | 2013-07-10 15:14:47 -0400 | [diff] [blame] | 112 | Method method; |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 113 | |
| 114 | TString name() const; |
| 115 | |
| 116 | bool operator<(const TextureFunction &rhs) const; |
| 117 | }; |
| 118 | |
| 119 | typedef std::set<TextureFunction> TextureFunctionSet; |
| 120 | |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 121 | // Parameters determining what goes in the header output |
Nicolas Capens | e0ba27a | 2013-06-24 16:10:52 -0400 | [diff] [blame] | 122 | TextureFunctionSet mUsesTexture; |
shannon.woods%transgaming.com@gtempaccount.com | aa8b5cf | 2013-04-13 03:31:55 +0000 | [diff] [blame] | 123 | bool mUsesFragColor; |
| 124 | bool mUsesFragData; |
daniel@transgaming.com | d7c9810 | 2010-05-14 17:30:48 +0000 | [diff] [blame] | 125 | bool mUsesDepthRange; |
daniel@transgaming.com | 4af7acc | 2010-05-14 17:30:53 +0000 | [diff] [blame] | 126 | bool mUsesFragCoord; |
| 127 | bool mUsesPointCoord; |
| 128 | bool mUsesFrontFacing; |
| 129 | bool mUsesPointSize; |
Jamie Madill | 2aeb26a | 2013-07-08 14:02:55 -0400 | [diff] [blame] | 130 | bool mUsesFragDepth; |
daniel@transgaming.com | d7c9810 | 2010-05-14 17:30:48 +0000 | [diff] [blame] | 131 | bool mUsesXor; |
| 132 | bool mUsesMod1; |
daniel@transgaming.com | 4229f59 | 2011-11-24 22:34:04 +0000 | [diff] [blame] | 133 | bool mUsesMod2v; |
| 134 | bool mUsesMod2f; |
| 135 | bool mUsesMod3v; |
| 136 | bool mUsesMod3f; |
| 137 | bool mUsesMod4v; |
| 138 | bool mUsesMod4f; |
daniel@transgaming.com | 0bbb031 | 2010-04-26 15:33:39 +0000 | [diff] [blame] | 139 | bool mUsesFaceforward1; |
| 140 | bool mUsesFaceforward2; |
| 141 | bool mUsesFaceforward3; |
| 142 | bool mUsesFaceforward4; |
shannonwoods@chromium.org | 9bd22fa | 2013-05-30 00:18:47 +0000 | [diff] [blame] | 143 | bool mUsesEqualMat[5][5]; |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 144 | bool mUsesEqualVec2; |
| 145 | bool mUsesEqualVec3; |
| 146 | bool mUsesEqualVec4; |
| 147 | bool mUsesEqualIVec2; |
| 148 | bool mUsesEqualIVec3; |
| 149 | bool mUsesEqualIVec4; |
shannonwoods@chromium.org | 8c788e8 | 2013-05-30 00:20:21 +0000 | [diff] [blame] | 150 | bool mUsesEqualUVec2; |
| 151 | bool mUsesEqualUVec3; |
| 152 | bool mUsesEqualUVec4; |
daniel@transgaming.com | d91cfe7 | 2010-04-13 03:26:17 +0000 | [diff] [blame] | 153 | bool mUsesEqualBVec2; |
| 154 | bool mUsesEqualBVec3; |
| 155 | bool mUsesEqualBVec4; |
daniel@transgaming.com | 35342dc | 2012-02-28 02:01:22 +0000 | [diff] [blame] | 156 | bool mUsesAtan2_1; |
| 157 | bool mUsesAtan2_2; |
| 158 | bool mUsesAtan2_3; |
| 159 | bool mUsesAtan2_4; |
daniel@transgaming.com | 005c739 | 2010-04-15 20:45:27 +0000 | [diff] [blame] | 160 | |
shannon.woods%transgaming.com@gtempaccount.com | aa8b5cf | 2013-04-13 03:31:55 +0000 | [diff] [blame] | 161 | int mNumRenderTargets; |
| 162 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 163 | typedef std::set<TString> Constructors; |
| 164 | Constructors mConstructors; |
daniel@transgaming.com | 6369186 | 2010-04-29 03:32:42 +0000 | [diff] [blame] | 165 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 166 | typedef std::set<TString> StructNames; |
| 167 | StructNames mStructNames; |
daniel@transgaming.com | 6369186 | 2010-04-29 03:32:42 +0000 | [diff] [blame] | 168 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 169 | typedef std::list<TString> StructDeclarations; |
| 170 | StructDeclarations mStructDeclarations; |
daniel@transgaming.com | 6369186 | 2010-04-29 03:32:42 +0000 | [diff] [blame] | 171 | |
daniel@transgaming.com | a2a95e7 | 2010-05-20 19:17:55 +0000 | [diff] [blame] | 172 | typedef std::vector<int> ScopeBracket; |
| 173 | ScopeBracket mScopeBracket; |
| 174 | unsigned int mScopeDepth; |
daniel@transgaming.com | 7a7003c | 2010-04-29 03:35:33 +0000 | [diff] [blame] | 175 | |
daniel@transgaming.com | b6ef8f1 | 2010-11-15 16:41:14 +0000 | [diff] [blame] | 176 | int mUniqueIndex; // For creating unique names |
daniel@transgaming.com | 89431aa | 2012-05-31 01:20:29 +0000 | [diff] [blame] | 177 | |
| 178 | bool mContainsLoopDiscontinuity; |
| 179 | bool mOutputLod0Function; |
daniel@transgaming.com | e11100c | 2012-05-31 01:20:32 +0000 | [diff] [blame] | 180 | bool mInsideDiscontinuousLoop; |
daniel@transgaming.com | e9b3f60 | 2012-07-11 20:37:31 +0000 | [diff] [blame] | 181 | |
| 182 | TIntermSymbol *mExcessiveLoopIndex; |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 183 | |
| 184 | int mUniformRegister; |
shannonwoods@chromium.org | 4a643ae | 2013-05-30 00:12:27 +0000 | [diff] [blame] | 185 | int mInterfaceBlockRegister; |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 186 | int mSamplerRegister; |
Jamie Madill | 574d9dd | 2013-06-20 11:55:56 -0400 | [diff] [blame] | 187 | int mPaddingCounter; |
daniel@transgaming.com | 652468c | 2012-12-20 21:11:57 +0000 | [diff] [blame] | 188 | |
| 189 | TString registerString(TIntermSymbol *operand); |
| 190 | int samplerRegister(TIntermSymbol *sampler); |
| 191 | int uniformRegister(TIntermSymbol *uniform); |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 192 | void declareUniformToList(const TType &type, const TString &name, int registerIndex, ActiveUniforms& output); |
daniel@transgaming.com | f4d9fef | 2012-12-20 21:12:13 +0000 | [diff] [blame] | 193 | void declareUniform(const TType &type, const TString &name, int index); |
shannonwoods@chromium.org | 4430b0d | 2013-05-30 00:12:34 +0000 | [diff] [blame] | 194 | |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 195 | TString interfaceBlockFieldString(const TInterfaceBlock &interfaceBlock, const TField &field); |
shannonwoods@chromium.org | e429ab7 | 2013-05-30 00:12:52 +0000 | [diff] [blame] | 196 | TString decoratePrivate(const TString &privateText); |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 197 | TString interfaceBlockStructNameString(const TInterfaceBlock &interfaceBlockType); |
| 198 | TString interfaceBlockInstanceString(const TInterfaceBlock& interfaceBlock, unsigned int arrayIndex); |
| 199 | TString interfaceBlockFieldTypeString(const TField &field, TLayoutBlockStorage blockStorage); |
| 200 | TString interfaceBlockFieldString(const TInterfaceBlock &interfaceBlock, TLayoutBlockStorage blockStorage); |
| 201 | TString interfaceBlockStructString(const TInterfaceBlock &interfaceBlock); |
| 202 | TString interfaceBlockString(const TInterfaceBlock &interfaceBlock, unsigned int registerIndex, unsigned int arrayIndex); |
Jamie Madill | 574d9dd | 2013-06-20 11:55:56 -0400 | [diff] [blame] | 203 | TString std140PrePaddingString(const TType &type, int *elementIndex); |
Jamie Madill | e4075c9 | 2013-06-21 09:15:32 -0400 | [diff] [blame] | 204 | TString std140PostPaddingString(const TType &type, bool useHLSLRowMajorPacking); |
Jamie Madill | 98493dd | 2013-07-08 14:39:03 -0400 | [diff] [blame] | 205 | TString structInitializerString(int indent, const TStructure &structure, const TString &rhsStructName); |
shannon.woods%transgaming.com@gtempaccount.com | 6f273e3 | 2013-04-13 03:41:15 +0000 | [diff] [blame] | 206 | |
daniel@transgaming.com | f4d9fef | 2012-12-20 21:12:13 +0000 | [diff] [blame] | 207 | static GLenum glVariableType(const TType &type); |
shannon.woods@transgaming.com | fe3c0ef | 2013-02-28 23:17:22 +0000 | [diff] [blame] | 208 | static GLenum glVariablePrecision(const TType &type); |
shannon.woods%transgaming.com@gtempaccount.com | 6f273e3 | 2013-04-13 03:41:15 +0000 | [diff] [blame] | 209 | static bool isVaryingIn(TQualifier qualifier); |
| 210 | static bool isVaryingOut(TQualifier qualifier); |
| 211 | static bool isVarying(TQualifier qualifier); |
daniel@transgaming.com | f4d9fef | 2012-12-20 21:12:13 +0000 | [diff] [blame] | 212 | |
| 213 | ActiveUniforms mActiveUniforms; |
shannonwoods@chromium.org | 4a643ae | 2013-05-30 00:12:27 +0000 | [diff] [blame] | 214 | ActiveInterfaceBlocks mActiveInterfaceBlocks; |
Jamie Madill | 46131a3 | 2013-06-20 11:55:50 -0400 | [diff] [blame] | 215 | ActiveShaderVariables mActiveOutputVariables; |
Jamie Madill | defb674 | 2013-06-20 11:55:51 -0400 | [diff] [blame] | 216 | ActiveShaderVariables mActiveAttributes; |
Jamie Madill | e4075c9 | 2013-06-21 09:15:32 -0400 | [diff] [blame] | 217 | std::map<TString, int> mStd140StructElementIndexes; |
Jamie Madill | 570e04d | 2013-06-21 09:15:33 -0400 | [diff] [blame] | 218 | std::map<TIntermTyped*, TString> mFlaggedStructMappedNames; |
| 219 | std::map<TIntermTyped*, TString> mFlaggedStructOriginalNames; |
| 220 | |
| 221 | void makeFlaggedStructMaps(const std::vector<TIntermTyped *> &flaggedStructs); |
daniel@transgaming.com | 4f39fd9 | 2010-03-08 20:26:45 +0000 | [diff] [blame] | 222 | }; |
| 223 | } |
| 224 | |
| 225 | #endif // COMPILER_OUTPUTHLSL_H_ |