Lines Matching refs:attribs
122 const VertexAttributeArray &attribs = mContext->getVertexAttributes(); in prepareVertexData() local
127 if(attribs[i].mArrayEnabled) in prepareVertexData()
129 if(!attribs[i].mBoundBuffer) in prepareVertexData()
131 mStreamingBuffer->addRequiredSpace(attribs[i].typeSize() * count); in prepareVertexData()
141 if(attribs[i].mArrayEnabled) in prepareVertexData()
143 Buffer *buffer = attribs[i].mBoundBuffer; in prepareVertexData()
145 if(!buffer && attribs[i].mPointer == nullptr) in prepareVertexData()
157 translated[i].offset = start * attribs[i].stride() + attribs[i].mOffset; in prepareVertexData()
158 translated[i].stride = attribs[i].stride(); in prepareVertexData()
162 unsigned int streamOffset = writeAttributeData(mStreamingBuffer, start, count, attribs[i]); in prepareVertexData()
171 translated[i].stride = attribs[i].typeSize(); in prepareVertexData()
174 switch(attribs[i].mType) in prepareVertexData()
184 default: UNREACHABLE(attribs[i].mType); translated[i].type = sw::STREAMTYPE_FLOAT; break; in prepareVertexData()
187 translated[i].count = attribs[i].mSize; in prepareVertexData()
188 translated[i].normalized = attribs[i].mNormalized; in prepareVertexData()
195 …] = new ConstantVertexBuffer(attribs[i].mCurrentValue[0], attribs[i].mCurrentValue[1], attribs[i].… in prepareVertexData()