Searched refs:attribNdx (Results 1 - 22 of 22) sorted by relevance

/external/deqp/modules/gles3/functional/
H A Des3fVertexArrayObjectTests.cpp201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++)
204 << "attribute : " << attribNdx << "\n"
205 << "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL_FALSE") << "\n"
206 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n"
207 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n"
208 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n"
209 << "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE" : "GL_FALSE") << "\n"
210 << "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx]
430 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attribNdx << ";\\n"; local
432 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribNdx << ";\\n"; local
450 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; local
468 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; local
1006 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attribNdx << ";\\n"; local
1008 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribNdx << ";\\n"; local
1026 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; local
1044 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; local
[all...]
H A Des3fShaderMatrixTests.cpp1652 for (int attribNdx = 0; attribNdx < 4; attribNdx++)
1654 m_userAttribTransforms[attribNdx] = Mat4(0.0f);
1655 m_userAttribTransforms[attribNdx]( 0, 3) = 0.2f; // !< prevent matrix*vec from going into zero (assuming vec.w != 0)
1656 m_userAttribTransforms[attribNdx]( 1, 3) = 0.1f; // !<
1657 m_userAttribTransforms[attribNdx]( 2, 3) = 0.4f + 0.15f * float(attribNdx); // !<
1658 m_userAttribTransforms[attribNdx]( 3, 3) = 0.7f; // !<
1659 m_userAttribTransforms[attribNdx]((
[all...]
/external/deqp/modules/gles2/performance/
H A Des2pDrawCallBatchingTests.cpp588 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++)
590 GLint location = gl.getAttribLocation(m_program->getProgram(), ("a_static" + de::toString(attribNdx)).c_str());
596 gl.bindBuffer(GL_ARRAY_BUFFER, m_unbatchedStaticBuffers[attribNdx]);
601 gl.vertexAttribPointer(location, 4, GL_BYTE, GL_TRUE, 0, &(m_staticAttributeDatas[attribNdx][0]));
605 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++)
607 GLint location = gl.getAttribLocation(m_program->getProgram(), ("a_dyn" + de::toString(attribNdx))
[all...]
H A Des2pShaderOperatorTests.cpp648 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
651 generateVertices(vertices, m_gridSizeX, m_gridSizeY, attributes[attribNdx]);
653 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
659 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
661 int location = gl.getAttribLocation(program.getProgram(), attributes[attribNdx].name.c_str());
666 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
[all...]
H A Des2pShaderCompilationCases.cpp1739 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++)
1741 int location = gl.getAttribLocation(program, progCtx.vertexAttributes[attribNdx].name.c_str());
1745 gl.vertexAttribPointer(location, 4, GL_FLOAT, GL_FALSE, 0, progCtx.vertexAttributes[attribNdx].value.getPtr());
1798 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++)
1800 int location = gl.getAttribLocation(shadersAndProgram.program, progCtx.vertexAttributes[attribNdx].name.c_str());
/external/deqp/framework/egl/
H A DegluGLUtil.cpp253 for (int attribNdx = 0; attribNdx < DE_LENGTH_OF_ARRAY(s_attribs); attribNdx++)
255 if (renderConfig.*s_attribs[attribNdx].field != glu::RenderConfig::DONT_CARE)
258 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, s_attribs[attribNdx].attrib, &value));
259 if (value != renderConfig.*s_attribs[attribNdx].field)
/external/deqp/modules/glshared/
H A DglsShaderPerformanceMeasurer.cpp197 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++)
200 generateVertices(vertices, m_gridSizeX, m_gridSizeY, m_attributes[attribNdx]);
202 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
209 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++)
211 int location = gl.getAttribLocation(program, m_attributes[attribNdx].name.c_str());
216 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
[all...]
H A DglsShaderRenderCase.cpp151 const Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; }
158 Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
213 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++)
214 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
255 inline Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const argument
258 return m_userAttribTransforms[attribNdx] * Vec
[all...]
H A DglsAttributeLocationTests.cpp77 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
79 const deInt32 location = getBoundLocation(bindings, attributes[attribNdx].getName());
80 const deUint32 size = attributes[attribNdx].getType().getLocationSize();
485 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
487 const Attribute& attrib = attributes[attribNdx];
531 for (int attribNdx
[all...]
H A DglsRandomShaderProgram.cpp181 for (int attribNdx = 0; attribNdx < (int)m_vertexShader.getInputs().size(); ++attribNdx)
183 const rsg::Variable* attribVar = m_vertexShader.getInputs()[attribNdx]->getVariable();
194 const tcu::Vec4 attribValue = rr::readVertexAttribFloat(inputs[attribNdx], packet->instanceNdx, packet->vertexNdx);
H A DglsFragOpInteractionCase.cpp313 for (int attribNdx = 0; attribNdx < vertexData.getNumEntries(); ++attribNdx)
315 const glu::VertexArrayBinding bindingPtr = getEntryWithPointer(vertexData, attribNdx);
534 for (int attribNdx = 0; attribNdx < (int)m_vertexShader.getInputs().size(); ++attribNdx)
536 if (attribNdx == positionNdx)
539 const rsg::ShaderInput* shaderIn = m_vertexShader.getInputs()[attribNdx];
543 const glu::VertexArrayBinding layoutEntry = getEntryWithPointer(vertexData, attribNdx);
[all...]
H A DglsVertexArrayTests.hpp154 virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType, bool normalized, int stride) = 0;
166 virtual void setAttribNdx (int attribNdx) = 0;
176 virtual void bind (int attribNdx, int offset, int size, InputType inType, OutputType outType, bool normalized, int stride);
189 virtual void setAttribNdx (int attribNdx) { m_attribNdx = attribNdx; } argument
H A DglsDrawTest.cpp1215 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++)
1217 const int numComponents = m_componentCount[attribNdx];
1218 const bool isCoord = m_isCoord[attribNdx];
1220 switch (m_attrType[attribNdx])
1222 case rr::GENERICVECTYPE_FLOAT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break;
1223 case rr::GENERICVECTYPE_INT32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break;
1224 case rr::GENERICVECTYPE_UINT32: calcShaderColorCoord(coord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break;
3206 for (int attribNdx
[all...]
H A DglsVertexArrayTests.cpp532 void ContextArray::bind (int attribNdx, int offset, int size, InputType inputType, OutputType outType, bool normalized, int stride) argument
534 m_attribNdx = attribNdx;
838 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++)
840 const int numComponents = m_componentCount[attribNdx];
842 switch (m_attrType[attribNdx])
844 case rr::GENERICVECTYPE_FLOAT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), attribNdx == 0, numComponents); break;
845 case rr::GENERICVECTYPE_INT32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packe
[all...]
/external/deqp/external/openglcts/modules/common/
H A DglcShaderRenderCase.cpp186 const Vec4* getUserAttrib(int attribNdx) const
188 return &m_userAttribs[attribNdx][0];
202 Vec4 getUserAttrib(int attribNdx, float sx, float sy) const;
258 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++)
259 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
300 inline Vec4 QuadGrid::getUserAttrib(int attribNdx, float sx, float sy) const argument
303 return m_userAttribTransforms[attribNdx] * Vec
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fShaderMatrixTests.cpp984 for (int attribNdx = 0; attribNdx < 4; attribNdx++)
986 m_userAttribTransforms[attribNdx] = Mat4(0.0f);
987 m_userAttribTransforms[attribNdx]((0 + attribNdx) % 4, 0) = 1.0f;
988 m_userAttribTransforms[attribNdx]((1 + attribNdx) % 4, 1) = 1.0f;
989 m_userAttribTransforms[attribNdx]((2 + attribNdx)
[all...]
/external/deqp/scripts/egl/
H A Dcall_log_wrapper.py44 def configAttrib (attribNdx):
45 return lambda name: "getConfigAttribValueStr(param%d, %s)" % (attribNdx, name)
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderMatrixTests.cpp1420 for (int attribNdx = 0; attribNdx < 4; attribNdx++)
1422 m_userAttribTransforms[attribNdx] = Mat4(0.0f);
1423 m_userAttribTransforms[attribNdx]( 0, 3) = (op == OP_INVERSE ? -0.5f : 0.2f); // prevent matrix*vec from going into zero (assuming vec.w != 0).
1424 m_userAttribTransforms[attribNdx]( 1, 3) = (op == OP_INVERSE ? -1.3f : 0.1f); // Modified input for OP_INVERSE case, as determinant of final input
1425 m_userAttribTransforms[attribNdx]( 2, 3) = 0.4f + 0.15f * float(attribNdx); // matrix is spanning both sides of 0, so 0 (and division by 0) may happen on mediump.
1426 m_userAttribTransforms[attribNdx]( 3, 3) = (op == OP_INVERSE ? -3.0f : 0.7f); // Modified OP_INVERSE final input matrix is same signed in whole input range.
1427 m_userAttribTransforms[attribNdx]((
[all...]
H A DvktShaderRender.cpp161 const tcu::Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; }
168 tcu::Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
230 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++)
231 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
272 inline tcu::Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const
275 return m_userAttribTransforms[attribNdx] * tc
[all...]
/external/deqp/modules/egl/
H A DteglChooseConfigTests.cpp460 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++)
/external/deqp/modules/gles3/performance/
H A Des3pShaderOperatorTests.cpp648 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
651 generateVertices(vertices, m_gridSizeX, m_gridSizeY, attributes[attribNdx]);
653 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
659 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++)
661 int location = gl.getAttribLocation(program.getProgram(), attributes[attribNdx].name.c_str());
666 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]);
[all...]
H A Des3pShaderCompilationCases.cpp1759 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++)
1761 int location = gl.getAttribLocation(program, progCtx.vertexAttributes[attribNdx].name.c_str());
1765 gl.vertexAttribPointer(location, 4, GL_FLOAT, GL_FALSE, 0, progCtx.vertexAttributes[attribNdx].value.getPtr());
1818 for (int attribNdx = 0; attribNdx < (int)progCtx.vertexAttributes.size(); attribNdx++)
1820 int location = gl.getAttribLocation(shadersAndProgram.program, progCtx.vertexAttributes[attribNdx].name.c_str());

Completed in 414 milliseconds