Home
last modified time | relevance | path

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

/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fVertexArrayObjectTests.cpp201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in logVertexArrayState()
204 << "attribute : " << attribNdx << "\n" in logVertexArrayState()
205 << "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL_FALSE") << "\n" 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" : "GL_FALSE") << "\n" in logVertexArrayState()
210 << "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx] in logVertexArrayState()
430 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attribNdx << ";\\n"; createProgram() local
432 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribNdx << ";\\n"; createProgram() local
450 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; createProgram() local
468 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; createProgram() local
1014 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attribNdx << ";\\n"; createProgram() local
1016 vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribNdx << ";\\n"; createProgram() local
1034 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; createProgram() local
1052 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; createProgram() local
[all...]
H A Des3fShaderMatrixTests.cpp1653 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init()
1655 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
1656 m_userAttribTransforms[attribNdx]( 0, 3) = 0.1f + 0.1f * float(attribNdx); // !< prevent matrix*vec from going into zero (assuming vec.w != 0) in init()
1657 m_userAttribTransforms[attribNdx]( 1, 3) = 0.2f + 0.1f * float(attribNdx); // !< in init()
1658 m_userAttribTransforms[attribNdx]( 2, 3) = 0.3f + 0.1f * float(attribNdx); // !< in init()
[all...]
/third_party/vk-gl-cts/modules/gles2/performance/
H A Des2pDrawCallBatchingTests.cpp588 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderUnbatched()
590 GLint location = 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()
607 GLint location = gl.getAttribLocation(m_program->getProgram(), ("a_dyn" + de::toString(attribNdx)) in renderUnbatched()
[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());
/third_party/vk-gl-cts/framework/egl/
H A DegluGLUtil.cpp255 for (int attribNdx = 0; attribNdx < DE_LENGTH_OF_ARRAY(s_attribs); attribNdx++) in configMatches()
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()
/third_party/vk-gl-cts/modules/glshared/
H A DglsShaderPerformanceMeasurer.cpp199 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++) in init()
202 generateVertices(vertices, m_gridSizeX, m_gridSizeY, m_attributes[attribNdx]); in init()
204 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in init()
211 for (int attribNdx = 0; attribNdx < (int)m_attributes.size(); attribNdx++) in init()
213 int location = gl.getAttribLocation(program, m_attributes[attribNdx].name.c_str()); in init()
218 gl.bindBuffer(GL_ARRAY_BUFFER, m_attribBuffers[attribNdx]); in init()
[all...]
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 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()
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] * Vec in getUserAttrib()
[all...]
H A DglsAttributeLocationTests.cpp77 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in hasAttributeAliasing()
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()
487 const Attribute& attrib = attributes[attribNdx]; in logAttributes()
531 for (int attribNdx in checkActiveAttribQuery()
[all...]
H A DglsRandomShaderProgram.cpp181 for (int attribNdx = 0; attribNdx < (int)m_vertexShader.getInputs().size(); ++attribNdx) in shadeVertices()
183 const rsg::Variable* attribVar = m_vertexShader.getInputs()[attribNdx]->getVariable(); in shadeVertices()
194 const tcu::Vec4 attribValue = rr::readVertexAttribFloat(inputs[attribNdx], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
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; } in setAttribNdx() argument
H A DglsVertexArrayTests.cpp469 void ContextArray::bind (int attribNdx, int offset, int size, InputType inputType, OutputType outType, bool normalized, int stride) in bind() argument
471 m_attribNdx = attribNdx; in bind()
775 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) in shadeVertices()
777 const int numComponents = m_componentCount[attribNdx]; in shadeVertices()
779 switch (m_attrType[attribNdx]) in shadeVertices()
781 case rr::GENERICVECTYPE_FLOAT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), attribNdx == 0, numComponents); break; in shadeVertices()
782 case rr::GENERICVECTYPE_INT32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packe in shadeVertices()
[all...]
H A DglsDrawTest.cpp1234 for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) in shadeVertices()
1236 const int numComponents = m_componentCount[attribNdx]; in shadeVertices()
1237 const bool isCoord = m_isCoord[attribNdx]; in shadeVertices()
1239 switch (m_attrType[attribNdx]) in shadeVertices()
1241 case rr::GENERICVECTYPE_FLOAT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; in shadeVertices()
1242 case rr::GENERICVECTYPE_INT32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; in shadeVertices()
1243 case rr::GENERICVECTYPE_UINT32: calcShaderColorCoord(coord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; in shadeVertices()
3227 for (int attribNdx in iterate()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A 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()
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] * Vec in getUserAttrib()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderMatrixTests.cpp1419 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in ShaderMatrixInstance()
1421 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in ShaderMatrixInstance()
1422 m_userAttribTransforms[attribNdx]( 0, 3) = (op == OP_INVERSE ? -0.5f : 0.2f); // prevent matrix*vec from going into zero (assuming vec.w != 0). in ShaderMatrixInstance()
1423 m_userAttribTransforms[attribNdx]( 1, 3) = (op == OP_INVERSE ? -1.3f : 0.1f); // Modified input for OP_INVERSE case, as determinant of final input in ShaderMatrixInstance()
1424 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. in ShaderMatrixInstance()
1425 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. in ShaderMatrixInstance()
1426 m_userAttribTransforms[attribNdx](( in ShaderMatrixInstance()
[all...]
H A DvktShaderRender.cpp179 const tcu::Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; }
186 tcu::Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
248 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++)
249 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
290 inline tcu::Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const
293 return m_userAttribTransforms[attribNdx] * tc
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRenderMatrixTests.cpp1419 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in ShaderMatrixInstance()
1421 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in ShaderMatrixInstance()
1422 m_userAttribTransforms[attribNdx]( 0, 3) = (op == OP_INVERSE ? -0.5f : 0.2f); // prevent matrix*vec from going into zero (assuming vec.w != 0). in ShaderMatrixInstance()
1423 m_userAttribTransforms[attribNdx]( 1, 3) = (op == OP_INVERSE ? -1.3f : 0.1f); // Modified input for OP_INVERSE case, as determinant of final input in ShaderMatrixInstance()
1424 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. in ShaderMatrixInstance()
1425 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. in ShaderMatrixInstance()
1426 m_userAttribTransforms[attribNdx](( in ShaderMatrixInstance()
[all...]
H A DvktShaderRender.cpp179 const tcu::Vec4* getUserAttrib (int attribNdx) const { return &m_userAttribs[attribNdx][0]; }
186 tcu::Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
248 for (int attribNdx = 0; attribNdx < getNumUserAttribs(); attribNdx++)
249 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
290 inline tcu::Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const
293 return m_userAttribTransforms[attribNdx] * tc
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fShaderMatrixTests.cpp984 for (int attribNdx = 0; attribNdx < 4; attribNdx++) in init()
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) in init()
[all...]
/third_party/vk-gl-cts/scripts/egl/
H A Dcall_log_wrapper.py44 def configAttrib (attribNdx):
45 return lambda name: "getConfigAttribValueStr(param%d, %s)" % (attribNdx, name)
/third_party/vk-gl-cts/modules/egl/
H A DteglChooseConfigTests.cpp472 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++) in genRandomAttributes()
/third_party/vk-gl-cts/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 39 milliseconds