Home | History | Annotate | Download | only in geometry

Lines Matching full:attribs

107     const VertexAttributeArray &attribs = mContext->getVertexAttributes();
118 Buffer *buffer = attribs[i].mBoundBuffer.get();
120 if (translated[i].active && attribs[i].mArrayEnabled && (buffer || attribs[i].mPointer))
126 int totalCount = buffer->size() / attribs[i].stride();
127 staticBuffer->addRequiredSpace(spaceRequired(attribs[i], totalCount));
129 else if (!staticBuffer || staticBuffer->lookupAttribute(attribs[i]) == -1)
133 mStreamingBuffer->addRequiredSpace(spaceRequired(attribs[i], count));
142 Buffer *buffer = attribs[i].mBoundBuffer.get();
144 if (translated[i].active && attribs[i].mArrayEnabled && buffer)
154 if (translated[j].active && attribs[j].mArrayEnabled && attribs[j].mBoundBuffer.get() == buffer)
156 if (staticBuffer->lookupAttribute(attribs[j]) == -1)
176 Buffer *buffer = attribs[i].mBoundBuffer.get();
178 if (translated[i].active && attribs[i].mArrayEnabled && (buffer || attribs[i].mPointer))
195 Buffer *buffer = attribs[i].mBoundBuffer.get();
197 if (attribs[i].mArrayEnabled)
199 if (!buffer && attribs[i].mPointer == NULL)
206 const FormatConverter &converter = formatConverter(attribs[i]);
215 streamOffset = staticBuffer->lookupAttribute(attribs[i]);
220 int totalCount = buffer->size() / attribs[i].stride();
221 int startIndex = attribs[i].mOffset / attribs[i].stride();
223 streamOffset = writeAttributeData(staticBuffer, -startIndex, totalCount, attribs[i]);
228 streamOffset += (start + attribs[i].mOffset / attribs[i].stride()) * converter.outputElementSize;
233 streamOffset = writeAttributeData(mStreamingBuffer, start, count, attribs[i]);
251 mCurrentValueBuffer[i] = new ConstantVertexBuffer(mDevice, attribs[i].mCurrentValue[0], attribs[i].mCurrentValue[1], attribs[i].mCurrentValue[2], attribs[i].mCurrentValue[3]);