Home
last modified time | relevance | path

Searched refs:attribNdx (Results 1 – 22 of 22) 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.cpp1652 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init() local
1654 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
1655 …m_userAttribTransforms[attribNdx]( 0, 3) = 0.1f + 0.15f * float(attribNdx); // !<… in init()
1656 m_userAttribTransforms[attribNdx]( 1, 3) = 0.2f + 0.15f * float(attribNdx); // !< in init()
1657 m_userAttribTransforms[attribNdx]( 2, 3) = 0.3f + 0.15f * float(attribNdx); // !< in init()
1658 m_userAttribTransforms[attribNdx]( 3, 3) = 0.4f + 0.15f * float(attribNdx); // !< in init()
1659 m_userAttribTransforms[attribNdx]((0 + attribNdx) % 4, 0) = 1.0f; in init()
1660 m_userAttribTransforms[attribNdx]((1 + attribNdx) % 4, 1) = 1.0f; in init()
1661 m_userAttribTransforms[attribNdx]((2 + attribNdx) % 4, 2) = 1.0f; in init()
1662 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.cpp151 const Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; } in getUserAttrib()
158 Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
213 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++) in QuadGrid() local
214 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
255 inline Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const in getUserAttrib() argument
258 return m_userAttribTransforms[attribNdx] * Vec4(sx, sy, 0.0f, 1.0f); in getUserAttrib()
310 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in reset() local
311 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.hpp154 …virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType, …
166 virtual void setAttribNdx (int attribNdx) = 0;
176 …virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType…
189 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.cpp1215 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) in shadeVertices() local
1217 const int numComponents = m_componentCount[attribNdx]; in shadeVertices()
1218 const bool isCoord = m_isCoord[attribNdx]; in shadeVertices()
1220 switch (m_attrType[attribNdx]) in shadeVertices()
1222 …AT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanc… in shadeVertices()
1223 …T32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanc… in shadeVertices()
1224 …32: calcShaderColorCoord(coord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanc… in shadeVertices()
3207 for (int attribNdx = 0; attribNdx < (int)spec.attribs.size(); attribNdx++) in iterate() local
3209 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[attribNdx]; in iterate()
3210 const bool isPositionAttr = (attribNdx == 0) || (attribSpec.additionalPositionAttribute); in iterate()
[all …]
/external/deqp/framework/egl/
DegluGLUtil.cpp255 for (int attribNdx = 0; attribNdx < DE_LENGTH_OF_ARRAY(s_attribs); attribNdx++) in configMatches() local
257 if (renderConfig.*s_attribs[attribNdx].field != glu::RenderConfig::DONT_CARE) in configMatches()
260 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, s_attribs[attribNdx].attrib, &value)); in configMatches()
261 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/external/openglcts/modules/common/
DglcShaderRenderCase.cpp198 const Vec4* getUserAttrib(int attribNdx) const in getUserAttrib()
200 return &m_userAttribs[attribNdx][0]; in getUserAttrib()
214 Vec4 getUserAttrib(int attribNdx, float sx, float sy) const;
270 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++) in QuadGrid() local
271 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
312 inline Vec4 QuadGrid::getUserAttrib(int attribNdx, float sx, float sy) const in getUserAttrib() argument
315 return m_userAttribTransforms[attribNdx] * Vec4(sx, sy, 0.0f, 1.0f); in getUserAttrib()
376 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in reset() local
377 in[attribNdx] = quadGrid.getUserAttrib(attribNdx, sx, sy); in reset()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp1420 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in ShaderMatrixInstance() local
1422 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in ShaderMatrixInstance()
1423 …m_userAttribTransforms[attribNdx]( 0, 3) = (op == OP_INVERSE ? -0.5f : 0.2f); // … in ShaderMatrixInstance()
1424 …m_userAttribTransforms[attribNdx]( 1, 3) = (op == OP_INVERSE ? -1.3f : 0.1f); // … in ShaderMatrixInstance()
1425 …m_userAttribTransforms[attribNdx]( 2, 3) = 0.4f + 0.15f * float(attribNdx); // ma… in ShaderMatrixInstance()
1426 …m_userAttribTransforms[attribNdx]( 3, 3) = (op == OP_INVERSE ? -3.0f : 0.7f); // … in ShaderMatrixInstance()
1427 m_userAttribTransforms[attribNdx]((0 + attribNdx) % 4, 0) = 1.0f; in ShaderMatrixInstance()
1428 m_userAttribTransforms[attribNdx]((1 + attribNdx) % 4, 1) = 1.0f; in ShaderMatrixInstance()
1429 m_userAttribTransforms[attribNdx]((2 + attribNdx) % 4, 2) = 1.0f; in ShaderMatrixInstance()
1430 m_userAttribTransforms[attribNdx]((3 + attribNdx) % 4, 3) = 1.0f; in ShaderMatrixInstance()
[all …]
DvktShaderRender.cpp179 …const tcu::Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0];… in getUserAttrib()
186 tcu::Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
248 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++) in QuadGrid() local
249 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
290 inline tcu::Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const in getUserAttrib() argument
293 return m_userAttribTransforms[attribNdx] * tcu::Vec4(sx, sy, 0.0f, 1.0f); in getUserAttrib()
447 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in reset() local
448 in[attribNdx] = m_quadGrid.getUserAttrib(attribNdx, sx, sy); in reset()
/external/deqp/scripts/egl/
Dcall_log_wrapper.py44 def configAttrib (attribNdx): argument
45 return lambda name: "getConfigAttribValueStr(param%d, %s)" % (attribNdx, name)
/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()
/external/deqp/modules/egl/
DteglChooseConfigTests.cpp460 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in genRandomAttributes() local