Lines Matching refs:attributes
75 vector<Attribute> attributes; member
201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) 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()
429 if (state.attributes[attribNdx].integer) in createProgram()
434 if (state.attributes[attribNdx].integer) in createProgram()
438 switch (state.attributes[0].type) in createProgram()
452 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
456 switch (state.attributes[0].type) in createProgram()
480 if (state.attributes[0].integer) in createProgram()
484 switch (state.attributes[0].type) in createProgram()
503 if (state.attributes[0].normalized || state.attributes[0].type == GL_FLOAT) in createProgram()
513 switch (state.attributes[0].type) in createProgram()
550 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in setState()
552 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx])); in setState()
553 if (state.attributes[attribNdx].enabled) in setState()
558 if (state.attributes[attribNdx].integer) in setState()
559 …state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].st… in setState()
561 …attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normaliz… in setState()
563 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor)); in setState()
572 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in makeDrawCall()
574 if (state.attributes[attribNdx].integer) in makeDrawCall()
727 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in logVertexArrayState()
731 …<< "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL… in logVertexArrayState()
732 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n" in logVertexArrayState()
733 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n" in logVertexArrayState()
734 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n" in logVertexArrayState()
735 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState()
736 …<< "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL… in logVertexArrayState()
737 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n" in logVertexArrayState()
738 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n" in logVertexArrayState()
739 …<< "\t GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : " << m_buffers[state.attributes[attribNdx].bufferNd… in logVertexArrayState()
767 m_spec.state.attributes.push_back(Attribute()); in init()
768 m_spec.state.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
769 m_spec.state.attributes[attribNdx].size = m_random.getInt(2,4); in init()
770 m_spec.state.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
771 m_spec.state.attributes[attribNdx].type = GL_SHORT; in init()
772 m_spec.state.attributes[attribNdx].integer = m_random.getBool(); in init()
773 m_spec.state.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
774 m_spec.state.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
775 m_spec.state.attributes[attribNdx].normalized = m_random.getBool(); in init()
776 m_spec.state.attributes[attribNdx].bufferNdx = attribNdx+1; in init()
780 m_spec.state.attributes[attribNdx].divisor = 0; in init()
781 m_spec.state.attributes[attribNdx].enabled = GL_TRUE; in init()
782 m_spec.state.attributes[attribNdx].size = 2; in init()
785 m_spec.vao.attributes.push_back(Attribute()); in init()
786 m_spec.vao.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
787 m_spec.vao.attributes[attribNdx].size = m_random.getInt(2,4); in init()
788 m_spec.vao.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
789 m_spec.vao.attributes[attribNdx].type = GL_SHORT; in init()
790 m_spec.vao.attributes[attribNdx].integer = m_random.getBool(); in init()
791 m_spec.vao.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
792 m_spec.vao.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
793 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool(); in init()
794 m_spec.vao.attributes[attribNdx].bufferNdx = attribCount - attribNdx; in init()
798 m_spec.vao.attributes[attribNdx].divisor = 0; in init()
799 m_spec.vao.attributes[attribNdx].enabled = GL_TRUE; in init()
800 m_spec.vao.attributes[attribNdx].size = 2; in init()
1011 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in createProgram()
1013 if (state.attributes[attribNdx].integer) in createProgram()
1018 if (state.attributes[attribNdx].integer) in createProgram()
1022 switch (state.attributes[0].type) in createProgram()
1036 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
1040 switch (state.attributes[0].type) in createProgram()
1064 if (state.attributes[0].integer) in createProgram()
1068 switch (state.attributes[0].type) in createProgram()
1088 if (state.attributes[0].normalized || state.attributes[0].type == GL_FLOAT) in createProgram()
1098 switch (state.attributes[0].type) in createProgram()
1135 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in setState()
1137 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx])); in setState()
1138 if (state.attributes[attribNdx].enabled) in setState()
1143 if (state.attributes[attribNdx].integer) in setState()
1144 …state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].st… in setState()
1146 …attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normaliz… in setState()
1148 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor)); in setState()
1271 state.attributes.push_back(Attribute()); in init()
1273 state.attributes[0].enabled = true; in init()
1274 state.attributes[0].size = 2; in init()
1275 state.attributes[0].stride = 0; in init()
1276 state.attributes[0].type = GL_FLOAT; in init()
1277 state.attributes[0].integer = GL_FALSE; in init()
1278 state.attributes[0].divisor = 0; in init()
1279 state.attributes[0].offset = 0; in init()
1280 state.attributes[0].normalized = GL_FALSE; in init()
1298 spec.state.attributes[0].bufferNdx = 1; in init()
1299 spec.vao.attributes[0].bufferNdx = 2; in init()
1308 state.attributes.push_back(Attribute()); in init()
1310 state.attributes[0].enabled = true; in init()
1311 state.attributes[0].size = 2; in init()
1312 state.attributes[0].stride = 0; in init()
1313 state.attributes[0].type = GL_FLOAT; in init()
1314 state.attributes[0].integer = GL_FALSE; in init()
1315 state.attributes[0].divisor = 0; in init()
1316 state.attributes[0].offset = 0; in init()
1317 state.attributes[0].normalized = GL_FALSE; in init()
1318 state.attributes[0].bufferNdx = 1; in init()
1335 spec.state.attributes[0].size = 2; in init()
1336 spec.vao.attributes[0].size = 3; in init()
1346 state.attributes.push_back(Attribute()); in init()
1348 state.attributes[0].enabled = true; in init()
1349 state.attributes[0].size = 2; in init()
1350 state.attributes[0].stride = 0; in init()
1351 state.attributes[0].type = GL_SHORT; in init()
1352 state.attributes[0].integer = GL_FALSE; in init()
1353 state.attributes[0].divisor = 0; in init()
1354 state.attributes[0].offset = 0; in init()
1355 state.attributes[0].normalized = GL_TRUE; in init()
1356 state.attributes[0].bufferNdx = 1; in init()
1373 spec.vao.attributes[0].stride = 2; in init()
1374 spec.state.attributes[0].stride = 4; in init()
1384 state.attributes.push_back(Attribute()); in init()
1386 state.attributes[0].enabled = true; in init()
1387 state.attributes[0].size = 2; in init()
1388 state.attributes[0].stride = 0; in init()
1389 state.attributes[0].type = GL_SHORT; in init()
1390 state.attributes[0].integer = GL_FALSE; in init()
1391 state.attributes[0].divisor = 0; in init()
1392 state.attributes[0].offset = 0; in init()
1393 state.attributes[0].normalized = GL_TRUE; in init()
1394 state.attributes[0].bufferNdx = 1; in init()
1411 spec.vao.attributes[0].type = GL_SHORT; in init()
1412 spec.state.attributes[0].type = GL_BYTE; in init()
1421 state.attributes.push_back(Attribute()); in init()
1423 state.attributes[0].enabled = true; in init()
1424 state.attributes[0].size = 2; in init()
1425 state.attributes[0].stride = 0; in init()
1426 state.attributes[0].type = GL_BYTE; in init()
1427 state.attributes[0].integer = GL_TRUE; in init()
1428 state.attributes[0].divisor = 0; in init()
1429 state.attributes[0].offset = 0; in init()
1430 state.attributes[0].normalized = GL_FALSE; in init()
1431 state.attributes[0].bufferNdx = 1; in init()
1448 spec.state.attributes[0].integer = GL_FALSE; in init()
1449 spec.vao.attributes[0].integer = GL_TRUE; in init()
1458 state.attributes.push_back(Attribute()); in init()
1459 state.attributes.push_back(Attribute()); in init()
1461 state.attributes[0].enabled = true; in init()
1462 state.attributes[0].size = 2; in init()
1463 state.attributes[0].stride = 0; in init()
1464 state.attributes[0].type = GL_SHORT; in init()
1465 state.attributes[0].integer = GL_FALSE; in init()
1466 state.attributes[0].divisor = 0; in init()
1467 state.attributes[0].offset = 0; in init()
1468 state.attributes[0].normalized = GL_TRUE; in init()
1469 state.attributes[0].bufferNdx = 1; in init()
1471 state.attributes[1].enabled = true; in init()
1472 state.attributes[1].size = 4; in init()
1473 state.attributes[1].stride = 0; in init()
1474 state.attributes[1].type = GL_FLOAT; in init()
1475 state.attributes[1].integer = GL_FALSE; in init()
1476 state.attributes[1].divisor = 0; in init()
1477 state.attributes[1].offset = 0; in init()
1478 state.attributes[1].normalized = GL_FALSE; in init()
1479 state.attributes[1].bufferNdx = 2; in init()
1497 spec.vao.attributes[1].divisor = 3; in init()
1498 spec.state.attributes[1].divisor = 2; in init()
1508 state.attributes.push_back(Attribute()); in init()
1510 state.attributes[0].enabled = true; in init()
1511 state.attributes[0].size = 2; in init()
1512 state.attributes[0].stride = 0; in init()
1513 state.attributes[0].type = GL_SHORT; in init()
1514 state.attributes[0].integer = GL_FALSE; in init()
1515 state.attributes[0].divisor = 0; in init()
1516 state.attributes[0].offset = 0; in init()
1517 state.attributes[0].normalized = GL_TRUE; in init()
1518 state.attributes[0].bufferNdx = 1; in init()
1535 spec.vao.attributes[0].offset = 2; in init()
1536 spec.state.attributes[0].offset = 4; in init()
1545 state.attributes.push_back(Attribute()); in init()
1547 state.attributes[0].enabled = true; in init()
1548 state.attributes[0].size = 2; in init()
1549 state.attributes[0].stride = 0; in init()
1550 state.attributes[0].type = GL_SHORT; in init()
1551 state.attributes[0].integer = GL_FALSE; in init()
1552 state.attributes[0].divisor = 0; in init()
1553 state.attributes[0].offset = 0; in init()
1554 state.attributes[0].normalized = GL_TRUE; in init()
1555 state.attributes[0].bufferNdx = 1; in init()
1572 spec.vao.attributes[0].normalized = GL_TRUE; in init()
1573 spec.state.attributes[0].normalized = GL_FALSE; in init()
1582 state.attributes.push_back(Attribute()); in init()
1584 state.attributes[0].enabled = true; in init()
1585 state.attributes[0].size = 2; in init()
1586 state.attributes[0].stride = 0; in init()
1587 state.attributes[0].type = GL_FLOAT; in init()
1588 state.attributes[0].integer = GL_FALSE; in init()
1589 state.attributes[0].divisor = 0; in init()
1590 state.attributes[0].offset = 0; in init()
1591 state.attributes[0].normalized = GL_TRUE; in init()
1592 state.attributes[0].bufferNdx = 1; in init()