Lines Matching refs:texture
21 * \brief Negative Texture API tests.
127 : TestCaseGroup(context, "texture", "Negative Texture API Cases")
141 m_log << TestLog::Section("", "GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1).");
154 GLuint texture[2];
155 glGenTextures(2, texture);
164 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target.");
165 glBindTexture(GL_TEXTURE_2D, texture[0]);
167 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]);
169 glBindTexture(GL_TEXTURE_3D, texture[0]);
171 glBindTexture(GL_TEXTURE_2D_ARRAY, texture[0]);
174 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[1]);
176 glBindTexture(GL_TEXTURE_2D, texture[1]);
178 glBindTexture(GL_TEXTURE_3D, texture[1]);
180 glBindTexture(GL_TEXTURE_2D_ARRAY, texture[1]);
184 glDeleteTextures(2, texture);
242 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if level is greater than log_2(GL_MAX_TEXTURE_SIZE) for a 2d texture target.");
847 GLuint texture;
848 glGenTextures (1, &texture);
849 glBindTexture (GL_TEXTURE_2D, texture);
857 glDeleteTextures(1, &texture);
889 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if level is greater than log_2(GL_MAX_TEXTURE_SIZE) for 2D texture targets.");
908 GLuint texture;
909 glGenTextures (1, &texture);
910 glBindTexture (GL_TEXTURE_2D, texture);
922 glDeleteTextures(1, &texture);
926 GLuint texture;
927 glGenTextures (1, &texture);
928 glBindTexture (GL_TEXTURE_2D, texture);
940 glDeleteTextures(1, &texture);
944 GLuint texture;
945 glGenTextures (1, &texture);
946 glBindTexture (GL_TEXTURE_2D, texture);
958 glDeleteTextures(1, &texture);
964 GLuint texture[2];
967 glGenTextures (2, texture);
968 glBindTexture (GL_TEXTURE_2D, texture[0]);
970 glBindTexture (GL_TEXTURE_CUBE_MAP, texture[1]);
1001 glDeleteTextures(2, texture);
1010 GLuint texture;
1011 glGenTextures(1, &texture);
1017 glBindTexture(GL_TEXTURE_2D, texture);
1022 glDeleteTextures(1, &texture);
1029 GLuint texture[2];
1030 glGenTextures(2, texture);
1037 m_log << TestLog::Section("", "INVALID_OPERATION is generated if the texture bound to target is not cube complete.");
1038 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]);
1044 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]);
1056 glBindTexture(GL_TEXTURE_2D, texture[1]);
1062 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the level base array was not specified with an unsized internal format or a sized internal format that is both color-renderable and texture-filterable.");
1079 glDeleteTextures(2, texture);
1384 deUint32 texture;
1390 glGenTextures (1, &texture);
1391 glBindTexture (GL_TEXTURE_2D, texture);
1415 glDeleteTextures (1, &texture);
1422 deUint32 texture;
1423 glGenTextures (1, &texture);
1424 glBindTexture (GL_TEXTURE_2D, texture);
1443 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the combination of internalFormat of the previously specified texture array, format and type is not valid.");
1458 glDeleteTextures (1, &texture);
1514 deUint32 texture;
1515 glGenTextures(1, &texture);
1516 glBindTexture(GL_TEXTURE_2D, texture);
1529 glDeleteTextures(1, &texture);
1533 deUint32 texture;
1534 glGenTextures (1, &texture);
1535 glBindTexture (GL_TEXTURE_2D, texture);
1548 glDeleteTextures (1, &texture);
1552 deUint32 texture;
1553 glGenTextures (1, &texture);
1554 glBindTexture (GL_TEXTURE_2D, texture);
1567 glDeleteTextures (1, &texture);
1572 deUint32 texture;
1575 glGenTextures (1, &texture);
1576 glBindTexture (GL_TEXTURE_2D, texture);
1608 glDeleteTextures (1, &texture);
1635 GLuint texture;
1636 glGenTextures(1, &texture);
1637 glBindTexture(GL_TEXTURE_2D, texture);
1659 glDeleteTextures(1, &texture);
1686 GLuint texture;
1687 glGenTextures(1, &texture);
1688 glBindTexture(GL_TEXTURE_2D, texture);
1710 glDeleteTextures(1, &texture);
1742 GLuint texture;
1743 glGenTextures(1, &texture);
1744 glBindTexture(GL_TEXTURE_2D, texture);
1771 glDeleteTextures(1, &texture);
1803 GLuint texture;
1804 glGenTextures(1, &texture);
1805 glBindTexture(GL_TEXTURE_2D, texture);
1832 glDeleteTextures(1, &texture);
1844 deUint32 texture;
1845 glGenTextures (1, &texture);
1846 glBindTexture (GL_TEXTURE_2D, texture);
1850 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if format does not match the internal format of the texture image being modified.");
1855 m_log << TestLog::Section("", "For ETC2/EAC images GL_INVALID_OPERATION is generated if width is not a multiple of four, and width + xoffset is not equal to the width of the texture level.");
1860 m_log << TestLog::Section("", "For ETC2/EAC images GL_INVALID_OPERATION is generated if height is not a multiple of four, and height + yoffset is not equal to the height of the texture level.");
1874 glDeleteTextures (1, &texture);
1930 GLuint texture;
1931 glGenTextures(1, &texture);
1932 glBindTexture(GL_TEXTURE_2D, texture);
1949 glDeleteTextures(1, &texture);
1953 deUint32 texture;
1954 glGenTextures (1, &texture);
1955 glBindTexture (GL_TEXTURE_2D, texture);
1969 glDeleteTextures (1, &texture);
1973 deUint32 texture;
1974 glGenTextures (1, &texture);
1975 glBindTexture (GL_TEXTURE_2D, texture);
1988 glDeleteTextures(1, &texture);
1992 deUint32 texture;
1993 glGenTextures (1, &texture);
1994 glBindTexture (GL_TEXTURE_2D, texture);
2006 glDeleteTextures (1, &texture);
2011 deUint32 texture;
2014 glGenTextures (1, &texture);
2015 glBindTexture (GL_TEXTURE_2D, texture);
2037 glDeleteTextures (1, &texture);
2175 deUint32 texture;
2181 glGenTextures (1, &texture);
2182 glBindTexture (GL_TEXTURE_3D, texture);
2208 glDeleteTextures (1, &texture);
2215 deUint32 texture;
2216 glGenTextures (1, &texture);
2217 glBindTexture (GL_TEXTURE_3D, texture);
2238 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the combination of internalFormat of the previously specified texture array, format and type is not valid.");
2251 glDeleteTextures (1, &texture);
2330 deUint32 texture;
2331 glGenTextures (1, &texture);
2332 glBindTexture (GL_TEXTURE_3D, texture);
2351 glDeleteTextures (1, &texture);
2369 deUint32 texture;
2372 glGenTextures (1, &texture);
2373 glBindTexture (GL_TEXTURE_3D, texture);
2407 glDeleteTextures (1, &texture);
2414 GLuint texture;
2415 glGenTextures (1, &texture);
2416 glBindTexture (GL_TEXTURE_3D, texture);
2424 glDeleteTextures(1, &texture);
2472 GLuint texture;
2473 glGenTextures (1, &texture);
2474 glBindTexture (GL_TEXTURE_3D, texture);
2488 glDeleteTextures(1, &texture);
2492 GLuint texture;
2493 glGenTextures (1, &texture);
2494 glBindTexture (GL_TEXTURE_3D, texture);
2512 glDeleteTextures(1, &texture);
2516 GLuint texture;
2517 glGenTextures (1, &texture);
2518 glBindTexture (GL_TEXTURE_3D, texture);
2531 glDeleteTextures(1, &texture);
2536 GLuint texture[2];
2538 glGenTextures (2, texture);
2539 glBindTexture (GL_TEXTURE_3D, texture[0]);
2541 glBindTexture (GL_TEXTURE_2D_ARRAY, texture[1]);
2556 glDeleteTextures(2, texture);
2710 deUint32 texture;
2711 glGenTextures (1, &texture);
2712 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2716 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if format does not match the internal format of the texture image being modified.");
2726 m_log << TestLog::Section("", "For ETC2/EAC images GL_INVALID_OPERATION is generated if width is not a multiple of four, and width + xoffset is not equal to the width of the texture level.");
2731 m_log << TestLog::Section("", "For ETC2/EAC images GL_INVALID_OPERATION is generated if height is not a multiple of four, and height + yoffset is not equal to the height of the texture level.");
2745 glDeleteTextures (1, &texture);
2749 deUint32 texture;
2750 glGenTextures (1, &texture);
2751 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2760 glDeleteTextures (1, &texture);
2764 deUint32 texture;
2765 glGenTextures (1, &texture);
2766 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2776 glDeleteTextures (1, &texture);
2780 deUint32 texture;
2781 glGenTextures (1, &texture);
2782 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2797 glDeleteTextures (1, &texture);
2801 deUint32 texture;
2802 glGenTextures (1, &texture);
2803 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2819 glDeleteTextures (1, &texture);
2823 deUint32 texture;
2824 glGenTextures (1, &texture);
2825 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2840 glDeleteTextures (1, &texture);
2844 deUint32 texture;
2845 glGenTextures (1, &texture);
2846 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2858 glDeleteTextures (1, &texture);
2863 deUint32 texture;
2867 glGenTextures (1, &texture);
2868 glBindTexture (GL_TEXTURE_2D_ARRAY, texture);
2890 glDeleteTextures (1, &texture);
2897 deUint32 texture;
2898 glGenTextures (1, &texture);
2899 glBindTexture (GL_TEXTURE_2D, texture);
2926 glDeleteTextures(1, &texture);
2933 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the default texture object is curently bound to target.");
2938 deUint32 texture;
2939 glGenTextures (1, &texture);
2940 glBindTexture (GL_TEXTURE_2D, texture);
2942 texture object currently bound to target already has GL_TEXTURE_IMMUTABLE_FORMAT set to GL_TRUE.");
2954 glDeleteTextures(1, &texture);
2958 deUint32 texture;
2959 glGenTextures (1, &texture);
2960 glBindTexture (GL_TEXTURE_2D, texture);
2979 glDeleteTextures(1, &texture);
3006 deUint32 texture = 0;
3008 glGenTextures (1, &texture);
3009 glBindTexture (GL_TEXTURE_2D, texture);
3014 glDeleteTextures(1, &texture);
3016 glGenTextures (1, &texture);
3017 glBindTexture (GL_TEXTURE_CUBE_MAP, texture);
3022 glDeleteTextures(1, &texture);
3031 deUint32 texture;
3032 glGenTextures (1, &texture);
3033 glBindTexture (GL_TEXTURE_3D, texture);
3062 glDeleteTextures(1, &texture);
3068 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the default texture object is curently bound to target.");
3073 deUint32 texture;
3074 glGenTextures (1, &texture);
3075 glBindTexture (GL_TEXTURE_3D, texture);
3077 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the texture object currently bound to target already has GL_TEXTURE_IMMUTABLE_FORMAT set to GL_TRUE.");
3089 glDeleteTextures(1, &texture);
3093 deUint32 texture;
3094 glGenTextures (1, &texture);
3095 glBindTexture (GL_TEXTURE_3D, texture);
3116 glDeleteTextures(1, &texture);
3148 deUint32 texture = 0;
3150 glGenTextures (1, &texture);
3151 glBindTexture (GL_TEXTURE_3D, texture);
3160 glDeleteTextures(1, &texture);