1 #ifndef _ES2PTEXTURECASES_HPP 2 #define _ES2PTEXTURECASES_HPP 3 /*------------------------------------------------------------------------- 4 * drawElements Quality Program OpenGL ES 2.0 Module 5 * ------------------------------------------------- 6 * 7 * Copyright 2014 The Android Open Source Project 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * 21 *//*! 22 * \file 23 * \brief Texture format performance tests. 24 *//*--------------------------------------------------------------------*/ 25 26 #include "tcuDefs.hpp" 27 #include "tes2TestCase.hpp" 28 #include "glsShaderPerformanceCase.hpp" 29 #include "tcuMatrix.hpp" 30 #include "gluTexture.hpp" 31 32 namespace deqp 33 { 34 namespace gles2 35 { 36 namespace Performance 37 { 38 39 class Texture2DRenderCase : public gls::ShaderPerformanceCase 40 { 41 public: 42 Texture2DRenderCase(Context &context, const char *name, const char *description, uint32_t format, uint32_t dataType, 43 uint32_t wrapS, uint32_t wrapT, uint32_t minFilter, uint32_t magFilter, 44 const tcu::Mat3 &coordTransform, int numTextures, bool powerOfTwo); 45 ~Texture2DRenderCase(void); 46 47 void init(void); 48 void deinit(void); 49 50 private: 51 void setupProgram(uint32_t program); 52 void setupRenderState(void); 53 54 uint32_t m_format; 55 uint32_t m_dataType; 56 uint32_t m_wrapS; 57 uint32_t m_wrapT; 58 uint32_t m_minFilter; 59 uint32_t m_magFilter; 60 tcu::Mat3 m_coordTransform; 61 int m_numTextures; 62 bool m_powerOfTwo; 63 std::vector<glu::Texture2D *> m_textures; 64 }; 65 66 } // namespace Performance 67 } // namespace gles2 68 } // namespace deqp 69 70 #endif // _ES2PTEXTURECASES_HPP 71