Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/angle2/src/libANGLE/
DVertexArray.cpp61 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 …]
DVertexArray.h50 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/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp285 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 …]
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,
DContextVk.h378 angle::Result onVertexAttributeChange(size_t attribIndex,
386 void invalidateDefaultAttribute(size_t attribIndex);
840 angle::Result updateDefaultAttribute(size_t attribIndex);
1259 ANGLE_INLINE angle::Result ContextVk::onVertexAttributeChange(size_t attribIndex, in onVertexAttributeChange() argument
1270 &mGraphicsPipelineTransition, static_cast<uint32_t>(attribIndex), stride, in onVertexAttributeChange()
/third_party/skia/third_party/externals/angle2/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.cpp312 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in compileMultiAttribProgram() local
314 shaderStream << "attribute float a" << attribIndex << ";" << std::endl; in compileMultiAttribProgram()
320 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in compileMultiAttribProgram() local
322 shaderStream << " color += a" << attribIndex << ";" << std::endl; in compileMultiAttribProgram()
339 for (GLint attribIndex = 0; attribIndex < attribCount; ++attribIndex) in setupMultiAttribs() local
342 attribStream << "a" << attribIndex; in setupMultiAttribs()
/third_party/skia/third_party/externals/angle2/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()
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 …]
DVertexArrayGL.h101 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,
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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DVertexArrayMtl.mm523 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 …]
DVertexArrayMtl.h80 size_t attribIndex);
104 size_t attribIndex,
110 size_t attribIndex,
118 size_t attribIndex,
DContextMtl.h274 void invalidateDefaultAttribute(size_t attribIndex);
457 angle::Result updateDefaultAttribute(size_t attribIndex);
/third_party/skia/third_party/externals/angle2/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.cpp1208 for (auto attribIndex : state.getAndResetDirtyCurrentValues()) in syncState() local
1210 invalidateCurrentValueAttrib(attribIndex); in syncState()
2069 void StateManager11::invalidateCurrentValueAttrib(size_t attribIndex) in invalidateCurrentValueAttrib() argument
2071 mDirtyCurrentValueAttribs.set(attribIndex); in invalidateCurrentValueAttrib()
2094 for (auto attribIndex : dirtyActiveAttribs) in syncCurrentValueAttribs() local
2096 if (vertexAttributes[attribIndex].enabled) in syncCurrentValueAttribs()
2099 const auto *attrib = &vertexAttributes[attribIndex]; in syncCurrentValueAttribs()
2100 const auto &currentValue = currentValues[attribIndex]; in syncCurrentValueAttribs()
2101 TranslatedAttribute *currentValueAttrib = &mCurrentValueAttribs[attribIndex]; in syncCurrentValueAttribs()
2106 mDirtyVertexBufferRange.extend(static_cast<unsigned int>(attribIndex)); in syncCurrentValueAttribs()
[all …]
DVertexArray11.h66 size_t attribIndex);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DVertexDataManager.cpp259 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 …]
DVertexDataManager.h126 size_t attribIndex);
/third_party/mesa3d/src/mesa/main/
Dvarray.c164 gl_vert_attrib attribIndex, in _mesa_vertex_attrib_binding() argument
167 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex]; in _mesa_vertex_attrib_binding()
171 const GLbitfield array_bit = VERT_BIT(attribIndex); in _mesa_vertex_attrib_binding()
3373 vertex_attrib_format(GLuint attribIndex, GLint size, GLenum type, in vertex_attrib_format() argument
3410 if (attribIndex >= ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs) { in vertex_attrib_format()
3414 func, attribIndex); in vertex_attrib_format()
3419 VERT_ATTRIB_GENERIC(attribIndex), in vertex_attrib_format()
3428 VERT_ATTRIB_GENERIC(attribIndex), size, type, in vertex_attrib_format()
3435 _mesa_VertexAttribFormat(GLuint attribIndex, GLint size, GLenum type, in _mesa_VertexAttribFormat() argument
3438 vertex_attrib_format(attribIndex, size, type, normalized, in _mesa_VertexAttribFormat()
[all …]
Dvarray.h116 gl_vert_attrib attribIndex,
/third_party/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()
/third_party/skia/src/gpu/gl/
DGrGLVertexArray.h41 int attribIndex,
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
DFrameCapture.cpp1932 GLuint attribIndex, in CaptureVertexPointerES1() argument
1936 switch (gl::GLES1Renderer::VertexArrayType(attribIndex)) in CaptureVertexPointerES1()
1992 for (GLuint attribIndex = 0; attribIndex < gl::MAX_VERTEX_ATTRIBS; ++attribIndex) in CaptureVertexArrayState() local
1994 const gl::VertexAttribute defaultAttrib(attribIndex); in CaptureVertexArrayState()
1997 const gl::VertexAttribute &attrib = vertexAttribs[attribIndex]; in CaptureVertexArrayState()
2006 gl::GLES1Renderer::VertexArrayType(attribIndex))); in CaptureVertexArrayState()
2011 CaptureEnableVertexAttribArray(*replayState, false, attribIndex)); in CaptureVertexArrayState()
2038 vertexPointerBindings.set(attribIndex); in CaptureVertexArrayState()
2040 CaptureVertexPointerES1(setupCalls, replayState, attribIndex, attrib, binding); in CaptureVertexArrayState()
2042 else if (attrib.bindingIndex == attribIndex && in CaptureVertexArrayState()
[all …]
Dframe_capture_utils.cpp1271 for (size_t attribIndex = 0; attribIndex < vertexAttributes.size(); ++attribIndex) in SerializeVertexAttributeVector() local
1273 GroupScope group(json, "VertexAttribute", static_cast<int>(attribIndex)); in SerializeVertexAttributeVector()
1274 const gl::VertexAttribute &vertexAttribute = vertexAttributes[attribIndex]; in SerializeVertexAttributeVector()

12