Home
last modified time | relevance | path

Searched refs:textureWidth (Results 1 - 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DMaxTextureSizeTest.cpp95 GLsizei textureWidth = mMaxTexture2DSize; in TEST_P() local
98 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P()
101 for (int x = 0; x < textureWidth; x++) in TEST_P()
103 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P()
106 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P()
113 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, in TEST_P()
157 GLsizei textureWidth = 64; in TEST_P() local
160 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P()
163 for (int x = 0; x < textureWidth; x++) in TEST_P()
165 GLubyte *pixel = &data[0] + ((y * textureWidth in TEST_P()
223 GLsizei textureWidth = 64; TEST_P() local
[all...]
H A DMipmapTest.cpp438 void verifyAllMips(const uint32_t textureWidth, in verifyAllMips() argument
454 for (uint32_t mip = 0; textureWidth >> mip >= 1 || textureHeight >> mip >= 1; ++mip) in verifyAllMips()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DDispatchComputePerf.cpp30 unsigned int textureWidth = 32; member
90 mDispatchX = params.textureWidth / params.localSizeX; in initializeBenchmark()
119 unsigned int textureDataSize = params.textureWidth * params.textureHeight; in initTextures()
125 glTexImage2D(GL_TEXTURE_2D, 0, GL_R32F, params.textureWidth, params.textureHeight, 0, GL_RED, in initTextures()
134 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32F, params.textureWidth, params.textureHeight); in initTextures()
135 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, params.textureWidth, params.textureHeight, GL_RED, in initTextures()
H A DGenerateMipmapPerf.cpp32 textureWidth = 1920; in GenerateMipmapParams()
42 GLsizei textureWidth; member
157 mTextureData.resize(params.textureWidth * params.textureHeight * 4); in initializeBenchmark()
160 glTexImage2D(GL_TEXTURE_2D, 0, params.internalFormat, params.textureWidth, params.textureHeight, in initializeBenchmark()
250 glTexImage2D(GL_TEXTURE_2D, 0, params.internalFormat, params.textureWidth, params.textureHeight, in drawBenchmark()
H A DMultisampledRenderToTexturePerf.cpp32 textureWidth = 1920; in MultisampledRenderToTextureParams()
41 GLsizei textureWidth; member
152 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, params.textureWidth, params.textureHeight, 0, GL_RGBA, in initializeBenchmark()
162 params.textureWidth, params.textureHeight); in initializeBenchmark()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktTextureConversionTests.cpp90 static const int textureWidth = 7; member in vkt::texture::__anon28873::SnormLinearClampInstance
99 , m_hwTexture (TestTexture2DSp(new pipeline::TestTexture2D(m_inFormat, textureWidth, textureHeight))) in SnormLinearClampInstance()
100 , m_swTexture (m_inFormat, textureWidth, textureHeight, 1) in SnormLinearClampInstance()
108 tcu::IVec4 data[textureWidth * textureHeight] = in SnormLinearClampInstance()
126 for (int x = 0; x < textureWidth; ++x) in SnormLinearClampInstance()
128 swAccess.setPixel(data[y*textureWidth+x], x, y); in SnormLinearClampInstance()
129 hwAccess.setPixel(data[y*textureWidth+x], x, y); in SnormLinearClampInstance()
415 const int tw = SnormLinearClampInstance::textureWidth * sizeMultipler; in populateSnormLinearClampTests()
H A DvktTextureCompressedFormatTests.cpp267 const deUint32 textureWidth = texture.getWidth() >> mipLevel; in validateTexture() local
281 tcu::Surface referenceFrame (textureWidth, textureHeight); in validateTexture()
293 const float samplePixX = fragX * (float)(textureWidth); in validateTexture()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
H A DvktTextureConversionTests.cpp90 static const int textureWidth = 7; member in vkt::texture::__anon30022::SnormLinearClampInstance
99 , m_hwTexture (TestTexture2DSp(new pipeline::TestTexture2D(m_inFormat, textureWidth, textureHeight))) in SnormLinearClampInstance()
100 , m_swTexture (m_inFormat, textureWidth, textureHeight, 1) in SnormLinearClampInstance()
108 tcu::IVec4 data[textureWidth * textureHeight] = in SnormLinearClampInstance()
126 for (int x = 0; x < textureWidth; ++x) in SnormLinearClampInstance()
128 swAccess.setPixel(data[y*textureWidth+x], x, y); in SnormLinearClampInstance()
129 hwAccess.setPixel(data[y*textureWidth+x], x, y); in SnormLinearClampInstance()
416 const int tw = SnormLinearClampInstance::textureWidth * sizeMultipler; in populateSnormLinearClampTests()
H A DvktTextureCompressedFormatTests.cpp267 const deUint32 textureWidth = texture.getWidth() >> mipLevel; in validateTexture() local
281 tcu::Surface referenceFrame (textureWidth, textureHeight); in validateTexture()
293 const float samplePixX = fragX * (float)(textureWidth); in validateTexture()
/third_party/vk-gl-cts/modules/glshared/
H A DglsStateChangePerfTestCases.cpp335 const int textureWidth = 64; in requireTextures() local
344 genTextureData(textureData, textureWidth, textureHeight); in requireTextures()
346 DE_ASSERT(textureData.size() == textureWidth * textureHeight * 4); in requireTextures()
358 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, &(textureData[0])); in requireTextures()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageMismatchedWriteOpTests.cpp64 int textureWidth; member
723 variables["IMAGE_WIDTH"] = std::to_string(m_params->textureWidth); in getProgramCodeAndVariables()
857 for (int x = 0; x < m_params->textureWidth; ++x) in populate()
916 ut::StorageImage2D image (m_context, m_params->vkFormat, m_params->textureWidth, m_params->textureHeight); in iterate()
918 ut::StorageBuffer2D buffer (m_context, m_test->getBufferFormat(), m_params->textureWidth, m_params->textureHeight); in iterate()
936 vki.cmdDispatch(*cmdBuffer, m_params->textureWidth, m_params->textureHeight, 1); in iterate()
963 for (int x = 0; doContinue && x < m_params->textureWidth; ++x) in compare()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
H A DvktImageMismatchedWriteOpTests.cpp64 int textureWidth; member
726 variables["IMAGE_WIDTH"] = std::to_string(m_params->textureWidth); in getProgramCodeAndVariables()
860 for (int x = 0; x < m_params->textureWidth; ++x) in populate()
919 ut::StorageImage2D image (m_context, m_params->vkFormat, m_params->textureWidth, m_params->textureHeight); in iterate()
921 ut::StorageBuffer2D buffer (m_context, m_test->getBufferFormat(), m_params->textureWidth, m_params->textureHeight); in iterate()
939 vki.cmdDispatch(*cmdBuffer, m_params->textureWidth, m_params->textureHeight, 1); in iterate()
966 for (int x = 0; doContinue && x < m_params->textureWidth; ++x) in compare()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DGLES1Renderer.cpp228 GLfloat textureWidth = in prepareForDraw() local
233 if (textureWidth > 0.0f && textureHeight > 0.0f) in prepareForDraw()
235 cropRectBuffer[i][0] = cropRect.x / textureWidth; in prepareForDraw()
237 cropRectBuffer[i][2] = cropRect.width / textureWidth; in prepareForDraw()
H A DvalidationES.h72 size_t textureWidth,
H A DvalidationES.cpp1119 size_t textureWidth, in ValidCompressedSubImageSize()
1135 xoffset == 0 && yoffset == 0 && static_cast<size_t>(width) == textureWidth && in ValidCompressedSubImageSize()
3147 // Use GL_TEXTURE_CUBE_MAP_POSITIVE_X to properly gather the textureWidth/textureHeight in ValidateCopyImageSubDataTargetRegion()
3151 const GLsizei textureWidth = static_cast<GLsizei>( in ValidateCopyImageSubDataTargetRegion() local
3158 if ((textureWidth - offsetX < width) || (textureHeight - offsetY < height)) in ValidateCopyImageSubDataTargetRegion()
3218 // textureWidth/textureHeight in GetTargetFormatInfo()
1111 ValidCompressedSubImageSize(const Context *context, GLenum internalFormat, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, size_t textureWidth, size_t textureHeight, size_t textureDepth) ValidCompressedSubImageSize() argument
/third_party/vk-gl-cts/modules/egl/
H A DteglGLES2SharedRenderingPerfTests.cpp94 int textureWidth; member
261 for (int x = 0; x < config.textureWidth; x++) in createTextureData()
292 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, config.textureWidth, config.textureWidth, 0, GL_RGBA, GL_UNSIGNED_BYTE, &(data[0])); in createTexture()
1023 log << TestLog::Message << "Texture size: " << config.textureWidth << "x" << config.textureHeight << TestLog::EndMessage; in logTestConfig()
1111 basicConfig.textureWidth = 128; in init()
H A DteglRobustnessTests.cpp630 int textureWidth; member
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fASTCDecompressionCases.cpp331 const int textureWidth = texture.getRefTexture().getWidth(); in render() local
333 const RandomViewport viewport (renderCtx.getRenderTarget(), textureWidth, textureHeight, m_rnd.getUint32()); in render()
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcCompressedFormatTests.cpp856 const size_t textureWidth = 240;
859 gl.texStorage2D(GL_TEXTURE_2D, 1, compressedFormats[i].internalFormat, textureWidth, textureHeight);
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cShaderImageLoadStoreTests.cpp4404 const int textureWidth = 16; in Run() local
4417 glTexStorage3D(GL_TEXTURE_2D_ARRAY, 1, GL_RGBA32F, textureWidth, textureHeight, 8); in Run()
4448 int wsx = (textureWidth / kSize) * kSize; in Run()

Completed in 42 milliseconds