Home | History | Annotate | Download | only in service

Lines Matching refs:attrib

180     VertexAttrib* attrib = *it;
182 current_program->GetAttribInfoByLocation(attrib->index());
184 divisor0 |= (attrib->divisor() == 0);
185 GLuint count = attrib->MaxVertexAccessed(primcount, max_vertex_accessed);
186 // This attrib is used in the current program.
187 if (!attrib->CanAccess(count)) {
192 base::IntToString(attrib->index())).c_str());
196 Buffer* buffer = attrib->buffer();
197 glEnableVertexAttribArray(attrib->index());
203 attrib->set_is_client_side_array(true);
204 const void* ptr = buffer->GetRange(attrib->offset(), 0);
207 attrib->index(),
208 attrib->size(),
209 attrib->type(),
210 attrib->normalized(),
211 attrib->gl_stride(),
213 } else if (attrib->is_client_side_array()) {
214 attrib->set_is_client_side_array(false);
220 const void* ptr = reinterpret_cast<const void*>(attrib->offset());
222 attrib->index(),
223 attrib->size(),
224 attrib->type(),
225 attrib->normalized(),
226 attrib->gl_stride(),
231 // This attrib is not used in the current program.
232 if (!attrib->buffer()) {
238 base::IntToString(attrib->index())).c_str());
241 Buffer* buffer = attrib->buffer();
245 // Don't disable attrib 0 since it's special.
246 if (attrib->index() > 0) {
247 glDisableVertexAttribArray(attrib->index());