Home
last modified time | relevance | path

Searched refs:kTextureSize (Results 1 – 8 of 8) sorted by relevance

/external/angle/src/tests/gl_tests/
DCubeMapTextureTest.cpp145 constexpr GLsizei kTextureSize = 32; in runSampleCoordinateTransformTest() local
151 std::vector<GLColor> faceData(kTextureSize * kTextureSize); in runSampleCoordinateTransformTest()
154 for (size_t row = 0; row < kTextureSize / kCubeFaceSectionCountSqrt; ++row) in runSampleCoordinateTransformTest()
156 for (size_t col = 0; col < kTextureSize / kCubeFaceSectionCountSqrt; ++col) in runSampleCoordinateTransformTest()
162 size_t r = row + srow * kTextureSize / kCubeFaceSectionCountSqrt; in runSampleCoordinateTransformTest()
163 size_t c = col + scol * kTextureSize / kCubeFaceSectionCountSqrt; in runSampleCoordinateTransformTest()
165 faceData[r * kTextureSize + c] = faceColors[face][s]; in runSampleCoordinateTransformTest()
171 glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, 0, GL_RGBA, kTextureSize, kTextureSize, in runSampleCoordinateTransformTest()
DIncompleteTextureTest.cpp120 constexpr GLsizei kTextureSize = 2; in TEST_P() local
121 std::vector<GLColor> textureData(kTextureSize * kTextureSize, GLColor::red); in TEST_P()
124 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
140 glTexImage2D(GL_TEXTURE_2D, 1, GL_RGBA, kTextureSize >> 1, kTextureSize >> 1, 0, GL_RGBA, in TEST_P()
DMipmapTest.cpp649 constexpr uint32_t kTextureSize = 1; in TEST_P() local
651 const std::vector<GLColor> kInitialColor(kTextureSize * kTextureSize, in TEST_P()
656 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
664 verifyAllMips(kTextureSize, kTextureSize, kInitialColor[0]); in TEST_P()
670 constexpr uint32_t kTextureSize = 4096; in TEST_P() local
672 const std::vector<GLColor> kInitialColor(kTextureSize * kTextureSize, in TEST_P()
677 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
688 verifyAllMips(kTextureSize, kTextureSize, kInitialColor[0]); in TEST_P()
1758 constexpr GLint kTextureSize = 16; in TEST_P() local
1759 const std::vector<GLColor> kLevel0Data(kTextureSize * kTextureSize, GLColor::red); in TEST_P()
[all …]
DMemoryBarrierTest.cpp358 static constexpr int kTextureSize = 1; member in __anon5f3f2fec0111::MemoryBarrierTestBase
374 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, kTextureSize, kTextureSize); in createFramebuffer()
375 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureSize, kTextureSize, GL_RGBA, GL_UNSIGNED_BYTE, in createFramebuffer()
435 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, kTextureSize, kTextureSize); in createStorageImage()
436 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureSize, kTextureSize, GL_RGBA, in createStorageImage()
1373 glReadPixels(0, 0, kTextureSize, kTextureSize, GL_RGBA, GL_UNSIGNED_BYTE, 0); in pixelBufferBitBufferWriteThenPack()
1433 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureSize, kTextureSize, GL_RGBA, GL_UNSIGNED_BYTE, in pixelBufferBitBufferWriteThenUnpack()
1464 glReadPixels(0, 0, kTextureSize, kTextureSize, GL_RGBA, GL_UNSIGNED_BYTE, 0); in pixelBufferBitPackThenBufferWrite()
1519 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kTextureSize, kTextureSize, GL_RGBA, GL_UNSIGNED_BYTE, in pixelBufferBitUnpackThenBufferWrite()
2513 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, kTextureSize, kTextureSize); in textureUpdateBitImageWriteThenCopy()
[all …]
DRobustResourceInitTest.cpp1281 constexpr GLint kTextureSize = 16; in TEST_P() local
1286 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
1315 constexpr GLint kTextureSize = 16; in TEST_P() local
1316 const std::vector<GLColor> kInitData(kTextureSize * kTextureSize, GLColor::blue); in TEST_P()
1321 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
1345 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
1368 constexpr GLint kTextureSize = 16; in TEST_P() local
1377 glTexImage2D(target, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
DUniformTest.cpp1441 constexpr GLsizei kTextureSize = 2; in TEST_P() local
1442 std::vector<GLColor> textureData(kTextureSize * kTextureSize, GLColor::green); in TEST_P()
1443 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in TEST_P()
/external/angle/src/tests/perf_tests/
DFramebufferAttachmentPerfTest.cpp20 constexpr unsigned int kTextureSize = 256; variable
34 windowWidth = kTextureSize; in FramebufferAttachmentParams()
35 windowHeight = kTextureSize; in FramebufferAttachmentParams()
92 std::vector<GLubyte> textureData(kTextureSize * kTextureSize * 4); in initTextures()
101 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kTextureSize, kTextureSize, 0, GL_RGBA, in initTextures()
/external/angle/src/libANGLE/renderer/gl/
Drenderergl_utils.cpp333 constexpr GLsizei kTextureSize = 16; in CheckSizedInternalFormatTextureRenderability() local
334 functions->texImage2D(GL_TEXTURE_2D, 0, texImageFormat.internalFormat, kTextureSize, in CheckSizedInternalFormatTextureRenderability()
335 kTextureSize, 0, texImageFormat.format, texImageFormat.type, nullptr); in CheckSizedInternalFormatTextureRenderability()