Lines Matching refs:m_spec

156 	Spec					m_spec;  member in deqp::gles3::Functional::VertexArrayObjectTest
179 , m_spec (spec) in VertexArrayObjectTest()
222 for (int bufferNdx = 0; bufferNdx < (int)m_spec.buffers.size(); bufferNdx++) in init()
224 deUint8* data = createRandomBufferData(m_spec.buffers[bufferNdx]); in init()
233 …GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, m_spec.buffers[bufferNdx].size, data, GL_DYNAMIC_DRAW… in init()
244 m_vaoProgram = createProgram(m_spec.vao); in init()
247 m_stateProgram = createProgram(m_spec.state); in init()
254 …if (m_spec.useDrawElements && (m_spec.vao.elementArrayBuffer == 0 || m_spec.state.elementArrayBuff… in init()
270 switch (m_spec.indexType) in generateIndices()
279 deUint8* indices = new deUint8[m_spec.indexCount * typeSize]; in generateIndices()
281 for (int i = 0; i < m_spec.indexCount; i++) in generateIndices()
285 switch (m_spec.indexType) in generateIndices()
289 GLuint v = (GLuint)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
296 GLushort v = (GLushort)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
303 GLubyte v = (GLubyte)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
572 if (m_spec.useDrawElements) in makeDrawCall()
576 if (m_spec.instances == 0) in makeDrawCall()
577 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices)); in makeDrawCall()
579 …LU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_s… in makeDrawCall()
583 if (m_spec.instances == 0) in makeDrawCall()
584 …GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_… in makeDrawCall()
586 …lDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.in… in makeDrawCall()
591 if (m_spec.instances == 0) in makeDrawCall()
592 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count)); in makeDrawCall()
594 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances)); in makeDrawCall()
604 setState(m_spec.vao); in render()
607 setState(m_spec.state); in render()
611 makeDrawCall(m_spec.vao); in render()
613 setState(m_spec.vao); in render()
617 makeDrawCall(m_spec.state); in render()
623 setState(m_spec.vao); in genReferences()
625 makeDrawCall(m_spec.vao); in genReferences()
628 setState(m_spec.state); in genReferences()
630 makeDrawCall(m_spec.state); in genReferences()
644 logVertexArrayState(m_log, m_spec.vao, "Vertex Array Object State"); in iterate()
645 logVertexArrayState(m_log, m_spec.state, "OpenGL Vertex Array State"); in iterate()
675 Spec m_spec; member in deqp::gles3::Functional::MultiVertexArrayObjectTest
743 m_spec.useDrawElements = false; in init()
744 m_spec.instances = 0; in init()
745 m_spec.count = 24; in init()
746 m_spec.indexOffset = 0; in init()
747 m_spec.indexRangeMin = 0; in init()
748 m_spec.indexRangeMax = 0; in init()
749 m_spec.indexType = GL_NONE; in init()
750 m_spec.indexCount = 0; in init()
751 m_spec.vao.elementArrayBuffer = 0; in init()
752 m_spec.state.elementArrayBuffer = 0; in init()
757 m_spec.buffers.push_back(shortCoordBuffer48); in init()
759 m_spec.state.attributes.push_back(Attribute()); in init()
760 m_spec.state.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
761 m_spec.state.attributes[attribNdx].size = m_random.getInt(2,4); in init()
762 m_spec.state.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
763 m_spec.state.attributes[attribNdx].type = GL_SHORT; in init()
764 m_spec.state.attributes[attribNdx].integer = m_random.getBool(); in init()
765 m_spec.state.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
766 m_spec.state.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
767 m_spec.state.attributes[attribNdx].normalized = m_random.getBool(); in init()
768 m_spec.state.attributes[attribNdx].bufferNdx = attribNdx+1; in init()
772 m_spec.state.attributes[attribNdx].divisor = 0; in init()
773 m_spec.state.attributes[attribNdx].enabled = GL_TRUE; in init()
774 m_spec.state.attributes[attribNdx].size = 2; in init()
777 m_spec.vao.attributes.push_back(Attribute()); in init()
778 m_spec.vao.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
779 m_spec.vao.attributes[attribNdx].size = m_random.getInt(2,4); in init()
780 m_spec.vao.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
781 m_spec.vao.attributes[attribNdx].type = GL_SHORT; in init()
782 m_spec.vao.attributes[attribNdx].integer = m_random.getBool(); in init()
783 m_spec.vao.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
784 m_spec.vao.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
785 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool(); in init()
786 m_spec.vao.attributes[attribNdx].bufferNdx = attribCount - attribNdx; in init()
790 m_spec.vao.attributes[attribNdx].divisor = 0; in init()
791 m_spec.vao.attributes[attribNdx].enabled = GL_TRUE; in init()
792 m_spec.vao.attributes[attribNdx].size = 2; in init()
798 for (int bufferNdx = 0; bufferNdx < (int)m_spec.buffers.size(); bufferNdx++) in init()
800 deUint8* data = createRandomBufferData(m_spec.buffers[bufferNdx]); in init()
809 …GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, m_spec.buffers[bufferNdx].size, data, GL_DYNAMIC_DRAW… in init()
820 m_vaoProgram = createProgram(m_spec.vao); in init()
823 m_stateProgram = createProgram(m_spec.state); in init()
830 …if (m_spec.useDrawElements && (m_spec.vao.elementArrayBuffer == 0 || m_spec.state.elementArrayBuff… in init()
846 switch (m_spec.indexType) in generateIndices()
855 deUint8* indices = new deUint8[m_spec.indexCount * typeSize]; in generateIndices()
857 for (int i = 0; i < m_spec.indexCount; i++) in generateIndices()
861 switch (m_spec.indexType) in generateIndices()
865 GLuint v = (GLuint)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
872 GLushort v = (GLushort)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
879 GLubyte v = (GLubyte)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
1149 if (m_spec.useDrawElements) in makeDrawCall()
1153 if (m_spec.instances == 0) in makeDrawCall()
1154 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices)); in makeDrawCall()
1156 …LU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_s… in makeDrawCall()
1160 if (m_spec.instances == 0) in makeDrawCall()
1161 …GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_… in makeDrawCall()
1163 …lDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.in… in makeDrawCall()
1168 if (m_spec.instances == 0) in makeDrawCall()
1169 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count)); in makeDrawCall()
1171 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances)); in makeDrawCall()
1181 setState(m_spec.vao); in render()
1184 setState(m_spec.state); in render()
1188 makeDrawCall(m_spec.vao); in render()
1190 setState(m_spec.vao); in render()
1194 makeDrawCall(m_spec.state); in render()
1200 setState(m_spec.vao); in genReferences()
1202 makeDrawCall(m_spec.vao); in genReferences()
1205 setState(m_spec.state); in genReferences()
1207 makeDrawCall(m_spec.state); in genReferences()
1221 logVertexArrayState(m_log, m_spec.vao, "Vertex Array Object State"); in iterate()
1222 logVertexArrayState(m_log, m_spec.state, "OpenGL Vertex Array State"); in iterate()