/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | VertexArray.cpp | 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 mCachedEnabledMappedArrayBuffers.set(attribIndex, isMapped && attrib.enabled); in setAttribBinding() 106 for (size_t attribIndex = 0; attribIndex < maxAttribBindings; ++attribIndex) in VertexArray() local [all …]
|
D | VertexArray.h | 48 const VertexAttribute &getVertexAttribute(size_t attribIndex) const in getVertexAttribute() argument 50 return mVertexAttributes[attribIndex]; in getVertexAttribute() 57 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument 59 return mVertexBindings[mVertexAttributes[attribIndex].bindingIndex]; in getBindingFromAttribIndex() 61 size_t getBindingIndexFromAttribIndex(size_t attribIndex) const in getBindingIndexFromAttribIndex() argument 63 return mVertexAttributes[attribIndex].bindingIndex; in getBindingIndexFromAttribIndex() 66 void setAttribBinding(const Context *context, size_t attribIndex, GLuint newBindingIndex); 172 const VertexAttribute &getVertexAttribute(size_t attribIndex) const; 173 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument 175 return mState.getBindingFromAttribIndex(attribIndex); in getBindingFromAttribIndex() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | VertexArray.cpp | 61 size_t attribIndex, in setAttribBinding() argument 64 ASSERT(attribIndex < MAX_VERTEX_ATTRIBS && newBindingIndex < MAX_VERTEX_ATTRIB_BINDINGS); in setAttribBinding() 66 VertexAttribute &attrib = mVertexAttributes[attribIndex]; in setAttribBinding() 75 ASSERT(oldBinding.getBoundAttributesMask().test(attribIndex) && in setAttribBinding() 76 !newBinding.getBoundAttributesMask().test(attribIndex)); in setAttribBinding() 78 oldBinding.resetBoundAttribute(attribIndex); in setAttribBinding() 79 newBinding.setBoundAttribute(attribIndex); in setAttribBinding() 90 mCachedMappedArrayBuffers.set(attribIndex, isMapped); in setAttribBinding() 91 mEnabledAttributesMask.set(attribIndex, attrib.enabled); in setAttribBinding() 92 updateCachedMutableOrNonPersistentArrayBuffers(attribIndex); in setAttribBinding() [all …]
|
D | VertexArray.h | 50 const VertexAttribute &getVertexAttribute(size_t attribIndex) const in getVertexAttribute() argument 52 return mVertexAttributes[attribIndex]; in getVertexAttribute() 59 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument 61 return mVertexBindings[mVertexAttributes[attribIndex].bindingIndex]; in getBindingFromAttribIndex() 63 size_t getBindingIndexFromAttribIndex(size_t attribIndex) const in getBindingIndexFromAttribIndex() argument 65 return mVertexAttributes[attribIndex].bindingIndex; in getBindingIndexFromAttribIndex() 68 void setAttribBinding(const Context *context, size_t attribIndex, GLuint newBindingIndex); 200 const VertexAttribute &getVertexAttribute(size_t attribIndex) const; 201 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument 203 return mState.getBindingFromAttribIndex(attribIndex); in getBindingFromAttribIndex() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | VertexArrayGL.cpp | 42 bool IsVertexAttribPointerSupported(size_t attribIndex, const VertexAttribute &attrib) in IsVertexAttribPointerSupported() argument 44 return (attribIndex == attrib.bindingIndex && attrib.relativeOffset == 0); in IsVertexAttribPointerSupported() 397 void VertexArrayGL::updateAttribEnabled(size_t attribIndex) in updateAttribEnabled() argument 399 const bool enabled = mState.getVertexAttribute(attribIndex).enabled & in updateAttribEnabled() 400 mProgramActiveAttribLocationsMask.test(attribIndex); in updateAttribEnabled() 401 if (mAppliedAttributes[attribIndex].enabled == enabled) in updateAttribEnabled() 408 mFunctions->enableVertexAttribArray(static_cast<GLuint>(attribIndex)); in updateAttribEnabled() 412 mFunctions->disableVertexAttribArray(static_cast<GLuint>(attribIndex)); in updateAttribEnabled() 415 mAppliedAttributes[attribIndex].enabled = enabled; in updateAttribEnabled() 418 void VertexArrayGL::updateAttribPointer(const gl::Context *context, size_t attribIndex) in updateAttribPointer() argument [all …]
|
D | VertexArrayGL.h | 94 size_t attribIndex, 100 void updateAttribEnabled(size_t attribIndex); 101 void updateAttribPointer(const gl::Context *context, size_t attribIndex); 105 void updateAttribFormat(size_t attribIndex); 106 void updateAttribBinding(size_t attribIndex); 112 void callVertexAttribPointer(GLuint attribIndex,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | VertexArrayVk.cpp | 285 for (size_t attribIndex : activeAttribs) in handleLineLoopIndirectDraw() local 287 const gl::VertexAttribute &attrib = attribs[attribIndex]; in handleLineLoopIndirectDraw() 289 VkDeviceSize bufSize = this->getCurrentArrayBuffers()[attribIndex]->getSize(); in handleLineLoopIndirectDraw() 371 size_t attribIndex, in convertVertexBufferGPU() argument 421 size_t attribIndex, in convertVertexBufferCPU() argument 448 &mCurrentArrayBuffers[attribIndex], &conversion->lastAllocationOffset, 1)); in convertVertexBufferCPU() 515 for (size_t attribIndex : bindings[INDEX].getBoundAttributesMask()) \ in syncState() 517 ANGLE_TRY(syncDirtyAttrib(contextVk, attribs[attribIndex], bindings[INDEX], \ in syncState() 518 attribIndex, false)); \ in syncState() 547 size_t attribIndex) in setDefaultPackedInput() argument [all …]
|
D | VertexArrayVk.h | 38 size_t attribIndex, 113 angle::Result setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex); 118 size_t attribIndex, 126 size_t attribIndex, 135 size_t attribIndex,
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3D11InputLayoutCacheTest.cpp | 40 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in makeProgramWithAttribCount() local 42 strstr << "attribute float a" << attribIndex << ";" << std::endl; in makeProgramWithAttribCount() 47 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in makeProgramWithAttribCount() local 49 strstr << " v += a" << attribIndex << ";" << std::endl; in makeProgramWithAttribCount() 101 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in TEST_P() local 104 attribNameStr << "a" << attribIndex; in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3D11InputLayoutCacheTest.cpp | 40 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in makeProgramWithAttribCount() local 42 strstr << "attribute float a" << attribIndex << ";" << std::endl; in makeProgramWithAttribCount() 47 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in makeProgramWithAttribCount() local 49 strstr << " v += a" << attribIndex << ";" << std::endl; in makeProgramWithAttribCount() 101 for (unsigned int attribIndex = 0; attribIndex < attribCount; ++attribIndex) in TEST_P() local 104 attribNameStr << "a" << attribIndex; in TEST_P()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | VertexArrayVk.cpp | 238 size_t attribIndex, in convertVertexBufferGPU() argument 284 size_t attribIndex, in convertVertexBufferCPU() argument 309 &mCurrentArrayBuffers[attribIndex], in convertVertexBufferCPU() 381 for (size_t attribIndex : bindings[INDEX].getBoundAttributesMask()) \ in syncState() 384 syncDirtyAttrib(contextVk, attribs[attribIndex], bindings[INDEX], attribIndex)); \ in syncState() 412 ANGLE_INLINE void VertexArrayVk::setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex) in setDefaultPackedInput() argument 416 glState.getVertexAttribCurrentValues()[attribIndex]; in setDefaultPackedInput() 420 contextVk->onVertexAttributeChange(attribIndex, 0, 0, format, 0); in setDefaultPackedInput() 426 size_t attribIndex) in syncDirtyAttrib() argument 455 ANGLE_TRY(convertVertexBufferGPU(contextVk, bufferVk, binding, attribIndex, in syncDirtyAttrib() [all …]
|
D | VertexArrayVk.h | 36 size_t attribIndex, 91 void setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex); 96 size_t attribIndex, 103 size_t attribIndex, 111 size_t attribIndex);
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | VertexArrayGL.cpp | 53 bool IsVertexAttribPointerSupported(size_t attribIndex, const VertexAttribute &attrib) in IsVertexAttribPointerSupported() argument 55 return (attribIndex == attrib.bindingIndex && attrib.relativeOffset == 0); in IsVertexAttribPointerSupported() 220 for (auto attribIndex : candidateAttributesMask) in syncDrawState() local 223 if (mForcedStreamingAttributesFirstOffsets[attribIndex] != first) in syncDrawState() 225 updatedStreamingAttribsMask.set(attribIndex); in syncDrawState() 226 mForcedStreamingAttributesForDrawArraysInstancedMask.set(attribIndex); in syncDrawState() 227 mForcedStreamingAttributesFirstOffsets[attribIndex] = first; in syncDrawState() 622 angle::Result VertexArrayGL::updateAttribEnabled(const gl::Context *context, size_t attribIndex) in updateAttribEnabled() argument 624 const bool enabled = mState.getVertexAttribute(attribIndex).enabled && in updateAttribEnabled() 625 mProgramActiveAttribLocationsMask.test(attribIndex); in updateAttribEnabled() [all …]
|
D | VertexArrayGL.h | 101 size_t attribIndex, 107 angle::Result updateAttribEnabled(const gl::Context *context, size_t attribIndex); 108 angle::Result updateAttribPointer(const gl::Context *context, size_t attribIndex); 112 angle::Result updateAttribFormat(const gl::Context *context, size_t attribIndex); 113 angle::Result updateAttribBinding(const gl::Context *context, size_t attribIndex); 120 GLuint attribIndex,
|
D | ContextGL.cpp | 369 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; attribIndex++) in updateAttributesForBaseInstance() local 371 const gl::VertexAttribute &attrib = attribs[attribIndex]; in updateAttributesForBaseInstance() 373 if (executable->isAttribLocationActive(attribIndex) && binding.getDivisor() != 0) in updateAttributesForBaseInstance() 375 attribToUpdateMask.set(attribIndex); in updateAttributesForBaseInstance() 388 functions->vertexAttribIPointer(attribIndex, attrib.format->channelCount, in updateAttributesForBaseInstance() 394 functions->vertexAttribPointer(attribIndex, attrib.format->channelCount, in updateAttributesForBaseInstance() 409 for (size_t attribIndex : attribMask) in resetUpdatedAttributes() local 412 mState.getVertexArray()->getVertexAttributes()[attribIndex]; in resetUpdatedAttributes() 420 functions->vertexAttribIPointer(static_cast<GLuint>(attribIndex), in resetUpdatedAttributes() 428 static_cast<GLuint>(attribIndex), attrib.format->channelCount, in resetUpdatedAttributes()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | VertexArrayMtl.mm | 523 for (size_t attribIndex : clientAttribs) 525 const gl::VertexAttribute &attrib = attribs[attribIndex]; 558 mCurrentArrayBuffers[attribIndex] = nullptr; 559 mCurrentArrayInlineDataPointers[attribIndex] = src; 560 mCurrentArrayInlineDataSizes[attribIndex] = bytesIntendedToUse; 561 mCurrentArrayBufferOffsets[attribIndex] = 0; 562 mCurrentArrayBufferFormats[attribIndex] = &format; 563 mCurrentArrayBufferStrides[attribIndex] = binding.getStride(); 579 mCurrentArrayBufferFormats[attribIndex] = &streamFormat; 580 mCurrentArrayBufferStrides[attribIndex] = convertedStride; [all …]
|
D | VertexArrayMtl.h | 80 size_t attribIndex); 104 size_t attribIndex, 110 size_t attribIndex, 118 size_t attribIndex,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | InputLayoutCache.cpp | 152 for (size_t attribIndex : state.getProgramExecutable()->getActiveAttribLocationsMask()) in getInputLayout() local 156 GLenum glslElementType = GetGLSLAttributeType(shaderAttributes, attribIndex); in getInputLayout() 158 const auto &attrib = attribs[attribIndex]; in getInputLayout() 160 int d3dSemantic = locationToSemantic[attribIndex]; in getInputLayout() 163 state.getVertexAttribCurrentValue(static_cast<unsigned int>(attribIndex)); in getInputLayout() 212 for (size_t attribIndex = 0; attribIndex < currentAttributes.size(); ++attribIndex) in createInputLayout() local 214 const auto &attrib = *currentAttributes[attribIndex]; in createInputLayout() 215 const int sortedIndex = sortedSemanticIndices[attribIndex]; in createInputLayout() 229 inputElement->InputSlot = static_cast<UINT>(attribIndex); in createInputLayout()
|
D | VertexArray11.cpp | 110 for (size_t attribIndex : attributesToUpdate) in syncState() local 112 updateVertexAttribStorage(context, stateManager, attribIndex); in syncState() 217 size_t attribIndex) in updateVertexAttribStorage() argument 219 const gl::VertexAttribute &attrib = mState.getVertexAttribute(attribIndex); in updateVertexAttribStorage() 220 const gl::VertexBinding &binding = mState.getBindingFromAttribIndex(attribIndex); in updateVertexAttribStorage() 225 mAttribsToTranslate.set(attribIndex, newStorageType != VertexStorageType::DYNAMIC); in updateVertexAttribStorage() 227 if (mAttributeStorageTypes[attribIndex] == newStorageType) in updateVertexAttribStorage() 230 mAttributeStorageTypes[attribIndex] = newStorageType; in updateVertexAttribStorage() 231 mDynamicAttribsMask.set(attribIndex, newStorageType == VertexStorageType::DYNAMIC); in updateVertexAttribStorage() 235 stateManager->invalidateCurrentValueAttrib(attribIndex); in updateVertexAttribStorage()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | InputLayoutCache.cpp | 152 for (size_t attribIndex : program->getActiveAttribLocationsMask()) in getInputLayout() local 156 GLenum glslElementType = GetGLSLAttributeType(shaderAttributes, attribIndex); in getInputLayout() 158 const auto &attrib = attribs[attribIndex]; in getInputLayout() 160 int d3dSemantic = locationToSemantic[attribIndex]; in getInputLayout() 163 state.getVertexAttribCurrentValue(static_cast<unsigned int>(attribIndex)); in getInputLayout() 212 for (size_t attribIndex = 0; attribIndex < currentAttributes.size(); ++attribIndex) in createInputLayout() local 214 const auto &attrib = *currentAttributes[attribIndex]; in createInputLayout() 215 const int sortedIndex = sortedSemanticIndices[attribIndex]; in createInputLayout() 229 inputElement->InputSlot = static_cast<UINT>(attribIndex); in createInputLayout()
|
D | VertexArray11.cpp | 110 for (size_t attribIndex : attributesToUpdate) in syncState() local 112 updateVertexAttribStorage(context, stateManager, attribIndex); in syncState() 214 size_t attribIndex) in updateVertexAttribStorage() argument 216 const gl::VertexAttribute &attrib = mState.getVertexAttribute(attribIndex); in updateVertexAttribStorage() 217 const gl::VertexBinding &binding = mState.getBindingFromAttribIndex(attribIndex); in updateVertexAttribStorage() 222 mAttribsToTranslate.set(attribIndex, newStorageType != VertexStorageType::DYNAMIC); in updateVertexAttribStorage() 224 if (mAttributeStorageTypes[attribIndex] == newStorageType) in updateVertexAttribStorage() 227 mAttributeStorageTypes[attribIndex] = newStorageType; in updateVertexAttribStorage() 228 mDynamicAttribsMask.set(attribIndex, newStorageType == VertexStorageType::DYNAMIC); in updateVertexAttribStorage() 232 stateManager->invalidateCurrentValueAttrib(attribIndex); in updateVertexAttribStorage()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | VertexDataManager.cpp | 261 for (size_t attribIndex = 0; attribIndex < vertexAttributes.size(); ++attribIndex) in prepareVertexData() local 264 if (!program->isAttribLocationActive(attribIndex)) in prepareVertexData() 267 const auto &attrib = vertexAttributes[attribIndex]; in prepareVertexData() 271 translatedAttribs->resize(attribIndex + 1); in prepareVertexData() 273 TranslatedAttribute *translated = &(*translatedAttribs)[attribIndex]; in prepareVertexData() 274 auto currentValueData = state.getVertexAttribCurrentValue(attribIndex); in prepareVertexData() 293 mDynamicAttribsMaskCache.set(attribIndex); in prepareVertexData() 301 ANGLE_TRY(storeCurrentValue(context, currentValueData, translated, attribIndex)); in prepareVertexData() 442 for (auto attribIndex : dynamicAttribsMask) in storeDynamicAttribs() local 444 const auto &dynamicAttrib = (*translatedAttribs)[attribIndex]; in storeDynamicAttribs() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | VertexDataManager.cpp | 259 for (size_t attribIndex = 0; attribIndex < vertexAttributes.size(); ++attribIndex) in prepareVertexData() local 262 if (!executable->isAttribLocationActive(attribIndex)) in prepareVertexData() 265 const auto &attrib = vertexAttributes[attribIndex]; in prepareVertexData() 269 translatedAttribs->resize(attribIndex + 1); in prepareVertexData() 271 TranslatedAttribute *translated = &(*translatedAttribs)[attribIndex]; in prepareVertexData() 272 auto currentValueData = state.getVertexAttribCurrentValue(attribIndex); in prepareVertexData() 291 mDynamicAttribsMaskCache.set(attribIndex); in prepareVertexData() 299 ANGLE_TRY(storeCurrentValue(context, currentValueData, translated, attribIndex)); in prepareVertexData() 442 for (auto attribIndex : dynamicAttribsMask) in storeDynamicAttribs() local 444 const auto &dynamicAttrib = (*translatedAttribs)[attribIndex]; in storeDynamicAttribs() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | varray.h | 116 gl_vert_attrib attribIndex, 411 _mesa_VertexAttribFormat(GLuint attribIndex, GLint size, GLenum type, 415 _mesa_VertexArrayAttribFormat(GLuint vaobj, GLuint attribIndex, GLint size, 420 _mesa_VertexArrayVertexAttribFormatEXT(GLuint vaobj, GLuint attribIndex, GLint size, 425 _mesa_VertexAttribIFormat(GLuint attribIndex, GLint size, GLenum type, 429 _mesa_VertexArrayAttribIFormat(GLuint vaobj, GLuint attribIndex, 434 _mesa_VertexArrayVertexAttribIFormatEXT(GLuint vaobj, GLuint attribIndex, 439 _mesa_VertexAttribLFormat(GLuint attribIndex, GLint size, GLenum type, 443 _mesa_VertexArrayAttribLFormat(GLuint vaobj, GLuint attribIndex, 448 _mesa_VertexArrayVertexAttribLFormatEXT(GLuint vaobj, GLuint attribIndex, [all …]
|
D | varray.c | 163 gl_vert_attrib attribIndex, in _mesa_vertex_attrib_binding() argument 166 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex]; in _mesa_vertex_attrib_binding() 170 const GLbitfield array_bit = VERT_BIT(attribIndex); in _mesa_vertex_attrib_binding() 3347 vertex_attrib_format(GLuint attribIndex, GLint size, GLenum type, in vertex_attrib_format() argument 3384 if (attribIndex >= ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs) { in vertex_attrib_format() 3388 func, attribIndex); in vertex_attrib_format() 3393 VERT_ATTRIB_GENERIC(attribIndex), in vertex_attrib_format() 3402 VERT_ATTRIB_GENERIC(attribIndex), size, type, in vertex_attrib_format() 3409 _mesa_VertexAttribFormat(GLuint attribIndex, GLint size, GLenum type, in _mesa_VertexAttribFormat() argument 3412 vertex_attrib_format(attribIndex, size, type, normalized, in _mesa_VertexAttribFormat() [all …]
|