Lines Matching refs:attribs
121 const VertexAttributeArray &attribs = mContext->getVertexAttributes();
129 if(attribs[i].mArrayEnabled)
131 if(!attribs[i].mBoundBuffer)
133 mStreamingBuffer->addRequiredSpace(attribs[i].typeSize() * count);
146 if(attribs[i].mArrayEnabled)
148 Buffer *buffer = attribs[i].mBoundBuffer;
150 if(!buffer && attribs[i].mPointer == nullptr)
162 translated[i].offset = start * attribs[i].stride() + attribs[i].mOffset;
163 translated[i].stride = attribs[i].stride();
167 unsigned int streamOffset = writeAttributeData(mStreamingBuffer, start, count, attribs[i]);
176 translated[i].stride = attribs[i].typeSize();
179 switch(attribs[i].mType)
189 default: UNREACHABLE(attribs[i].mType); translated[i].type = sw::STREAMTYPE_FLOAT; break;
192 translated[i].count = attribs[i].mSize;
193 translated[i].normalized = attribs[i].mNormalized;
200 mCurrentValueBuffer[i] = new ConstantVertexBuffer(attribs[i].mCurrentValue[0], attribs[i].mCurrentValue[1], attribs[i].mCurrentValue[2], attribs[i].mCurrentValue[3]);