Lines Matching defs:internal_format
93 static void maskPixelForFormat(glw::GLenum internal_format, glw::GLubyte* pixel);
95 static glw::GLdouble getEpsilon(glw::GLenum internal_format);
96 static glw::GLuint getPixelSizeForFormat(glw::GLenum internal_format);
97 static glw::GLenum getFormat(glw::GLenum internal_format);
98 static glw::GLuint getNumberOfChannels(glw::GLenum internal_format);
100 static std::string getPixelString(glw::GLenum internal_format, const glw::GLubyte* pixel);
102 static glw::GLenum getType(glw::GLenum internal_format);
106 static glw::GLuint prepareCompressedTex(deqp::Context& context, glw::GLenum target, glw::GLenum internal_format);
110 static glw::GLuint prepareRenderBuffer(deqp::Context& context, glw::GLenum internal_format);
112 static glw::GLuint prepareTex16x16x6(deqp::Context& context, glw::GLenum target, glw::GLenum internal_format,
116 glw::GLenum internal_format, glw::GLenum format, glw::GLenum type, glw::GLuint level,
127 static void packPixel(glw::GLenum internal_format, glw::GLenum type, glw::GLdouble red, glw::GLdouble green,
137 static inline bool roundComponent(glw::GLenum internal_format, glw::GLenum component, glw::GLdouble& value);
245 * @param internal_format Internal format of image
249 GLuint getPixelSizeForCompatibilityVerification(GLenum internal_format)
251 GLuint size = Utils::getPixelSizeForFormat(internal_format);
253 switch (internal_format)
520 /** Get epsilon for given internal_format
522 * @param internal_format Internal format of image
526 GLdouble Utils::getEpsilon(GLenum internal_format)
530 switch (internal_format)
606 * @param internal_format Internal format
610 GLenum Utils::getFormat(GLenum internal_format)
614 switch (internal_format)
712 /** Get number of channels for given internal_format
714 * @param internal_format Internal format
718 GLuint Utils::getNumberOfChannels(GLenum internal_format)
722 switch (internal_format)
806 * @param internal_format Internal format
810 GLenum Utils::getType(GLenum internal_format)
814 switch (internal_format)
931 * @param internal_format Internal format of texture
936 void Utils::maskPixelForFormat(GLenum internal_format, GLubyte* pixel)
938 switch (internal_format)
952 * @param internal_format Internal format
956 GLuint Utils::getPixelSizeForFormat(GLenum internal_format)
960 switch (internal_format)
1084 * @param internal_format Format
1089 std::string Utils::getPixelString(GLenum internal_format, const GLubyte* pixel)
1091 const GLuint pixel_size = Utils::getPixelSizeForFormat(internal_format);
1277 static const GLenum internal_format = GL_RGBA8;
1291 gl.texImage2DMultisample(target, n_samples, internal_format, width, height, GL_FALSE /* fixedsamplelocation */);
1300 gl.texImage3DMultisample(target, n_samples, internal_format, width, height, depth,
1320 * @param internal_format Internal format of render buffer
1324 GLuint Utils::prepareRenderBuffer(deqp::Context& context, GLenum internal_format)
1338 gl.renderbufferStorage(GL_RENDERBUFFER, internal_format, width, height);
1352 * @param internal_format <internalformat>
1359 GLuint Utils::prepareTex16x16x6(deqp::Context& context, GLenum target, GLenum internal_format, GLenum format,
1371 prepareTexture(context, name, target, internal_format, format, type, level, width, height, depth, pixels,
1382 * @param internal_format <internalformat>
1394 void Utils::prepareTexture(deqp::Context& context, GLuint name, GLenum target, GLenum internal_format, GLenum format,
1414 gl.renderbufferStorage(target, internal_format, width, height);
1426 gl.texImage1D(target, level, internal_format, width, border, format, type, pixels);
1439 gl.texImage2D(target, level, internal_format, width, height, border, format, type, pixels);
1449 gl.texImage2DMultisample(target, samples, internal_format, width, height, GL_FALSE /* fixedsamplelocation */);
1459 gl.texImage3DMultisample(target, samples, internal_format, width, height, depth,
1473 gl.texImage3D(target, level, internal_format, width, height, depth, border, format, type, pixels);
1503 gl.texBuffer(GL_TEXTURE_BUFFER, internal_format, out_buf_id);
1520 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, internal_format, width, height, border, format, type,
1522 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, internal_format, width, height, border, format, type,
1524 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, internal_format, width, height, border, format, type,
1526 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, internal_format, width, height, border, format, type,
1528 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, internal_format, width, height, border, format, type,
1530 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, internal_format, width, height, border, format, type,
1546 << ". Format: " << glu::getInternalFormatParameterStr(internal_format) << ", "
2274 * @param internal_format Internal format of image
2282 void Utils::packPixel(GLenum internal_format, GLenum type, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha,
2285 switch (internal_format)
2373 * @param internal_format Internal format of image
2430 inline bool Utils::roundComponent(GLenum internal_format, GLenum component, GLdouble& value)
2432 int exponent = (internal_format == GL_RGB4 ? 4 : (internal_format == GL_RGB5 ? 5 : 0));
2438 if (internal_format == GL_RGB4)
3074 const GLenum internal_format = desc.m_internal_format;
3120 Utils::packPixel(internal_format, type, 1.0, 1.0, 1.0, 1.0, pixel_data);
3134 const GLenum internal_format = desc.m_internal_format;
3200 Utils::packPixel(internal_format, type, red, green, blue, alpha, pixel);
3639 const GLenum internal_format = s_internal_formats[fmt_id];
3640 const GLenum format = Utils::getFormat(internal_format);
3641 const GLenum type = Utils::getType(internal_format);
3643 const testCase test_case = { GL_TEXTURE_2D, internal_format, format, type };
3956 const GLenum internal_format = test_case.m_internal_format;
3959 const GLuint pixel_size = Utils::getPixelSizeForFormat(internal_format);
3978 Utils::packPixel(internal_format, type, 1.0, 1.0, 1.0, 1.0, pixel_data);
3991 const GLenum internal_format = test_case.m_internal_format;
3994 const GLuint pixel_size = Utils::getPixelSizeForFormat(internal_format);
4035 Utils::packPixel(internal_format, type, red, green, blue, alpha, pixel_data);