• Home
  • Raw
  • Download

Lines Matching refs:attribNdx

201 	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()
213 …<< "\tGL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : " << m_buffers[state.attributes[attribNdx].bufferNdx… in logVertexArrayState()
427 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in createProgram() local
429 if (state.attributes[attribNdx].integer) in createProgram()
430 …vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attrib… in createProgram()
432 …vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribN… in createProgram()
434 if (state.attributes[attribNdx].integer) in createProgram()
450 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; in createProgram()
452 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
468 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; in createProgram()
471 value << (attribNdx != 0 ? " + " : "" ) << "a_attrib" << attribNdx; in createProgram()
550 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in setState() local
552 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx])); in setState()
553 if (state.attributes[attribNdx].enabled) in setState()
554 GLU_CHECK_CALL(glEnableVertexAttribArray(attribNdx)); in setState()
556 GLU_CHECK_CALL(glDisableVertexAttribArray(attribNdx)); in setState()
558 if (state.attributes[attribNdx].integer) in setState()
559attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[at… in setState()
561attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[at… in setState()
563 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor)); in setState()
719 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in logVertexArrayState() local
722 << "attribute : " << attribNdx << "\n" in logVertexArrayState()
723 …<< "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL… in logVertexArrayState()
724 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n" in logVertexArrayState()
725 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n" in logVertexArrayState()
726 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n" in logVertexArrayState()
727 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState()
728 …<< "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL… in logVertexArrayState()
729 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n" in logVertexArrayState()
730 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n" in logVertexArrayState()
731 …<< "\t GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : " << m_buffers[state.attributes[attribNdx].bufferNd… in logVertexArrayState()
754 for (int attribNdx = 0; attribNdx < attribCount; attribNdx++) in init() local
760 m_spec.state.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
761 m_spec.state.attributes[attribNdx].size = m_random.getInt(2,4); in init()
762 m_spec.state.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
763 m_spec.state.attributes[attribNdx].type = GL_SHORT; in init()
764 m_spec.state.attributes[attribNdx].integer = m_random.getBool(); in init()
765 m_spec.state.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
766 m_spec.state.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
767 m_spec.state.attributes[attribNdx].normalized = m_random.getBool(); in init()
768 m_spec.state.attributes[attribNdx].bufferNdx = attribNdx+1; in init()
770 if (attribNdx == 0) in init()
772 m_spec.state.attributes[attribNdx].divisor = 0; in init()
773 m_spec.state.attributes[attribNdx].enabled = GL_TRUE; in init()
774 m_spec.state.attributes[attribNdx].size = 2; in init()
778 m_spec.vao.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
779 m_spec.vao.attributes[attribNdx].size = m_random.getInt(2,4); in init()
780 m_spec.vao.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
781 m_spec.vao.attributes[attribNdx].type = GL_SHORT; in init()
782 m_spec.vao.attributes[attribNdx].integer = m_random.getBool(); in init()
783 m_spec.vao.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
784 m_spec.vao.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
785 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool(); in init()
786 m_spec.vao.attributes[attribNdx].bufferNdx = attribCount - attribNdx; in init()
788 if (attribNdx == 0) in init()
790 m_spec.vao.attributes[attribNdx].divisor = 0; in init()
791 m_spec.vao.attributes[attribNdx].enabled = GL_TRUE; in init()
792 m_spec.vao.attributes[attribNdx].size = 2; in init()
1003 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in createProgram() local
1005 if (state.attributes[attribNdx].integer) in createProgram()
1006 …vertexShaderStream << "layout(location = " << attribNdx << ") in mediump ivec4 a_attrib" << attrib… in createProgram()
1008 …vertexShaderStream << "layout(location = " << attribNdx << ") in mediump vec4 a_attrib" << attribN… in createProgram()
1010 if (state.attributes[attribNdx].integer) in createProgram()
1026 value << (attribNdx != 0 ? " + " : "" ) << scale << " * vec4(a_attrib" << attribNdx << ")"; in createProgram()
1028 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
1044 value << (attribNdx != 0 ? " + " : "" ) << scale << " * a_attrib" << attribNdx; in createProgram()
1047 value << (attribNdx != 0 ? " + " : "" ) << "a_attrib" << attribNdx; in createProgram()
1127 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in setState() local
1129 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx])); in setState()
1130 if (state.attributes[attribNdx].enabled) in setState()
1131 GLU_CHECK_CALL(glEnableVertexAttribArray(attribNdx)); in setState()
1133 GLU_CHECK_CALL(glDisableVertexAttribArray(attribNdx)); in setState()
1135 if (state.attributes[attribNdx].integer) in setState()
1136attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[at… in setState()
1138attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[at… in setState()
1140 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor)); in setState()