Home
last modified time | relevance | path

Searched refs:attribIndex (Results 1 – 25 of 40) sorted by relevance

12

/external/angle/src/libANGLE/
DVertexArray.cpp63 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 …]
DVertexArray.h48 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);
175 const VertexAttribute &getVertexAttribute(size_t attribIndex) const;
176 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument
178 return mState.getBindingFromAttribIndex(attribIndex); in getBindingFromAttribIndex()
[all …]
DFrameCapture.cpp1570 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; ++attribIndex) in CaptureVertexArrayData() local
1572 const gl::VertexAttribute defaultAttrib(attribIndex); in CaptureVertexArrayData()
1575 const gl::VertexAttribute &attrib = vertexAttribs[attribIndex]; in CaptureVertexArrayData()
1580 Capture(setupCalls, CaptureEnableVertexAttribArray(*replayState, false, attribIndex)); in CaptureVertexArrayData()
1597 *replayState, true, attribIndex, attrib.format->channelCount, in CaptureVertexArrayData()
1604 Capture(setupCalls, CaptureVertexAttribDivisor(*replayState, true, attribIndex, in CaptureVertexArrayData()
1804 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; ++attribIndex) in CaptureMidExecutionSetup() local
1806 const gl::VertexAttribCurrentValueData &defaultValue = currentValues[attribIndex]; in CaptureMidExecutionSetup()
1809 Capture(setupCalls, CaptureVertexAttrib4fv(replayState, true, attribIndex, in CaptureMidExecutionSetup()
3443 for (size_t attribIndex : context->getStateCache().getActiveClientAttribsMask()) in captureClientArraySnapshot() local
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp269 for (size_t attribIndex : activeAttribs) in handleLineLoopIndirectDraw() local
271 const gl::VertexAttribute &attrib = attribs[attribIndex]; in handleLineLoopIndirectDraw()
273 VkDeviceSize bufSize = this->getCurrentArrayBuffers()[attribIndex]->getSize(); in handleLineLoopIndirectDraw()
355 size_t attribIndex, in convertVertexBufferGPU() argument
401 size_t attribIndex, in convertVertexBufferCPU() argument
426 vertexFormat.vertexLoadFunction, &mCurrentArrayBuffers[attribIndex], in convertVertexBufferCPU()
495 for (size_t attribIndex : bindings[INDEX].getBoundAttributesMask()) \ in syncState()
497 ANGLE_TRY(syncDirtyAttrib(contextVk, attribs[attribIndex], bindings[INDEX], \ in syncState()
498 attribIndex, false)); \ in syncState()
526 ANGLE_INLINE void VertexArrayVk::setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex) in setDefaultPackedInput() argument
[all …]
DVertexArrayVk.h38 size_t attribIndex,
118 void setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex);
123 size_t attribIndex,
130 size_t attribIndex,
138 size_t attribIndex,
/external/angle/src/tests/gl_tests/
DD3D11InputLayoutCacheTest.cpp40 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()
DVertexAttributeTest.cpp327 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in compileMultiAttribProgram() local
329 shaderStream << "attribute float a" << attribIndex << ";" << std::endl; in compileMultiAttribProgram()
335 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in compileMultiAttribProgram() local
337 shaderStream << " color += a" << attribIndex << ";" << std::endl; in compileMultiAttribProgram()
354 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in setupMultiAttribs() local
357 attribStream << "a" << attribIndex; in setupMultiAttribs()
/external/angle/src/libANGLE/renderer/gl/
DVertexArrayGL.cpp42 bool IsVertexAttribPointerSupported(size_t attribIndex, const VertexAttribute &attrib) in IsVertexAttribPointerSupported() argument
44 return (attribIndex == attrib.bindingIndex && attrib.relativeOffset == 0); in IsVertexAttribPointerSupported()
442 void VertexArrayGL::updateAttribEnabled(size_t attribIndex) in updateAttribEnabled() argument
444 const bool enabled = mState.getVertexAttribute(attribIndex).enabled & in updateAttribEnabled()
445 mProgramActiveAttribLocationsMask.test(attribIndex); in updateAttribEnabled()
446 if (mAppliedAttributes[attribIndex].enabled == enabled) in updateAttribEnabled()
453 mFunctions->enableVertexAttribArray(static_cast<GLuint>(attribIndex)); in updateAttribEnabled()
457 mFunctions->disableVertexAttribArray(static_cast<GLuint>(attribIndex)); in updateAttribEnabled()
460 mAppliedAttributes[attribIndex].enabled = enabled; in updateAttribEnabled()
463 void VertexArrayGL::updateAttribPointer(const gl::Context *context, size_t attribIndex) in updateAttribPointer() argument
[all …]
DVertexArrayGL.h96 size_t attribIndex,
102 void updateAttribEnabled(size_t attribIndex);
103 void updateAttribPointer(const gl::Context *context, size_t attribIndex);
107 void updateAttribFormat(size_t attribIndex);
108 void updateAttribBinding(size_t attribIndex);
114 void callVertexAttribPointer(GLuint attribIndex,
DContextGL.cpp320 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; attribIndex++) in updateAttributesForBaseInstance() local
322 const gl::VertexAttribute &attrib = attribs[attribIndex]; in updateAttributesForBaseInstance()
324 if (executable->isAttribLocationActive(attribIndex) && binding.getDivisor() != 0) in updateAttributesForBaseInstance()
326 attribToUpdateMask.set(attribIndex); in updateAttributesForBaseInstance()
339 functions->vertexAttribIPointer(attribIndex, attrib.format->channelCount, in updateAttributesForBaseInstance()
345 functions->vertexAttribPointer(attribIndex, attrib.format->channelCount, in updateAttributesForBaseInstance()
360 for (size_t attribIndex : attribMask) in resetUpdatedAttributes() local
363 mState.getVertexArray()->getVertexAttributes()[attribIndex]; in resetUpdatedAttributes()
371 functions->vertexAttribIPointer(static_cast<GLuint>(attribIndex), in resetUpdatedAttributes()
379 static_cast<GLuint>(attribIndex), attrib.format->channelCount, in resetUpdatedAttributes()
/external/angle/src/libANGLE/renderer/metal/
DVertexArrayMtl.mm356 for (size_t attribIndex : clientAttribs)
358 const gl::VertexAttribute &attrib = attribs[attribIndex];
393 &mConvertedArrayBufferHolders[attribIndex], &mCurrentArrayBufferOffsets[attribIndex]));
395 mCurrentArrayBuffers[attribIndex] = &mConvertedArrayBufferHolders[attribIndex];
396 mCurrentArrayBufferFormats[attribIndex] = &vertexFormat;
397 mCurrentArrayBufferStrides[attribIndex] = stride;
408 size_t attribIndex)
411 ASSERT(mtl::kMaxVertexAttribs > attribIndex);
428 ANGLE_TRY(convertVertexBuffer(glContext, bufferMtl, binding, attribIndex, format));
432 mCurrentArrayBuffers[attribIndex] = bufferMtl;
[all …]
DVertexArrayMtl.h67 size_t attribIndex);
91 size_t attribIndex,
97 size_t attribIndex,
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DInputLayoutCache.cpp152 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()
DVertexArray11.cpp110 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()
DStateManager11.cpp1231 for (auto attribIndex : state.getAndResetDirtyCurrentValues()) in syncState() local
1233 invalidateCurrentValueAttrib(attribIndex); in syncState()
2044 void StateManager11::invalidateCurrentValueAttrib(size_t attribIndex) in invalidateCurrentValueAttrib() argument
2046 mDirtyCurrentValueAttribs.set(attribIndex); in invalidateCurrentValueAttrib()
2069 for (auto attribIndex : dirtyActiveAttribs) in syncCurrentValueAttribs() local
2071 if (vertexAttributes[attribIndex].enabled) in syncCurrentValueAttribs()
2074 const auto *attrib = &vertexAttributes[attribIndex]; in syncCurrentValueAttribs()
2075 const auto &currentValue = currentValues[attribIndex]; in syncCurrentValueAttribs()
2076 TranslatedAttribute *currentValueAttrib = &mCurrentValueAttribs[attribIndex]; in syncCurrentValueAttribs()
2081 mDirtyVertexBufferRange.extend(static_cast<unsigned int>(attribIndex)); in syncCurrentValueAttribs()
[all …]
DVertexArray11.h64 size_t attribIndex);
/external/angle/src/libANGLE/renderer/d3d/
DVertexDataManager.cpp261 for (size_t attribIndex = 0; attribIndex < vertexAttributes.size(); ++attribIndex) in prepareVertexData() local
264 if (!executable->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 …]
/external/mesa3d/src/mesa/main/
Dvarray.h116 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 …]
Dvarray.c163 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()
3331 vertex_attrib_format(GLuint attribIndex, GLint size, GLenum type, in vertex_attrib_format() argument
3368 if (attribIndex >= ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs) { in vertex_attrib_format()
3372 func, attribIndex); in vertex_attrib_format()
3377 VERT_ATTRIB_GENERIC(attribIndex), in vertex_attrib_format()
3386 VERT_ATTRIB_GENERIC(attribIndex), size, type, in vertex_attrib_format()
3393 _mesa_VertexAttribFormat(GLuint attribIndex, GLint size, GLenum type, in _mesa_VertexAttribFormat() argument
3396 vertex_attrib_format(attribIndex, size, type, normalized, in _mesa_VertexAttribFormat()
[all …]
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/serialization/
DAttributeContainer.java220 for (int attribIndex = 0; attribIndex < numAttributes; attribIndex++) { in attributesAreEqual()
221 AttributeInfo thisAttrib = (AttributeInfo) this.attributes.elementAt(attribIndex); in attributesAreEqual()
DSoapObject.java698 for (int attribIndex = 0; attribIndex < getAttributeCount(); attribIndex++) { in newInstance()
700 getAttributeInfo(attribIndex, newAI); in newInstance()
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp95 int attribIndex = 0; in setup_vertex_input_state() local
98 VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; in setup_vertex_input_state()
99 vkAttrib.location = attribIndex++; // for now assume location = attribIndex in setup_vertex_input_state()
110 VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; in setup_vertex_input_state()
111 vkAttrib.location = attribIndex++; // for now assume location = attribIndex in setup_vertex_input_state()
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp102 int attribIndex = 0; in setup_vertex_input_state() local
105 VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; in setup_vertex_input_state()
106 vkAttrib.location = attribIndex++; // for now assume location = attribIndex in setup_vertex_input_state()
117 VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; in setup_vertex_input_state()
118 vkAttrib.location = attribIndex++; // for now assume location = attribIndex in setup_vertex_input_state()
/external/skia/src/gpu/gl/
DGrGLVertexArray.h41 int attribIndex,
/external/skqp/src/gpu/gl/
DGrGLVertexArray.h41 int attribIndex,

12