1 #ifndef _ES3PTEXTURECASES_HPP 2 #define _ES3PTEXTURECASES_HPP 3 /*------------------------------------------------------------------------- 4 * drawElements Quality Program OpenGL ES 3.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 "tes3TestCase.hpp" 28 #include "glsShaderPerformanceCase.hpp" 29 #include "tcuMatrix.hpp" 30 #include "gluTexture.hpp" 31 32 namespace deqp 33 { 34 namespace gles3 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 internalFormat, 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 const uint32_t m_internalFormat; 55 const uint32_t m_wrapS; 56 const uint32_t m_wrapT; 57 const uint32_t m_minFilter; 58 const uint32_t m_magFilter; 59 const tcu::Mat3 m_coordTransform; 60 const int m_numTextures; 61 const bool m_powerOfTwo; 62 63 std::vector<glu::Texture2D *> m_textures; 64 }; 65 66 } // namespace Performance 67 } // namespace gles3 68 } // namespace deqp 69 70 #endif // _ES3PTEXTURECASES_HPP 71