Home
last modified time | relevance | path

Searched refs:textureWidth (Results 1 – 25 of 26) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DMaxTextureSizeTest.cpp97 GLsizei textureWidth = mMaxTexture2DSize; in TEST_P() local
100 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P()
103 for (int x = 0; x < textureWidth; x++) in TEST_P()
105 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P()
108 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P()
115 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, in TEST_P()
159 GLsizei textureWidth = 64; in TEST_P() local
162 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P()
165 for (int x = 0; x < textureWidth; x++) in TEST_P()
167 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
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 + x) * 4); in TEST_P()
[all …]
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/
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()
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()
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/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureConversionTests.cpp90 static const int textureWidth = 7; member in vkt::texture::__anon42b244fc0111::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()
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/
DvktTextureConversionTests.cpp90 static const int textureWidth = 7; member in vkt::texture::__anon90e1937c0111::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()
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/flutter/skia/third_party/externals/sdl/src/render/psp/
DSDL_render_psp.c150 unsigned int textureWidth; /**< Texture width (power of two). */ member
236 int bytewidth = psp_texture->textureWidth*(psp_texture->bits>>3); in TextureSwizzle()
283 int bytewidth = psp_texture->textureWidth*(psp_texture->bits>>3); in TextureUnswizzle()
474 psp_texture->textureWidth = TextureNextPow2(texture->w); in PSP_CreateTexture()
493 psp_texture->pitch = psp_texture->textureWidth * SDL_BYTESPERPIXEL(texture->format); in PSP_CreateTexture()
530 …sceGuTexImage(0, psp_texture->textureWidth, psp_texture->textureHeight, psp_texture->textureWidth,… in TextureActivate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
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->t… in iterate()
921 …ut::StorageBuffer2D buffer (m_context, m_test->getBufferFormat(), m_params->textureWidth, m_… 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/vk-gl-cts/external/vulkancts/modules/vulkan/image/
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->t… in iterate()
921 …ut::StorageBuffer2D buffer (m_context, m_test->getBufferFormat(), m_params->textureWidth, m_… 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/vk-gl-cts/modules/glshared/
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… in requireTextures()
/third_party/vk-gl-cts/modules/egl/
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_… in createTexture()
1023 …log << TestLog::Message << "Texture size: " << config.textureWidth << "x" << config.textureHeight … in logTestConfig()
1111 basicConfig.textureWidth = 128; in init()
DteglRobustnessTests.cpp630 int textureWidth; member
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DGLES1Renderer.cpp128 GLfloat textureWidth = in prepareForDraw() local
133 if (textureWidth > 0.0f && textureHeight > 0.0f) in prepareForDraw()
135 cropRectBuffer[i][0] = cropRect.x / textureWidth; in prepareForDraw()
137 cropRectBuffer[i][2] = cropRect.width / textureWidth; in prepareForDraw()
DvalidationES.h72 size_t textureWidth,
/third_party/skia/third_party/externals/angle2/src/libANGLE/
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()
DvalidationES.cpp1119 size_t textureWidth, in ValidCompressedSubImageSize() argument
1135 xoffset == 0 && yoffset == 0 && static_cast<size_t>(width) == textureWidth && in ValidCompressedSubImageSize()
3151 const GLsizei textureWidth = static_cast<GLsizei>( in ValidateCopyImageSubDataTargetRegion() local
3158 if ((textureWidth - offsetX < width) || (textureHeight - offsetY < height)) in ValidateCopyImageSubDataTargetRegion()
DvalidationES.h72 size_t textureWidth,
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fASTCDecompressionCases.cpp331 const int textureWidth = texture.getRefTexture().getWidth(); in render() local
333 …const RandomViewport viewport (renderCtx.getRenderTarget(), textureWidth, textureHeight, m_rn… in render()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcCompressedFormatTests.cpp856 const size_t textureWidth = 240; in __anon220211702002() local
859 …gl.texStorage2D(GL_TEXTURE_2D, 1, compressedFormats[i].internalFormat, textureWidth, textureHeight… in __anon220211702002()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
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()

12