Lines Matching refs:mState
115 mState(this, maxAttribs, maxAttribBindings), in VertexArray()
116 mVertexArray(factory->createVertexArray(mState)), in VertexArray()
128 for (VertexBinding &binding : mState.mVertexBindings) in onDestroy()
137 if (isBound && mState.mElementArrayBuffer.get()) in onDestroy()
138 mState.mElementArrayBuffer->onNonTFBindingChanged(-1); in onDestroy()
139 mState.mElementArrayBuffer.bind(context, nullptr); in onDestroy()
152 mState.mLabel = label; in setLabel()
157 return mState.mLabel; in getLabel()
166 VertexBinding &binding = mState.mVertexBindings[bindingIndex]; in detachBuffer()
192 mState.mClientMemoryAttribsMask |= binding.getBoundAttributesMask(); in detachBuffer()
196 if (mState.mElementArrayBuffer.get() && mState.mElementArrayBuffer->id() == bufferID) in detachBuffer()
198 if (isBound && mState.mElementArrayBuffer.get()) in detachBuffer()
199 mState.mElementArrayBuffer->onNonTFBindingChanged(-1); in detachBuffer()
200 mState.mElementArrayBuffer.bind(context, nullptr); in detachBuffer()
211 return mState.mVertexAttributes[attribIndex]; in getVertexAttribute()
217 return mState.mVertexBindings[bindingIndex]; in getVertexBinding()
249 mState.mVertexAttributes[boundAttribute].updateCachedElementLimit(*binding); in updateCachedBufferBindingSize()
261 mState.mCachedMappedArrayBuffers |= boundAttributesMask; in updateCachedArrayBuffersMasks()
265 mState.mCachedMappedArrayBuffers &= ~boundAttributesMask; in updateCachedArrayBuffersMasks()
270 mState.mCachedMutableOrImpersistentArrayBuffers |= boundAttributesMask; in updateCachedArrayBuffersMasks()
274 mState.mCachedMutableOrImpersistentArrayBuffers &= ~boundAttributesMask; in updateCachedArrayBuffersMasks()
277 mState.mCachedInvalidMappedArrayBuffer = mState.mCachedMappedArrayBuffers & in updateCachedArrayBuffersMasks()
278 mState.mEnabledAttributesMask & in updateCachedArrayBuffersMasks()
279 mState.mCachedMutableOrImpersistentArrayBuffers; in updateCachedArrayBuffersMasks()
308 VertexBinding *binding = &mState.mVertexBindings[bindingIndex]; in bindVertexBufferImpl()
345 mState.mClientMemoryAttribsMask &= ~binding->getBoundAttributesMask(); in bindVertexBufferImpl()
356 mState.mClientMemoryAttribsMask |= binding->getBoundAttributesMask(); in bindVertexBufferImpl()
381 if (mState.mVertexAttributes[attribIndex].bindingIndex == bindingIndex) in setVertexAttribBinding()
389 mState.setAttribBinding(context, attribIndex, bindingIndex); in setVertexAttribBinding()
394 bool hasBuffer = mState.mVertexBindings[bindingIndex].getBuffer().get() != nullptr; in setVertexAttribBinding()
395 mState.mClientMemoryAttribsMask.set(attribIndex, !hasBuffer); in setVertexAttribBinding()
402 VertexBinding &binding = mState.mVertexBindings[bindingIndex]; in setVertexBindingDivisor()
410 mState.mVertexAttributes[attribIndex].updateCachedElementLimit(binding); in setVertexBindingDivisor()
440 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in setVertexAttribFormat()
443 SetComponentTypeMask(componentType, attribIndex, &mState.mVertexAttributesTypeMask); in setVertexAttribFormat()
450 attrib.updateCachedElementLimit(mState.mVertexBindings[attrib.bindingIndex]); in setVertexAttribFormat()
465 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in enableAttribute()
467 if (mState.mEnabledAttributesMask.test(attribIndex) == enabledState) in enableAttribute()
477 mState.mEnabledAttributesMask.set(attribIndex, enabledState); in enableAttribute()
478 mState.updateCachedMutableOrNonPersistentArrayBuffers(attribIndex); in enableAttribute()
479 mState.mCachedInvalidMappedArrayBuffer = mState.mCachedMappedArrayBuffers & in enableAttribute()
480 mState.mEnabledAttributesMask & in enableAttribute()
481 mState.mCachedMutableOrImpersistentArrayBuffers; in enableAttribute()
497 VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in setVertexAttribPointerImpl()
499 SetComponentTypeMask(componentType, attribIndex, &mState.mVertexAttributesTypeMask); in setVertexAttribPointerImpl()
519 const VertexBinding &binding = mState.mVertexBindings[attribIndex]; in setVertexAttribPointerImpl()
541 mState.mNullPointerClientMemoryAttribsMask.set(attribIndex, in setVertexAttribPointerImpl()
590 if (mState.mElementArrayBuffer.get()) in onBindingChanged()
591 mState.mElementArrayBuffer->onNonTFBindingChanged(incr); in onBindingChanged()
592 for (auto &binding : mState.mVertexBindings) in onBindingChanged()
627 updateCachedBufferBindingSize(&mState.mVertexBindings[index]); in onSubjectStateChange()
635 const Buffer *buffer = mState.mVertexBindings[index].getBuffer().get(); in onSubjectStateChange()
643 updateCachedMappedArrayBuffersBinding(mState.mVertexBindings[index]); in onSubjectStateChange()
653 updateCachedMappedArrayBuffersBinding(mState.mVertexBindings[index]); in onSubjectStateChange()
685 const VertexAttribute &attrib = mState.mVertexAttributes[attribIndex]; in hasTransformFeedbackBindingConflict()
701 Buffer *elementArrayBuffer = mState.mElementArrayBuffer.get(); in getIndexRangeImpl()