Left: | ||
Right: |
OLD | NEW |
---|---|
1 // | 1 // |
2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. | 2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 | 6 |
7 // VertexDataManager.h: Defines the VertexDataManager, a class that | 7 // VertexDataManager.h: Defines the VertexDataManager, a class that |
8 // runs the Buffer translation process. | 8 // runs the Buffer translation process. |
9 | 9 |
10 #ifndef LIBGLESV2_VERTEXDATAMANAGER_H_ | 10 #ifndef LIBGLESV2_VERTEXDATAMANAGER_H_ |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 FormatConverter fallbackConversion; | 156 FormatConverter fallbackConversion; |
157 }; | 157 }; |
158 | 158 |
159 // This table is used to generate mAttributeTypes. | 159 // This table is used to generate mAttributeTypes. |
160 static const TranslationDescription mPossibleTranslations[NUM_GL_VERTEX_ATTR IB_TYPES][2][4]; // [GL types as enumerated by typeIndex()][normalized][size - 1 ] | 160 static const TranslationDescription mPossibleTranslations[NUM_GL_VERTEX_ATTR IB_TYPES][2][4]; // [GL types as enumerated by typeIndex()][normalized][size - 1 ] |
161 | 161 |
162 void checkVertexCaps(DWORD declTypes); | 162 void checkVertexCaps(DWORD declTypes); |
163 | 163 |
164 unsigned int typeIndex(GLenum type) const; | 164 unsigned int typeIndex(GLenum type) const; |
165 const FormatConverter &formatConverter(const VertexAttribute &attribute) con st; | 165 const FormatConverter &formatConverter(const VertexAttribute &attribute) con st; |
166 | |
167 int mMaxLru; | |
dgkoch
2011/04/06 14:15:00
make this unsigned.
| |
168 | |
169 enum { NUM_VERTEX_DECL_CACHE_ENTRIES = 16 }; | |
170 | |
171 struct VertexDeclCacheEntry | |
172 { | |
173 D3DVERTEXELEMENT9 cachedElements[MAX_VERTEX_ATTRIBS + 1]; | |
174 int lruCount; | |
dgkoch
2011/04/06 14:15:00
this should also be unsigned.
| |
175 IDirect3DVertexDeclaration9 *vertexDeclaration; | |
176 } mVertexDeclCache[NUM_VERTEX_DECL_CACHE_ENTRIES]; | |
166 }; | 177 }; |
167 | 178 |
168 } | 179 } |
169 | 180 |
170 #endif // LIBGLESV2_VERTEXDATAMANAGER_H_ | 181 #endif // LIBGLESV2_VERTEXDATAMANAGER_H_ |
OLD | NEW |