Lines Matching refs:translated
112 …er::prepareVertexData(GLint start, GLsizei count, TranslatedAttribute *translated, GLsizei instanc… in prepareVertexData() argument
167 translated[i].vertexBuffer = staticBuffer; in prepareVertexData()
168 translated[i].offset = firstVertexIndex * attrib.stride() + static_cast<int>(attrib.mOffset); in prepareVertexData()
169 translated[i].stride = isInstanced ? 0 : attrib.stride(); in prepareVertexData()
180 translated[i].vertexBuffer = mStreamingBuffer->getResource(); in prepareVertexData()
181 translated[i].offset = streamOffset; in prepareVertexData()
182 translated[i].stride = isInstanced ? 0 : attrib.typeSize(); in prepareVertexData()
187 case GL_BYTE: translated[i].type = sw::STREAMTYPE_SBYTE; break; in prepareVertexData()
188 case GL_UNSIGNED_BYTE: translated[i].type = sw::STREAMTYPE_BYTE; break; in prepareVertexData()
189 case GL_SHORT: translated[i].type = sw::STREAMTYPE_SHORT; break; in prepareVertexData()
190 case GL_UNSIGNED_SHORT: translated[i].type = sw::STREAMTYPE_USHORT; break; in prepareVertexData()
191 case GL_INT: translated[i].type = sw::STREAMTYPE_INT; break; in prepareVertexData()
192 case GL_UNSIGNED_INT: translated[i].type = sw::STREAMTYPE_UINT; break; in prepareVertexData()
193 case GL_FIXED: translated[i].type = sw::STREAMTYPE_FIXED; break; in prepareVertexData()
194 case GL_FLOAT: translated[i].type = sw::STREAMTYPE_FLOAT; break; in prepareVertexData()
195 case GL_HALF_FLOAT: translated[i].type = sw::STREAMTYPE_HALF; break; in prepareVertexData()
196 case GL_HALF_FLOAT_OES: translated[i].type = sw::STREAMTYPE_HALF; break; in prepareVertexData()
197 case GL_INT_2_10_10_10_REV: translated[i].type = sw::STREAMTYPE_2_10_10_10_INT; break; in prepareVertexData()
198 case GL_UNSIGNED_INT_2_10_10_10_REV: translated[i].type = sw::STREAMTYPE_2_10_10_10_UINT; break; in prepareVertexData()
199 default: UNREACHABLE(attrib.mType); translated[i].type = sw::STREAMTYPE_FLOAT; break; in prepareVertexData()
202 translated[i].count = attrib.mSize; in prepareVertexData()
203 translated[i].normalized = attrib.mNormalized; in prepareVertexData()
214 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getResource(); in prepareVertexData()
219 translated[i].type = sw::STREAMTYPE_INT; in prepareVertexData()
222 translated[i].type = sw::STREAMTYPE_UINT; in prepareVertexData()
225 translated[i].type = sw::STREAMTYPE_FLOAT; in prepareVertexData()
228 translated[i].count = 4; in prepareVertexData()
229 translated[i].stride = 0; in prepareVertexData()
230 translated[i].offset = 0; in prepareVertexData()
231 translated[i].normalized = false; in prepareVertexData()