Lines Matching refs:attribIndex
63 size_t attribIndex, in setAttribBinding() argument
66 ASSERT(attribIndex < MAX_VERTEX_ATTRIBS && newBindingIndex < MAX_VERTEX_ATTRIB_BINDINGS); in setAttribBinding()
68 VertexAttribute &attrib = mVertexAttributes[attribIndex]; in setAttribBinding()
77 ASSERT(oldBinding.getBoundAttributesMask().test(attribIndex) && in setAttribBinding()
78 !newBinding.getBoundAttributesMask().test(attribIndex)); in setAttribBinding()
80 oldBinding.resetBoundAttribute(attribIndex); in setAttribBinding()
81 newBinding.setBoundAttribute(attribIndex); in setAttribBinding()
92 mCachedMappedArrayBuffers.set(attribIndex, isMapped); in setAttribBinding()
93 mEnabledAttributesMask.set(attribIndex, attrib.enabled); in setAttribBinding()
94 updateCachedMutableOrNonPersistentArrayBuffers(attribIndex); in setAttribBinding()
119 for (size_t attribIndex = 0; attribIndex < maxAttribBindings; ++attribIndex) in VertexArray() local
121 mArrayBufferObserverBindings.emplace_back(this, attribIndex); in VertexArray()
208 const VertexAttribute &VertexArray::getVertexAttribute(size_t attribIndex) const in getVertexAttribute()
210 ASSERT(attribIndex < getMaxAttribs()); in getVertexAttribute()
211 return mState.mVertexAttributes[attribIndex]; in getVertexAttribute()
228 ANGLE_INLINE void VertexArray::setDirtyAttribBit(size_t attribIndex, in setDirtyAttribBit() argument
231 mDirtyBits.set(DIRTY_BIT_ATTRIB_0 + attribIndex); in setDirtyAttribBit()
232 mDirtyAttribBits[attribIndex].set(dirtyAttribBit); in setDirtyAttribBit()
376 size_t attribIndex, in setVertexAttribBinding() argument
379 ASSERT(attribIndex < getMaxAttribs() && bindingIndex < getMaxBindings()); in setVertexAttribBinding()
381 if (mState.mVertexAttributes[attribIndex].bindingIndex == bindingIndex) in setVertexAttribBinding()
389 mState.setAttribBinding(context, attribIndex, bindingIndex); in setVertexAttribBinding()
391 setDirtyAttribBit(attribIndex, DIRTY_ATTRIB_BINDING); in setVertexAttribBinding()
395 mState.mClientMemoryAttribsMask.set(attribIndex, !hasBuffer); in setVertexAttribBinding()
408 for (size_t attribIndex : binding.getBoundAttributesMask()) in setVertexBindingDivisor() local
410 mState.mVertexAttributes[attribIndex].updateCachedElementLimit(binding); in setVertexBindingDivisor()
433 void VertexArray::setVertexAttribFormat(size_t attribIndex, in setVertexAttribFormat() argument
440 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in setVertexAttribFormat()
443 SetComponentTypeMask(componentType, attribIndex, &mState.mVertexAttributesTypeMask); in setVertexAttribFormat()
447 setDirtyAttribBit(attribIndex, DIRTY_ATTRIB_FORMAT); in setVertexAttribFormat()
453 void VertexArray::setVertexAttribDivisor(const Context *context, size_t attribIndex, GLuint divisor) in setVertexAttribDivisor() argument
455 ASSERT(attribIndex < getMaxAttribs()); in setVertexAttribDivisor()
457 setVertexAttribBinding(context, attribIndex, static_cast<GLuint>(attribIndex)); in setVertexAttribDivisor()
458 setVertexBindingDivisor(attribIndex, divisor); in setVertexAttribDivisor()
461 void VertexArray::enableAttribute(size_t attribIndex, bool enabledState) in enableAttribute() argument
463 ASSERT(attribIndex < getMaxAttribs()); in enableAttribute()
465 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in enableAttribute()
467 if (mState.mEnabledAttributesMask.test(attribIndex) == enabledState) in enableAttribute()
474 setDirtyAttribBit(attribIndex, DIRTY_ATTRIB_ENABLED); in enableAttribute()
477 mState.mEnabledAttributesMask.set(attribIndex, enabledState); in enableAttribute()
478 mState.updateCachedMutableOrNonPersistentArrayBuffers(attribIndex); in enableAttribute()
487 size_t attribIndex, in setVertexAttribPointerImpl() argument
495 ASSERT(attribIndex < getMaxAttribs()); in setVertexAttribPointerImpl()
497 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in setVertexAttribPointerImpl()
499 SetComponentTypeMask(componentType, attribIndex, &mState.mVertexAttributesTypeMask); in setVertexAttribPointerImpl()
503 if (attrib.bindingIndex != attribIndex) in setVertexAttribPointerImpl()
505 setVertexAttribBinding(context, attribIndex, static_cast<GLuint>(attribIndex)); in setVertexAttribPointerImpl()
519 const VertexBinding &binding = mState.mVertexBindings[attribIndex]; in setVertexAttribPointerImpl()
530 bindVertexBufferImpl(context, attribIndex, boundBuffer, offset, effectiveStride); in setVertexAttribPointerImpl()
534 setDirtyAttribBit(attribIndex, DIRTY_ATTRIB_POINTER); in setVertexAttribPointerImpl()
538 setDirtyAttribBit(attribIndex, DIRTY_ATTRIB_POINTER_BUFFER); in setVertexAttribPointerImpl()
541 mState.mNullPointerClientMemoryAttribsMask.set(attribIndex, in setVertexAttribPointerImpl()
546 size_t attribIndex, in setVertexAttribPointer() argument
554 setVertexAttribPointerImpl(context, ComponentType::Float, false, attribIndex, boundBuffer, size, in setVertexAttribPointer()
559 size_t attribIndex, in setVertexAttribIPointer() argument
567 setVertexAttribPointerImpl(context, componentType, true, attribIndex, boundBuffer, size, type, in setVertexAttribIPointer()
683 for (size_t attribIndex : activeAttribues) in hasTransformFeedbackBindingConflict() local
685 const VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in hasTransformFeedbackBindingConflict()