Lines Matching defs:m_spec
254 const TestSpec m_spec;
260 , m_spec (genTestSpec(flags))
281 << " bufferOffset: " << m_spec.bufferOffset << "\n"
282 << " bufferStride: " << m_spec.bufferStride << "\n"
285 << " offset: " << m_spec.positionAttrOffset << "\n"
286 << " total offset: " << m_spec.bufferOffset + m_spec.positionAttrOffset << "\n"
289 if (m_spec.hasColorAttr)
293 << " offset: " << m_spec.colorAttrOffset << "\n"
294 << " total offset: " << m_spec.bufferOffset + m_spec.colorAttrOffset << "\n"
330 if (m_spec.hasColorAttr)
332 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
335 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
339 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, m_spec.colorAttrOffset);
349 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
351 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
441 std::vector<deUint8> dataBuf (m_spec.bufferOffset + m_spec.bufferStride * GRID_SIZE * GRID_SIZE * 6);
463 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.positionAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], positions[v].getPtr(), sizeof(positions[v]));
466 if (m_spec.hasColorAttr)
468 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.colorAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], color.getPtr(), sizeof(color));
491 const bool useUniformColor = !m_spec.hasColorAttr;