Lines Matching full:m_spec
262 const TestSpec m_spec;
268 , m_spec (genTestSpec(flags))
289 << " bufferOffset: " << m_spec.bufferOffset << "\n"
290 << " bufferStride: " << m_spec.bufferStride << "\n"
293 << " offset: " << m_spec.positionAttrOffset << "\n"
294 << " total offset: " << m_spec.bufferOffset + m_spec.positionAttrOffset << "\n"
297 if (m_spec.hasColorAttr)
301 << " offset: " << m_spec.colorAttrOffset << "\n"
302 << " total offset: " << m_spec.bufferOffset + m_spec.colorAttrOffset << "\n"
338 if (m_spec.hasColorAttr)
340 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
343 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
347 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, m_spec.colorAttrOffset);
357 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
359 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
449 std::vector<deUint8> dataBuf (m_spec.bufferOffset + m_spec.bufferStride * GRID_SIZE * GRID_SIZE * 6);
471 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.positionAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], positions[v].getPtr(), sizeof(positions[v]));
474 if (m_spec.hasColorAttr)
476 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.colorAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], color.getPtr(), sizeof(color));
499 const bool useUniformColor = !m_spec.hasColorAttr;
557 const TestSpec m_spec;
564 , m_spec (genTestSpec(flags))
568 DE_ASSERT(!(m_spec.instanced && m_spec.zeroStride));
593 << " buffer object: " << ((m_spec.aliasingBuffers) ? (m_primitiveBuf) : (m_colorOffsetBuf)) << "\n"
594 << " instance divisor: " << ((m_spec.instanced) ? (1) : (0)) << "\n"
595 << " stride: " << ((m_spec.zeroStride) ? (0) : (4*4*2)) << "\n"
659 const int stride = (m_spec.zeroStride) ? (0) : (2 * (int)sizeof(tcu::Vec4));
660 const int offset = (!m_spec.aliasingBuffers) ? (0) : (m_spec.instanced) ? (6 * (int)sizeof(tcu::Vec4)) : (6 * GRID_SIZE * GRID_SIZE * (int)sizeof(tcu::Vec4));
661 const glw::GLuint buffer = (m_spec.aliasingBuffers) ? (m_primitiveBuf) : (m_colorOffsetBuf);
662 const int divisor = (m_spec.instanced) ? (1) : (0);
670 if (m_spec.instanced)
716 const int vertexDataSize = (m_spec.instanced) ? (6) : (6 * GRID_SIZE * GRID_SIZE);
717 const int offsetColorSize = (m_spec.zeroStride) ? (2) : (m_spec.instanced) ? (2 * GRID_SIZE * GRID_SIZE) : (2 * 6 * GRID_SIZE * GRID_SIZE);
718 const int primitiveBufSize = (m_spec.aliasingBuffers) ? (vertexDataSize + offsetColorSize) : (vertexDataSize);
719 const int colorOffsetBufSize = (m_spec.aliasingBuffers) ? (0) : (offsetColorSize);
725 if (m_spec.aliasingBuffers)
727 if (m_spec.instanced)
737 if (m_spec.instanced)
764 if (m_spec.zeroStride)
769 else if (m_spec.instanced)
800 if (!m_spec.aliasingBuffers)