Home
last modified time | relevance | path

Searched refs:attribIndex (Results 1 – 25 of 42) 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 mEnabledAttributesMask.set(attribIndex, attrib.enabled); in setAttribBinding()
94 updateCachedMutableOrNonPersistentArrayBuffers(attribIndex); in setAttribBinding()
[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);
187 const VertexAttribute &getVertexAttribute(size_t attribIndex) const;
188 const VertexBinding &getBindingFromAttribIndex(size_t attribIndex) const in getBindingFromAttribIndex() argument
190 return mState.getBindingFromAttribIndex(attribIndex); in getBindingFromAttribIndex()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp293 for (size_t attribIndex : activeAttribs) in handleLineLoopIndirectDraw() local
295 const gl::VertexAttribute &attrib = attribs[attribIndex]; in handleLineLoopIndirectDraw()
297 VkDeviceSize bufSize = this->getCurrentArrayBuffers()[attribIndex]->getSize(); in handleLineLoopIndirectDraw()
379 size_t attribIndex, in convertVertexBufferGPU() argument
429 size_t attribIndex, in convertVertexBufferCPU() argument
456 &mCurrentArrayBuffers[attribIndex], &conversion->lastAllocationOffset, 1)); in convertVertexBufferCPU()
522 for (size_t attribIndex : bindings[INDEX].getBoundAttributesMask()) \ in syncState()
524 ANGLE_TRY(syncDirtyAttrib(contextVk, attribs[attribIndex], bindings[INDEX], \ in syncState()
525 attribIndex, false)); \ in syncState()
554 size_t attribIndex) in setDefaultPackedInput() argument
[all …]
DVertexArrayVk.h38 size_t attribIndex,
113 angle::Result setDefaultPackedInput(ContextVk *contextVk, size_t attribIndex);
118 size_t attribIndex,
126 size_t attribIndex,
135 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()
/external/angle/src/libANGLE/renderer/gl/
DVertexArrayGL.cpp53 bool IsVertexAttribPointerSupported(size_t attribIndex, const VertexAttribute &attrib) in IsVertexAttribPointerSupported() argument
55 return (attribIndex == attrib.bindingIndex && attrib.relativeOffset == 0); in IsVertexAttribPointerSupported()
210 for (auto attribIndex : candidateAttributesMask) in syncDrawState() local
213 if (mForcedStreamingAttributesFirstOffsets[attribIndex] != first) in syncDrawState()
215 updatedStreamingAttribsMask.set(attribIndex); in syncDrawState()
216 mForcedStreamingAttributesForDrawArraysInstancedMask.set(attribIndex); in syncDrawState()
217 mForcedStreamingAttributesFirstOffsets[attribIndex] = first; in syncDrawState()
608 void VertexArrayGL::updateAttribEnabled(const gl::Context *context, size_t attribIndex) in updateAttribEnabled() argument
610 const bool enabled = mState.getVertexAttribute(attribIndex).enabled & in updateAttribEnabled()
611 mProgramActiveAttribLocationsMask.test(attribIndex); in updateAttribEnabled()
[all …]
DVertexArrayGL.h100 size_t attribIndex,
106 void updateAttribEnabled(const gl::Context *context, size_t attribIndex);
107 void updateAttribPointer(const gl::Context *context, size_t attribIndex);
111 void updateAttribFormat(const gl::Context *context, size_t attribIndex);
112 void updateAttribBinding(const gl::Context *context, size_t attribIndex);
119 GLuint attribIndex,
DContextGL.cpp369 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()
/external/angle/src/libANGLE/renderer/metal/
DVertexArrayMtl.mm503 for (size_t attribIndex : clientAttribs)
505 const gl::VertexAttribute &attrib = attribs[attribIndex];
538 mCurrentArrayBuffers[attribIndex] = nullptr;
539 mCurrentArrayInlineDataPointers[attribIndex] = src;
540 mCurrentArrayInlineDataSizes[attribIndex] = bytesIntendedToUse;
541 mCurrentArrayBufferOffsets[attribIndex] = 0;
542 mCurrentArrayBufferFormats[attribIndex] = &format;
543 mCurrentArrayBufferStrides[attribIndex] = binding.getStride();
559 mCurrentArrayBufferFormats[attribIndex] = &streamFormat;
560 mCurrentArrayBufferStrides[attribIndex] = convertedStride;
[all …]
DVertexArrayMtl.h73 size_t attribIndex);
99 size_t attribIndex,
105 size_t attribIndex,
113 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()
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()
DStateManager11.cpp1199 for (auto attribIndex : state.getAndResetDirtyCurrentValues()) in syncState() local
1201 invalidateCurrentValueAttrib(attribIndex); in syncState()
2039 void StateManager11::invalidateCurrentValueAttrib(size_t attribIndex) in invalidateCurrentValueAttrib() argument
2041 mDirtyCurrentValueAttribs.set(attribIndex); in invalidateCurrentValueAttrib()
2064 for (auto attribIndex : dirtyActiveAttribs) in syncCurrentValueAttribs() local
2066 if (vertexAttributes[attribIndex].enabled) in syncCurrentValueAttribs()
2069 const auto *attrib = &vertexAttributes[attribIndex]; in syncCurrentValueAttribs()
2070 const auto &currentValue = currentValues[attribIndex]; in syncCurrentValueAttribs()
2071 TranslatedAttribute *currentValueAttrib = &mCurrentValueAttribs[attribIndex]; in syncCurrentValueAttribs()
2076 mDirtyVertexBufferRange.extend(static_cast<unsigned int>(attribIndex)); in syncCurrentValueAttribs()
[all …]
DVertexArray11.h66 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()
444 for (auto attribIndex : dynamicAttribsMask) in storeDynamicAttribs() local
446 const auto &dynamicAttrib = (*translatedAttribs)[attribIndex]; in storeDynamicAttribs()
[all …]
DVertexDataManager.h126 size_t attribIndex);
/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()
116 VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; in setup_vertex_input_state()
117 vkAttrib.location = attribIndex++; // for now assume location = attribIndex in setup_vertex_input_state()
/external/skqp/src/gpu/gl/
DGrGLVertexArray.h41 int attribIndex,
/external/skia/src/gpu/gl/
DGrGLVertexArray.h41 int attribIndex,
/external/angle/src/libANGLE/capture/
DFrameCapture.cpp1913 GLuint attribIndex, in CaptureVertexPointerES1() argument
1917 switch (gl::GLES1Renderer::VertexArrayType(attribIndex)) in CaptureVertexPointerES1()
1959 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; ++attribIndex) in CaptureVertexArrayData() local
1961 const gl::VertexAttribute defaultAttrib(attribIndex); in CaptureVertexArrayData()
1964 const gl::VertexAttribute &attrib = vertexAttribs[attribIndex]; in CaptureVertexArrayData()
1973 gl::GLES1Renderer::VertexArrayType(attribIndex))); in CaptureVertexArrayData()
1978 CaptureEnableVertexAttribArray(*replayState, false, attribIndex)); in CaptureVertexArrayData()
1999 CaptureVertexPointerES1(setupCalls, replayState, attribIndex, attrib, binding); in CaptureVertexArrayData()
2005 *replayState, true, attribIndex, attrib.format->channelCount, in CaptureVertexArrayData()
2013 Capture(setupCalls, CaptureVertexAttribDivisor(*replayState, true, attribIndex, in CaptureVertexArrayData()
[all …]

12