Lines Matching refs:dataRef
408 long DataCompare(const std::vector<T>& dataRef, unsigned int widthRef, unsigned int heightRef,
412 if (widthRef * heightRef > dataRef.size())
428 if (dataRef[offsetRef + j] != dataTest[offsetTest + j])
432 << ", reference: " << dataRef[offsetRef + j]
533 long BufferCheck(const CDataArray& dataRef, unsigned int widthRef, unsigned int heightRef, const void* bufTest,
545 return DataCompare(dataRef, widthRef, heightRef, dataTest, widthTest, heightTest, offsetYRef, offsetYTest);
1263 CDataArray dataRef;
1266 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 4, 70);
1267 glBufferData(GL_DRAW_INDIRECT_BUFFER, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), NULL,
1269 glBufferSubData(GL_DRAW_INDIRECT_BUFFER, 0, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), &dataRef[0]);
1275 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight, dataTest, dataWidth, dataHeight));
1281 std::copy(dataSubRef.begin(), dataSubRef.end(), dataRef.begin() + 1);
1285 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight, dataTest, dataWidth, dataHeight));
1333 CDataArray dataRef;
1336 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 30, 50);
1337 glBufferData(GL_DRAW_INDIRECT_BUFFER, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), &dataRef[0],
1350 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight, buf, dataWidth, dataHeight));
1353 (GLsizeiptr)(dataRef.size() * sizeof(unsigned int))));
1372 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight, buf, dataWidth, dataHeight));
1375 (GLsizeiptr)(dataRef.size() * sizeof(unsigned int))));
1394 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight, buf, dataWidth, dataHeight));
1397 (GLsizeiptr)(dataRef.size() * sizeof(unsigned int))));
1453 CDataArray dataRef;
1456 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 30, 50);
1457 glBufferData(GL_DRAW_INDIRECT_BUFFER, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), &dataRef[0],
1469 void* buf = glMapBufferRange(GL_DRAW_INDIRECT_BUFFER, 0, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)),
1487 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight, ptr, dataWidth, dataHeight));
1547 CDataArray dataRef;
1550 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 30, 50);
1551 glBufferData(GL_DRAW_INDIRECT_BUFFER, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), &dataRef[0],
1556 void* buf = glMapBufferRange(GL_DRAW_INDIRECT_BUFFER, 0, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)),
1565 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight, buf, dataWidth, dataHeight));
1568 (GLsizeiptr)(dataRef.size() * sizeof(unsigned int))));
1579 buf = glMapBufferRange(GL_DRAW_INDIRECT_BUFFER, 0, (GLsizeiptr)(dataRef.size() / 2 * sizeof(unsigned int)),
1588 result.sub_result(BufferCheck(dataRef, dataWidth, dataHeight / 2, buf, dataWidth, dataHeight / 2));
1591 (GLsizeiptr)(dataRef.size() / 2 * sizeof(unsigned int))));
1602 buf = glMapBufferRange(GL_DRAW_INDIRECT_BUFFER, (GLintptr)(dataRef.size() / 4 * sizeof(unsigned int)),
1603 (GLsizeiptr)(dataRef.size() / 2 * sizeof(unsigned int)), GL_MAP_WRITE_BIT);
1612 BufferCheck(dataRef, dataWidth, dataHeight / 2, buf, dataWidth, dataHeight / 2, dataHeight / 4));
1615 (GLintptr)(dataRef.size() / 4 * sizeof(unsigned int)),
1616 (GLsizeiptr)(dataRef.size() / 2 * sizeof(unsigned int))));
1672 CDataArray dataRef;
1675 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 1, 1000);
1683 glBufferData(GL_DRAW_INDIRECT_BUFFER, (GLsizeiptr)(dataRef.size() * sizeof(unsigned int)), &dataRef[0],
1717 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight / 4, dataTest, dataWidth, dataHeight / 4));
1722 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight / 4, dataTest, dataWidth, dataHeight / 4,
1768 CDataArray dataRef;
1771 DataGen<unsigned int>(dataRef, dataWidth, dataHeight, 1, 100);
1772 glBufferData(GL_DRAW_INDIRECT_BUFFER, dataRef.size() * sizeof(unsigned int), &dataRef[0], GL_DYNAMIC_DRAW);
1776 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight, dataTest, dataWidth, dataHeight));
1791 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight * 3 / 4, dataTest, dataWidth, dataHeight * 3 / 4,
1804 result.sub_result(DataCompare(dataRef, dataWidth, dataHeight / 2, dataTest, dataWidth, dataHeight / 2,