Home | History | Annotate | Download | only in stress

Lines Matching full:m_spec

256 	const TestSpec		m_spec;
262 , m_spec (genTestSpec(flags))
283 << " bufferOffset: " << m_spec.bufferOffset << "\n"
284 << " bufferStride: " << m_spec.bufferStride << "\n"
287 << " offset: " << m_spec.positionAttrOffset << "\n"
288 << " total offset: " << m_spec.bufferOffset + m_spec.positionAttrOffset << "\n"
291 if (m_spec.hasColorAttr)
295 << " offset: " << m_spec.colorAttrOffset << "\n"
296 << " total offset: " << m_spec.bufferOffset + m_spec.colorAttrOffset << "\n"
332 if (m_spec.hasColorAttr)
334 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
337 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
341 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, m_spec.colorAttrOffset);
351 gl.glBindVertexBuffer(3, m_buf, m_spec.bufferOffset, m_spec.bufferStride);
353 gl.glVertexAttribFormat(positionLoc, 4, GL_FLOAT, GL_FALSE, m_spec.positionAttrOffset);
443 std::vector<deUint8> dataBuf (m_spec.bufferOffset + m_spec.bufferStride * GRID_SIZE * GRID_SIZE * 6);
465 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.positionAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], positions[v].getPtr(), sizeof(positions[v]));
468 if (m_spec.hasColorAttr)
470 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.colorAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], color.getPtr(), sizeof(color));
493 const bool useUniformColor = !m_spec.hasColorAttr;