Home
last modified time | relevance | path

Searched refs:attribNdx (Results 1 – 19 of 19) sorted by relevance

/external/deqp/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in logVertexArrayState() local
204 << "attribute : " << attribNdx << "\n" in logVertexArrayState()
205 …<< "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL… in logVertexArrayState()
206 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n" in logVertexArrayState()
207 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n" in logVertexArrayState()
208 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n" in logVertexArrayState()
209 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState()
210 …<< "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL… in logVertexArrayState()
211 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n" in logVertexArrayState()
212 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n" in logVertexArrayState()
[all …]
Des3fShaderMatrixTests.cpp1666 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init() local
1668 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
1669 …m_userAttribTransforms[attribNdx]( 0, 3) = 0.2f; // !< prevent matrix*vec fr… in init()
1670 m_userAttribTransforms[attribNdx]( 1, 3) = 0.1f; // !< in init()
1671 m_userAttribTransforms[attribNdx]( 2, 3) = 0.4f + 0.15f * attribNdx; // !< in init()
1672 m_userAttribTransforms[attribNdx]( 3, 3) = 0.7f; // !< in init()
1673 m_userAttribTransforms[attribNdx]((0 + attribNdx) % 4, 0) = 1.0f; in init()
1674 m_userAttribTransforms[attribNdx]((1 + attribNdx) % 4, 1) = 1.0f; in init()
1675 m_userAttribTransforms[attribNdx]((2 + attribNdx) % 4, 2) = 1.0f; in init()
1676 m_userAttribTransforms[attribNdx]((3 + attribNdx) % 4, 3) = 1.0f; in init()
[all …]
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp588 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderUnbatched() local
590 …on = gl.getAttribLocation(m_program->getProgram(), ("a_static" + de::toString(attribNdx)).c_str()); in renderUnbatched()
596 gl.bindBuffer(GL_ARRAY_BUFFER, m_unbatchedStaticBuffers[attribNdx]); in renderUnbatched()
601 … gl.vertexAttribPointer(location, 4, GL_BYTE, GL_TRUE, 0, &(m_staticAttributeDatas[attribNdx][0])); in renderUnbatched()
605 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderUnbatched() local
607 …GLint location = gl.getAttribLocation(m_program->getProgram(), ("a_dyn" + de::toString(attribNdx))… in renderUnbatched()
624 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderUnbatched() local
628 gl.bindBuffer(GL_ARRAY_BUFFER, m_unbatchedDynamicBuffers[attribNdx][drawNdx]); in renderUnbatched()
629 gl.vertexAttribPointer(dynamicAttributeLocations[attribNdx], 4, GL_BYTE, GL_TRUE, 0, NULL); in renderUnbatched()
633 …xAttribPointer(dynamicAttributeLocations[attribNdx], 4, GL_BYTE, GL_TRUE, 0, &(m_dynamicAttributeD… in renderUnbatched()
[all …]
Des2pShaderOperatorTests.cpp648 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in prepareProgram() local
651 generateVertices(vertices, m_gridSizeX, m_gridSizeY, attributes[attribNdx]); in prepareProgram()
653 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in prepareProgram()
659 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in prepareProgram() local
661 int location = gl.getAttribLocation(program.getProgram(), attributes[attribNdx].name.c_str()); in prepareProgram()
666 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in prepareProgram()
Des2pShaderCompilationCases.cpp1739 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++) in setShaderInputs() local
1741 int location = gl.getAttribLocation(program, progCtx.vertexAttributes[attribNdx].name.c_str()); in setShaderInputs()
1745 …gl.vertexAttribPointer(location, 4, GL_FLOAT, GL_FALSE, 0, progCtx.vertexAttributes[attribNdx].val… in setShaderInputs()
1798 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++) in cleanup() local
1800 … gl.getAttribLocation(shadersAndProgram.program, progCtx.vertexAttributes[attribNdx].name.c_str()); in cleanup()
/external/deqp/modules/glshared/
DglsShaderPerformanceMeasurer.cpp197 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++) in init() local
200 generateVertices(vertices, m_gridSizeX, m_gridSizeY, m_attributes[attribNdx]); in init()
202 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in init()
209 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++) in init() local
211 int location = gl.getAttribLocation(program, m_attributes[attribNdx].name.c_str()); in init()
216 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in init()
DglsShaderRenderCase.cpp167 const Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; } in getUserAttrib()
174 Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
229 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++) in QuadGrid() local
230 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
271 inline Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const in getUserAttrib() argument
274 return m_userAttribTransforms[attribNdx] * Vec4(sx, sy, 0.0f, 1.0f); in getUserAttrib()
326 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in reset() local
327 in[attribNdx] = quadGrid.getUserAttrib(attribNdx, sx, sy); in reset()
DglsFragOpInteractionCase.cpp313 for (int attribNdx = 0; attribNdx < vertexData.getNumEntries(); ++attribNdx) in setupAttributes() local
315 const glu::VertexArrayBinding bindingPtr = getEntryWithPointer(vertexData, attribNdx); in setupAttributes()
534 for (int attribNdx = 0; attribNdx < (int)m_vertexShader.getInputs().size(); ++attribNdx) in iterate() local
536 if (attribNdx == positionNdx) in iterate()
539 const rsg::ShaderInput* shaderIn = m_vertexShader.getInputs()[attribNdx]; in iterate()
543 const glu::VertexArrayBinding layoutEntry = getEntryWithPointer(vertexData, attribNdx); in iterate()
549 const int fNdx = (attribNdx+vtxNdx+m_iterNdx)%DE_LENGTH_OF_ARRAY(vtxInterpFactors); in iterate()
DglsAttributeLocationTests.cpp77 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in hasAttributeAliasing() local
79 const deInt32 location = getBoundLocation(bindings, attributes[attribNdx].getName()); in hasAttributeAliasing()
80 const deUint32 size = attributes[attribNdx].getType().getLocationSize(); in hasAttributeAliasing()
485 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in logAttributes() local
487 const Attribute& attrib = attributes[attribNdx]; in logAttributes()
531 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkActiveAttribQuery() local
533 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
579 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkActiveAttribQuery() local
581 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
606 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkAttribLocationQuery() local
[all …]
DglsRandomShaderProgram.cpp181 for (int attribNdx = 0; attribNdx < (int)m_vertexShader.getInputs().size(); ++attribNdx) in shadeVertices() local
183 const rsg::Variable* attribVar = m_vertexShader.getInputs()[attribNdx]->getVariable(); in shadeVertices()
194 …const tcu::Vec4 attribValue = rr::readVertexAttribFloat(inputs[attribNdx], packet->instanceNdx, … in shadeVertices()
DglsVertexArrayTests.hpp153 …virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType, …
165 virtual void setAttribNdx (int attribNdx) = 0;
175 …virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType…
188 virtual void setAttribNdx (int attribNdx) { m_attribNdx = attribNdx; } in setAttribNdx() argument
DglsVertexArrayTests.cpp532 void ContextArray::bind (int attribNdx, int offset, int size, InputType inputType, OutputType outTy… in bind() argument
534 m_attribNdx = attribNdx; in bind()
838 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) in shadeVertices() local
840 const int numComponents = m_componentCount[attribNdx]; in shadeVertices()
842 switch (m_attrType[attribNdx]) in shadeVertices()
844 …oord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), a… in shadeVertices()
845 …coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), a… in shadeVertices()
846 …oord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), a… in shadeVertices()
DglsDrawTest.cpp1233 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) in shadeVertices() local
1235 const int numComponents = m_componentCount[attribNdx]; in shadeVertices()
1236 const bool isCoord = m_isCoord[attribNdx]; in shadeVertices()
1238 switch (m_attrType[attribNdx]) in shadeVertices()
1240 …AT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanc… in shadeVertices()
1241 …T32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanc… in shadeVertices()
1242 …32: calcShaderColorCoord(coord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanc… in shadeVertices()
3275 for (int attribNdx = 0; attribNdx < (int)spec.attribs.size(); attribNdx++) in iterate() local
3277 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[attribNdx]; in iterate()
3278 const bool isPositionAttr = (attribNdx == 0) || (attribSpec.additionalPositionAttribute); in iterate()
[all …]
/external/deqp/framework/egl/
DegluGLUtil.cpp209 for (int attribNdx = 0; attribNdx < DE_LENGTH_OF_ARRAY(s_attribs); attribNdx++) in configMatches() local
211 if (renderConfig.*s_attribs[attribNdx].field != glu::RenderConfig::DONT_CARE) in configMatches()
214 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, s_attribs[attribNdx].attrib, &value)); in configMatches()
215 if (value != renderConfig.*s_attribs[attribNdx].field) in configMatches()
/external/deqp/modules/gles2/functional/
Des2fShaderMatrixTests.cpp984 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init() local
986 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
987 m_userAttribTransforms[attribNdx]((0 + attribNdx) % 4, 0) = 1.0f; in init()
988 m_userAttribTransforms[attribNdx]((1 + attribNdx) % 4, 1) = 1.0f; in init()
989 m_userAttribTransforms[attribNdx]((2 + attribNdx) % 4, 2) = 1.0f; in init()
990 m_userAttribTransforms[attribNdx]((3 + attribNdx) % 4, 3) = 1.0f; in init()
996 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init() local
1004 m_userAttribTransforms[attribNdx](row, col) = -m_userAttribTransforms[attribNdx](row, col); in init()
1007 m_userAttribTransforms[attribNdx](row, col) += 0.3f; in init()
1010 m_userAttribTransforms[attribNdx](row, col) -= 0.1f; in init()
/external/deqp/scripts/egl/
Dcall_log_wrapper.py24 def configAttrib (attribNdx): argument
25 return lambda name: "getConfigAttribValueStr(param%d, %s)" % (attribNdx, name)
/external/deqp/modules/egl/
DteglChooseConfigTests.cpp458 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in genRandomAttributes() local
/external/deqp/modules/gles3/performance/
Des3pShaderOperatorTests.cpp648 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in prepareProgram() local
651 generateVertices(vertices, m_gridSizeX, m_gridSizeY, attributes[attribNdx]); in prepareProgram()
653 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in prepareProgram()
659 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in prepareProgram() local
661 int location = gl.getAttribLocation(program.getProgram(), attributes[attribNdx].name.c_str()); in prepareProgram()
666 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in prepareProgram()
Des3pShaderCompilationCases.cpp1759 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++) in setShaderInputs() local
1761 int location = gl.getAttribLocation(program, progCtx.vertexAttributes[attribNdx].name.c_str()); in setShaderInputs()
1765 …gl.vertexAttribPointer(location, 4, GL_FLOAT, GL_FALSE, 0, progCtx.vertexAttributes[attribNdx].val… in setShaderInputs()
1818 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++) in cleanup() local
1820 … gl.getAttribLocation(shadersAndProgram.program, progCtx.vertexAttributes[attribNdx].name.c_str()); in cleanup()