Home
last modified time | relevance | path

Searched refs:attributeIndex (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DVertexArray.cpp49 const VertexAttribute& VertexArray::getVertexAttribute(size_t attributeIndex) const in getVertexAttribute()
51 ASSERT(attributeIndex < MAX_VERTEX_ATTRIBS); in getVertexAttribute()
52 return mVertexAttributes[attributeIndex]; in getVertexAttribute()
61 void VertexArray::enableAttribute(unsigned int attributeIndex, bool enabledState) in enableAttribute() argument
63 ASSERT(attributeIndex < MAX_VERTEX_ATTRIBS); in enableAttribute()
64 mVertexAttributes[attributeIndex].mArrayEnabled = enabledState; in enableAttribute()
67 void VertexArray::setAttributeState(unsigned int attributeIndex, Buffer *boundBuffer, GLint size, G… in setAttributeState() argument
70 ASSERT(attributeIndex < MAX_VERTEX_ATTRIBS); in setAttributeState()
71 mVertexAttributes[attributeIndex].mBoundBuffer = boundBuffer; in setAttributeState()
72 mVertexAttributes[attributeIndex].mSize = size; in setAttributeState()
[all …]
DVertexArray.h34 const VertexAttribute& getVertexAttribute(size_t attributeIndex) const;
39 void enableAttribute(unsigned int attributeIndex, bool enabledState);
40 void setAttributeState(unsigned int attributeIndex, Buffer *boundBuffer, GLint size, GLenum type,
DProgram.h137 int getAttributeStream(int attributeIndex);
DProgram.cpp283 int Program::getAttributeStream(int attributeIndex) in getAttributeStream() argument
285 ASSERT(attributeIndex >= 0 && attributeIndex < MAX_VERTEX_ATTRIBS); in getAttributeStream()
287 return attributeStream[attributeIndex]; in getAttributeStream()
DContext.cpp1503 for(int attributeIndex = 0; attributeIndex < MAX_VERTEX_ATTRIBS; attributeIndex++) in hasZeroDivisor() local
1505 bool active = (programObject->getAttributeStream(attributeIndex) != -1); in hasZeroDivisor()
1506 if(active && getCurrentVertexArray()->getVertexAttribute(attributeIndex).mDivisor == 0) in hasZeroDivisor()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm196 int attributeIndex = 0;
204 MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
217 attributeIndex++;
238 MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
251 attributeIndex++;
418 int attributeIndex = 0;
423 … MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
427 ++attributeIndex;
440 … MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
444 ++attributeIndex;
/third_party/skia/experimental/graphite/src/mtl/
DMtlGraphicsPipeline.mm218 int attributeIndex = 0;
223 MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
231 attributeIndex++;
246 MTLVertexAttributeDescriptor* mtlAttribute = vertexDescriptor.attributes[attributeIndex];
254 attributeIndex++;
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
DvktRobustnessVertexAccessTests.cpp819 const deUint32 attributeIndex = (valueNdx / numChannels) % 3; in verifyResult() local
826 if (attributeIndex == 2) in verifyResult()
849 if ((attributeIndex == 0) && (numInBufferValues >= numChannels)) in verifyResult()
875 logMsg << "\tfrom attr" << attributeIndex; in verifyResult()
880 if (attributeIndex == 2) in verifyResult()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DDynamicHLSL.cpp179 for (size_t attributeIndex = 0; attributeIndex < shaderAttributes.size(); ++attributeIndex) in generateVertexShaderForInputLayout() local
181 const sh::ShaderVariable &shaderAttribute = shaderAttributes[attributeIndex]; in generateVertexShaderForInputLayout()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmFloatControlsTests.cpp3737 deUint32 attributeIndex = 0; in fillShaderSpec() local
3759 attribute = to_string(attributeIndex); in fillShaderSpec()
3762 "OpDecorate %ssbo_f64_out Binding " + to_string(attributeIndex+1) + "\n"; in fillShaderSpec()
3770 attributeIndex++; in fillShaderSpec()
3783 attribute = to_string(attributeIndex); in fillShaderSpec()
3786 "OpDecorate %ssbo_f32_out Binding " + to_string(attributeIndex+1) + "\n"; in fillShaderSpec()
3794 attributeIndex++; in fillShaderSpec()
3808 attribute = to_string(attributeIndex); in fillShaderSpec()
3811 "OpDecorate %ssbo_u32_out Binding " + to_string(attributeIndex+1) + "\n"; in fillShaderSpec()
3828 attribute = to_string(attributeIndex); in fillShaderSpec()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DEmitMetal.cpp1098 size_t attributeIndex = 0; in BuildExternalAttributeIndexMap() local
1113 ++attributeIndex; // TODO: Might need to increment more if shader var type is a matrix. in BuildExternalAttributeIndexMap()
1124 externalNameToAttributeIndex[externalName] = attributeIndex; in BuildExternalAttributeIndexMap()
1127 ++attributeIndex; in BuildExternalAttributeIndexMap()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineVertexInputTests.cpp215 …slAttributeConditions (const AttributeInfo& attributeInfo, const std::string attributeIndex) const;
761 …lslAttributeConditions (const AttributeInfo& attributeInfo, const std::string attributeIndex) const in getGlslAttributeConditions()
769 const std::string indexStr = m_queryMaxAttributes ? "[" + attributeIndex + "]" : attributeIndex; in getGlslAttributeConditions()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DvalidationES.cpp887 for (size_t attributeIndex = 0; attributeIndex < MAX_VERTEX_ATTRIBS; attributeIndex++) in ValidateDrawInstancedANGLE() local
889 const VertexAttribute &attrib = attribs[attributeIndex]; in ValidateDrawInstancedANGLE()
891 if (executable->isAttribLocationActive(attributeIndex) && binding.getDivisor() == 0) in ValidateDrawInstancedANGLE()
DContext.cpp9387 for (size_t attributeIndex : mCachedActiveBufferedAttribsMask) in updateVertexElementLimitsImpl() local
9389 const VertexAttribute &attrib = vertexAttribs[attributeIndex]; in updateVertexElementLimitsImpl()
9393 context->getState().getProgramExecutable()->isAttribLocationActive(attributeIndex)); in updateVertexElementLimitsImpl()