• Home
  • Raw
  • Download

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()
580 if (m_spec.useDrawElements) in makeDrawCall()
584 if (m_spec.instances == 0) in makeDrawCall()
585 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices)); in makeDrawCall()
587 …LU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_s… in makeDrawCall()
591 if (m_spec.instances == 0) in makeDrawCall()
592 …GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_… in makeDrawCall()
594 …lDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.in… in makeDrawCall()
599 if (m_spec.instances == 0) in makeDrawCall()
600 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count)); in makeDrawCall()
602 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances)); in makeDrawCall()
612 setState(m_spec.vao); in render()
615 setState(m_spec.state); in render()
619 makeDrawCall(m_spec.vao); in render()
621 setState(m_spec.vao); in render()
625 makeDrawCall(m_spec.state); in render()
631 setState(m_spec.vao); in genReferences()
633 makeDrawCall(m_spec.vao); in genReferences()
636 setState(m_spec.state); in genReferences()
638 makeDrawCall(m_spec.state); in genReferences()
652 logVertexArrayState(m_log, m_spec.vao, "Vertex Array Object State"); in iterate()
653 logVertexArrayState(m_log, m_spec.state, "OpenGL Vertex Array State"); in iterate()
683 Spec m_spec; member in deqp::gles3::Functional::MultiVertexArrayObjectTest
751 m_spec.useDrawElements = false; in init()
752 m_spec.instances = 0; in init()
753 m_spec.count = 24; in init()
754 m_spec.indexOffset = 0; in init()
755 m_spec.indexRangeMin = 0; in init()
756 m_spec.indexRangeMax = 0; in init()
757 m_spec.indexType = GL_NONE; in init()
758 m_spec.indexCount = 0; in init()
759 m_spec.vao.elementArrayBuffer = 0; in init()
760 m_spec.state.elementArrayBuffer = 0; in init()
765 m_spec.buffers.push_back(shortCoordBuffer48); in init()
767 m_spec.state.attributes.push_back(Attribute()); in init()
768 m_spec.state.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
769 m_spec.state.attributes[attribNdx].size = m_random.getInt(2,4); in init()
770 m_spec.state.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
771 m_spec.state.attributes[attribNdx].type = GL_SHORT; in init()
772 m_spec.state.attributes[attribNdx].integer = m_random.getBool(); in init()
773 m_spec.state.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
774 m_spec.state.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
775 m_spec.state.attributes[attribNdx].normalized = m_random.getBool(); in init()
776 m_spec.state.attributes[attribNdx].bufferNdx = attribNdx+1; in init()
780 m_spec.state.attributes[attribNdx].divisor = 0; in init()
781 m_spec.state.attributes[attribNdx].enabled = GL_TRUE; in init()
782 m_spec.state.attributes[attribNdx].size = 2; in init()
785 m_spec.vao.attributes.push_back(Attribute()); in init()
786 m_spec.vao.attributes[attribNdx].enabled = (m_random.getInt(0, 4) == 0) ? GL_FALSE : GL_TRUE; in init()
787 m_spec.vao.attributes[attribNdx].size = m_random.getInt(2,4); in init()
788 m_spec.vao.attributes[attribNdx].stride = 2*m_random.getInt(1, 3); in init()
789 m_spec.vao.attributes[attribNdx].type = GL_SHORT; in init()
790 m_spec.vao.attributes[attribNdx].integer = m_random.getBool(); in init()
791 m_spec.vao.attributes[attribNdx].divisor = m_random.getInt(0, 1); in init()
792 m_spec.vao.attributes[attribNdx].offset = 2*m_random.getInt(0, 2); in init()
793 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool(); in init()
794 m_spec.vao.attributes[attribNdx].bufferNdx = attribCount - attribNdx; in init()
798 m_spec.vao.attributes[attribNdx].divisor = 0; in init()
799 m_spec.vao.attributes[attribNdx].enabled = GL_TRUE; in init()
800 m_spec.vao.attributes[attribNdx].size = 2; in init()
806 for (int bufferNdx = 0; bufferNdx < (int)m_spec.buffers.size(); bufferNdx++) in init()
808 deUint8* data = createRandomBufferData(m_spec.buffers[bufferNdx]); in init()
817 …GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, m_spec.buffers[bufferNdx].size, data, GL_DYNAMIC_DRAW… in init()
828 m_vaoProgram = createProgram(m_spec.vao); in init()
831 m_stateProgram = createProgram(m_spec.state); in init()
838 …if (m_spec.useDrawElements && (m_spec.vao.elementArrayBuffer == 0 || m_spec.state.elementArrayBuff… in init()
854 switch (m_spec.indexType) in generateIndices()
863 deUint8* indices = new deUint8[m_spec.indexCount * typeSize]; in generateIndices()
865 for (int i = 0; i < m_spec.indexCount; i++) in generateIndices()
869 switch (m_spec.indexType) in generateIndices()
873 GLuint v = (GLuint)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
880 GLushort v = (GLushort)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
887 GLubyte v = (GLubyte)m_random.getInt(m_spec.indexRangeMin, m_spec.indexRangeMax); in generateIndices()
1157 if (m_spec.useDrawElements) in makeDrawCall()
1161 if (m_spec.instances == 0) in makeDrawCall()
1162 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices)); in makeDrawCall()
1164 …LU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_s… in makeDrawCall()
1168 if (m_spec.instances == 0) in makeDrawCall()
1169 …GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_… in makeDrawCall()
1171 …lDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.in… in makeDrawCall()
1176 if (m_spec.instances == 0) in makeDrawCall()
1177 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count)); in makeDrawCall()
1179 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances)); in makeDrawCall()
1189 setState(m_spec.vao); in render()
1192 setState(m_spec.state); in render()
1196 makeDrawCall(m_spec.vao); in render()
1198 setState(m_spec.vao); in render()
1202 makeDrawCall(m_spec.state); in render()
1208 setState(m_spec.vao); in genReferences()
1210 makeDrawCall(m_spec.vao); in genReferences()
1213 setState(m_spec.state); in genReferences()
1215 makeDrawCall(m_spec.state); in genReferences()
1229 logVertexArrayState(m_log, m_spec.vao, "Vertex Array Object State"); in iterate()
1230 logVertexArrayState(m_log, m_spec.state, "OpenGL Vertex Array State"); in iterate()