Lines Matching defs:const

62 	const char*	name;
70 const ApiType gles31 = ApiType::es(3, 1);
71 const ApiType gles32 = ApiType::es(3, 2);
74 const FormatInfo compressedFormats[] =
126 const map<GLenum, UnsizedFormatInfo>
140 const vector<pair<vector<GLenum>, vector<GLenum>>>
188 const float vertexPositions[] =
196 const float vertexTexCoords[] =
204 const char* vertexShader =
215 const char* fragmentShader =
233 const OffsetInfo defaultOffset { { 0.0f, 0.0f, 0.0f, 0.0f }, { 1.0f, 1.0f, 1.0f, 1.0f } };
234 const map<GLenum, OffsetInfo> offsets =
249 GLuint programId() const;
250 GLuint texId(int index) const;
251 GLuint vaoId() const;
252 GLuint offsetLoc() const;
253 GLuint scaleLoc() const;
265 SharedData (const SharedData& other) = delete;
266 SharedData& operator= (const SharedData& other) = delete;
286 const auto& gl = m_context.getRenderContext().getFunctions();
288 const bool supportsES32 = contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
289 const auto glslVersion = getGLSLVersionDeclaration(supportsES32 ? glu::GLSL_VERSION_320_ES : glu::GLSL_VERSION_310_ES);
290 const auto args = map<string, string> { { "VERSION", glslVersion } };
291 const auto vs = StringTemplate(vertexShader).specialize(args);
292 const auto fs = StringTemplate(fragmentShader).specialize(args);
297 const auto program = m_program->getProgram();
298 const auto positionLoc = gl.getAttribLocation(program, "in_position");
300 const auto texCoordLoc = gl.getAttribLocation(program, "in_texCoord");
363 const auto& gl = m_context.getRenderContext().getFunctions();
374 GLuint SharedData::programId () const
379 GLuint SharedData::texId (int index) const
384 GLuint SharedData::vaoId () const
389 GLuint SharedData::offsetLoc () const
394 GLuint SharedData::scaleLoc () const
400 const GLsizei width = 8;
401 const GLsizei height = 8;
402 const GLsizei depth = 6;
403 const vector<deUint8> data =
417 const glw::Functions& gl;
420 const Archive& archive;
452 const GLenum cubemapFaces[] =
466 ImageInfo loadImage (const Archive& archive, GLenum format, size_t imageIndex)
468 const auto data = imageData.find(format);
481 const de::UniquePtr<Resource> resource (archive.getResource(data->second[imageIndex].path.c_str()));
487 const auto size = resource->getSize();
494 void setTextureParameters (const glw::Functions& gl, GLenum target)
504 const auto repeatMode = GL_CLAMP_TO_EDGE;
585 const auto format = GL_COMPRESSED_RGB8_ETC2;
586 const GLsizei blockSize = 4;
587 const GLsizei blockDataSize = 8;
588 const auto data = loadImage(context.archive, format, 0);
589 const auto& gl = context.gl;
593 const auto updateWidth = invalidTexture.width - (i % 2) * blockSize;
594 const auto updateHeight = invalidTexture.height - ((i + 1) % 2) * blockSize;
595 const auto updateDataSize = (updateWidth / blockSize) * (updateHeight / blockSize) * blockDataSize;
638 const auto data = loadImage(testContext.getTestContext().getArchive(), format, 0);
777 const auto& gl = context.gl;
778 const auto format0 = GL_COMPRESSED_RGB8_ETC2;
779 const auto data0 = loadImage(context.archive, format0, 0);
780 const auto format1 = GL_COMPRESSED_R11_EAC;
781 const auto data1 = loadImage(context.archive, format1, 0);
809 const auto data = loadImage(testContext.getTestContext().getArchive(), compressedFormats[i].internalFormat, 0);
855 const auto& gl = context.gl;
856 const size_t textureWidth = 240;
857 const size_t textureHeight = 240;
877 const auto format = compressedFormats[i];
881 const auto data = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 0);
886 const auto& gl = context.gl;
896 const auto& gl = context.gl;
936 const GLenum format = GL_COMPRESSED_RGB8_ETC2;
937 const auto data = loadImage(context.archive, format, 0);
938 const auto& gl = context.gl;
970 const GLenum format = GL_COMPRESSED_RGB8_ETC2;
971 const auto data = loadImage(context.archive, format, 0);
972 const auto& gl = context.gl;
1007 const GLenum format = GL_COMPRESSED_RGB8_ETC2;
1008 const auto data = loadImage(context.archive, format, 0);
1009 const auto& gl = context.gl;
1035 const GLenum format = GL_COMPRESSED_RGB8_ETC2;
1036 const auto data = loadImage(context.archive, format, 0);
1037 const auto& gl = context.gl;
1051 const GLenum format = GL_COMPRESSED_RGB8_ETC2;
1052 const auto data = loadImage(context.archive, format, 0);
1053 const auto& gl = context.gl;
1081 const auto& format = compressedFormats[i];
1085 const auto data0 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 0);
1086 const auto data1 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 1);
1092 const auto& gl = context.gl;
1112 const auto& format = compressedFormats[i];
1116 const auto data0 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 0);
1117 const auto data1 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 1);
1170 const auto& format = compressedFormats[i];
1174 const auto data0 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 0);
1175 const auto data1 = loadImage(testContext.getTestContext().getArchive(), format.internalFormat, 1);
1221 for(const auto& format : copyFormats)
1225 for(const auto& uncompressedFormat : format.first)
1227 for(const auto& compressedFormat : format.second)
1233 const auto& gl = context.gl;
1234 const auto& image = imageData.at(compressedFormat);
1235 const auto& unsizedInfo = unsizedFormats.at(uncompressedFormat);
1236 const auto textureData = loadImage(context.archive, compressedFormat, 0);
1237 const auto compressedInfo = find_if(begin(compressedFormats), end(compressedFormats), [compressedFormat](const FormatInfo& fmt) { return fmt.internalFormat == compressedFormat; });
1242 const auto targetWidth = image[0].width / compressedInfo->blockSize[0];
1243 const auto targetHeight = image[0].height / compressedInfo->blockSize[1];
1281 for(const auto& format : copyFormats)
1285 for(const auto& uncompressedFormat : format.first)
1287 for(const auto& compressedFormat : format.second)
1293 const auto& gl = context.gl;
1294 const auto& image = imageData.at(compressedFormat);
1295 const auto& unsizedInfo = unsizedFormats.at(uncompressedFormat);
1296 const auto textureData = loadImage(context.archive, compressedFormat, 0);
1297 const auto compressedInfo = find_if(begin(compressedFormats), end(compressedFormats), [compressedFormat](const FormatInfo& fmt) { return fmt.internalFormat == compressedFormat; });
1300 const auto sourceWidth = image[0].width / compressedInfo->blockSize[0];
1301 const auto sourceHeight = image[0].height / compressedInfo->blockSize[1];
1340 for(const auto& format : copyFormats)
1344 for(const auto& format0 : format.first)
1346 for(const auto& format1 : format.first)
1352 const auto& gl = context.gl;
1353 const auto image0 = loadImage(context.archive, format0, 0);
1354 const auto image1 = loadImage(context.archive, format1, 1);
1384 explicit CompressedApiTest (deqp::Context& context, const ApiCaseParams& params);
1397 CompressedApiTest::CompressedApiTest (deqp::Context& context, const ApiCaseParams& params)
1409 const auto& gl = m_context.getRenderContext().getFunctions();
1423 const auto& gl = m_context.getRenderContext().getFunctions();
1440 const auto& gl = m_context.getRenderContext().getFunctions();
1453 for(const auto& step : steps)
1456 const auto errorCode = gl.getError();
1474 CompressedFormatTest (deqp::Context& context, shared_ptr<SharedData> data, const FormatInfo& format);
1481 Surface drawTestImage (const glw::Functions& gl, GLuint texId, GLsizei width, GLsizei height);
1484 const FormatInfo& formatInfo;
1487 CompressedFormatTest::CompressedFormatTest (deqp::Context& context, shared_ptr<SharedData> data, const FormatInfo& format)
1508 Surface CompressedFormatTest::drawTestImage (const glw::Functions& gl, GLuint texId, GLsizei width, GLsizei height)
1533 const auto& archive = m_context.getTestContext().getArchive();
1534 const auto image0 = loadImage(archive, formatInfo.internalFormat, 0);
1535 const auto image1 = loadImage(archive, formatInfo.internalFormat, 1);
1536 const auto image2 = loadImage(archive, formatInfo.internalFormat, 2);
1545 const auto& gl = m_context.getRenderContext().getFunctions();
1562 const GLenum bufferFormats[2][2] = {
1566 const bool hasAlpha = formatInfo.format == GL_RGBA;
1623 const auto referenceImage = drawTestImage(gl, texIds[0], image0.width, image0.height);
1625 const auto& offsetIt = offsets.find(formatInfo.internalFormat);
1626 const auto& offset = offsetIt != offsets.end() ? offsetIt->second : defaultOffset;
1631 const auto compressedImage = drawTestImage(gl, texIds[1], image0.width, image0.height);
1668 const auto apiGroup = new TestCaseGroup(m_context, "api", "Api call return values");
1670 for(const auto& apiCase : apiTests)
1674 const auto formatGroup = new TestCaseGroup(m_context, "format", "Compressed format textures");
1676 const auto sharedData = make_shared<SharedData>(m_context);
1677 for(const auto& formatInfo : compressedFormats)