Home
last modified time | relevance | path

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

/external/skqp/gm/
Dlightingshader.cpp16 static SkBitmap make_hemi_normalmap(int texSize) { in make_hemi_normalmap() argument
18 hemi.allocN32Pixels(texSize, texSize); in make_hemi_normalmap()
20 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
25 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
27 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
29 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
34 static SkBitmap make_tetra_normalmap(int texSize) { in make_tetra_normalmap() argument
36 tetra.allocN32Pixels(texSize, texSize); in make_tetra_normalmap()
38 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
Dlightingshader2.cpp17 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
19 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
21 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
/external/skia/gm/
Dlightingshader.cpp29 static SkBitmap make_hemi_normalmap(int texSize) { in make_hemi_normalmap() argument
31 hemi.allocN32Pixels(texSize, texSize); in make_hemi_normalmap()
33 ToolUtils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
38 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
40 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
42 ToolUtils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
47 static SkBitmap make_tetra_normalmap(int texSize) { in make_tetra_normalmap() argument
49 tetra.allocN32Pixels(texSize, texSize); in make_tetra_normalmap()
51 ToolUtils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
Dlightingshader2.cpp33 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
35 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
37 ToolUtils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_pixeltransfer.c53 const uint texSize = pt->width0; in load_color_map_texture() local
59 0, 0, texSize, texSize, &transfer); in load_color_map_texture()
67 for (i = 0; i < texSize; i++) { in load_color_map_texture()
68 for (j = 0; j < texSize; j++) { in load_color_map_texture()
70 int k = (i * texSize + j); in load_color_map_texture()
72 rgba[0] = ctx->PixelMaps.RtoR.Map[j * rSize / texSize]; in load_color_map_texture()
73 rgba[1] = ctx->PixelMaps.GtoG.Map[i * gSize / texSize]; in load_color_map_texture()
74 rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize]; in load_color_map_texture()
75 rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize]; in load_color_map_texture()
Dst_texture.c414 const uint texSize = 256; /* simple, and usually perfect */ in st_create_color_map_texture() local
423 texSize, texSize, 1, 1, 0, PIPE_BIND_SAMPLER_VIEW); in st_create_color_map_texture()
/external/angle/src/tests/gl_tests/
DExternalWrapTest.cpp66 constexpr GLsizei texSize = 32; in testSetUp() local
67 GLubyte data[texSize * texSize * 4]; in testSetUp()
69 for (int y = 0; y < texSize; y++) in testSetUp()
71 float green = static_cast<float>(y) / texSize; in testSetUp()
72 for (int x = 0; x < texSize; x++) in testSetUp()
74 float red = static_cast<float>(x) / texSize; in testSetUp()
76 data[(y * texSize + x) * 4 + 0] = static_cast<GLubyte>(red * 255); in testSetUp()
77 data[(y * texSize + x) * 4 + 1] = static_cast<GLubyte>(green * 255); in testSetUp()
79 data[(y * texSize + x) * 4 + 2] = 0; in testSetUp()
80 data[(y * texSize + x) * 4 + 3] = 255; in testSetUp()
[all …]
DUnpackRowLength.cpp47 void testRowLength(int texSize, int rowLength) in testRowLength() argument
56 std::vector<GLubyte> buf(rowLength * texSize * 4); in testRowLength()
57 for (int y = 0; y < texSize; y++) in testRowLength()
60 std::fill(rowIter, rowIter + texSize * 4, static_cast<GLubyte>(255u)); in testRowLength()
61 std::fill(rowIter + texSize * 4, rowIter + rowLength * 4, static_cast<GLubyte>(0u)); in testRowLength()
68 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texSize, texSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in testRowLength()
DRobustResourceInitTest.cpp1538 const int texSize = 512; in copyTexSubImage2DCustomFBOTest() local
1543 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texSize, texSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in copyTexSubImage2DCustomFBOTest()
1563 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, offsetX, offsetY, texSize, texSize); in copyTexSubImage2DCustomFBOTest()
1570 checkCustomFramebufferNonZeroPixels(texSize, texSize, -offsetX, -offsetY, fboSize, fboSize, in copyTexSubImage2DCustomFBOTest()
/external/deqp/modules/gles2/performance/
Des2pTextureUploadTests.cpp79 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
104 …onst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadCase() argument
109 , m_texSize (texSize) in TextureUploadCase()
295 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
302 …onst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadCallCase() argument
303 : TextureUploadCase (context, name, description, uploadFunction, format, type, texSize) in TextureUploadCallCase()
385 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
396 …onst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadAndDrawCase() argument
397 : TextureUploadCase (context, name, description, uploadFunction, format, type, texSize) in TextureUploadAndDrawCase()
541 FOR_EACH(texSize, textureSizes, in init()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cSparseTexture2Tests.cpp1049 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
1052 vecData.resize(texSize); in writeDataToTexture()
1055 deMemset(data, 255, texSize); in writeDataToTexture()
1149 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local
1153 vecExpData.resize(texSize); in verifyTextureData()
1154 vecOutData.resize(texSize); in verifyTextureData()
1158 deMemset(exp_data, 255, texSize); in verifyTextureData()
1159 deMemset(out_data, 127, texSize); in verifyTextureData()
1187 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() local
1191 vecExpData.resize(texSize); in verifyTextureData()
[all …]
Dgl4cSparseTextureClampTests.cpp308 GLint texSize = width * height; in verifyLookupTextureData() local
312 vecExpData.resize(texSize); in verifyLookupTextureData()
313 vecOutData.resize(texSize); in verifyLookupTextureData()
318 deMemset(exp_data, 255, texSize); in verifyLookupTextureData()
391 deMemset(out_data, 0, texSize); in verifyLookupTextureData()
717 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
720 vecData.resize(texSize); in writeDataToTexture()
723 deMemset(data, 255, texSize); in writeDataToTexture()
810 GLint texSize = width * height; in verifyLookupTextureData() local
814 vecExpData.resize(texSize); in verifyLookupTextureData()
[all …]
Dgl4cSparseTextureTests.cpp1928 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
1931 vecData.resize(texSize); in writeDataToTexture()
1934 deMemset(data, 16 + 16 * level, texSize); in writeDataToTexture()
1982 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local
1986 vecExpData.resize(texSize); in verifyTextureData()
1987 vecOutData.resize(texSize); in verifyTextureData()
1991 deMemset(exp_data, 16 + 16 * level, texSize); in verifyTextureData()
1992 deMemset(out_data, 255, texSize); in verifyTextureData()
2020 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() local
2024 vecExpData.resize(texSize); in verifyTextureData()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcTextureFilterAnisotropicTests.cpp579 GLuint texSize = 32 / (l + 1); in fillTexture() local
582 vecData.resize(texSize * texSize * texFormat.getPixelSize() * 2); in fillTexture()
584 tcu::PixelBufferAccess bufferAccess(texFormat, texSize, texSize, 1, vecData.data()); in fillTexture()
586 for (GLuint x = 0; x < texSize; ++x) in fillTexture()
588 for (GLuint y = 0; y < texSize; ++y) in fillTexture()
597 …TextureFilterAnisotropicUtils::texImage(gl, target, l, internalFormat, texSize, texSize, 1, transF… in fillTexture()
/external/deqp/modules/gles31/functional/
Des31fFboColorbufferTests.cpp117 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTexCubeArrayCase() argument
119 , m_texSize (texSize) in FboColorTexCubeArrayCase()
121 DE_ASSERT(texSize.z() % 6 == 0); in FboColorTexCubeArrayCase()
Des31fGeometryShaderTests.cpp2922 const tcu::IVec3 texSize = getTargetDimensions(m_target); in initTexture() local
2932 …u::TestLog::Message << "Creating cubemap texture, size = " << texSize.x() << "x" << texSize.y() <<… in initTexture()
2934 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2935 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2936 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2937 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2938 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2939 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2943 …tLog::Message << "Creating 3d texture, size = " << texSize.x() << "x" << texSize.y() << "x" << tex… in initTexture()
2945 …gl.texImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, texSize.x(), texSize.y(), texSize.z(), 0, transferFormat… in initTexture()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp1223 const tcu::UVec3 texSize) in uploadSparseImage() argument
1245 if (isImageSizeSupported(imageCreateInfo.imageType, texSize, deviceProperties.limits) == false) in uploadSparseImage()
1339 tcu::UVec3 texSize; in useSampler() local
1347 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); in useSampler()
1366 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1u); in useSampler()
1400 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); in useSampler()
1427 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), texture.getDepth()); in useSampler()
1446 texSize = tcu::UVec3(texture.getWidth(), 1, 1); in useSampler()
1465 texSize = tcu::UVec3(texture.getWidth(), 1, 1); in useSampler()
1491 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1); in useSampler()
[all …]
DvktShaderRender.hpp567 const tcu::UVec3 texSize);
573 const tcu::UVec3 texSize,
/external/deqp/modules/gles3/functional/
Des3fFboColorbufferTests.cpp326 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec2& texSize) in FboColorTexCubeCase() argument
328 , m_texSize (texSize) in FboColorTexCubeCase()
475 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex2DArrayCase() argument
477 , m_texSize (texSize) in FboColorTex2DArrayCase()
601 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex3DCase() argument
603 , m_texSize (texSize) in FboColorTex3DCase()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_screen.h130 int texSize[RADEON_NR_TEX_HEAPS]; member
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_screen.h130 int texSize[RADEON_NR_TEX_HEAPS]; member
/external/webrtc/webrtc/modules/video_render/mac/
Dvideo_render_agl.cc189 GLint texSize; in FrameSizeChange() local
190 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize); in FrameSizeChange()
192 if (texSize < _width || texSize < _height) in FrameSizeChange()
Dvideo_render_nsopengl.mm177 GLint texSize;
178 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize);
180 if (texSize < _width || texSize < _height)
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DRenderer11.cpp3287 const gl::Extents &texSize = textureHelper.getExtents(); in readFromAttachment() local
3293 actualArea.y = texSize.height - actualArea.y - actualArea.height; in readFromAttachment()
3300 safeArea.x = gl::clamp(actualArea.x, 0, texSize.width); in readFromAttachment()
3301 safeArea.y = gl::clamp(actualArea.y, 0, texSize.height); in readFromAttachment()
3303 gl::clamp(actualArea.width + std::min(actualArea.x, 0), 0, texSize.width - safeArea.x); in readFromAttachment()
3305 gl::clamp(actualArea.height + std::min(actualArea.y, 0), 0, texSize.height - safeArea.y); in readFromAttachment()
3308 ASSERT(safeArea.x + safeArea.width <= texSize.width); in readFromAttachment()
3309 ASSERT(safeArea.y + safeArea.height <= texSize.height); in readFromAttachment()
3333 resolveDesc.Width = static_cast<UINT>(texSize.width); in readFromAttachment()
3334 resolveDesc.Height = static_cast<UINT>(texSize.height); in readFromAttachment()
DTextureStorage11.cpp534 gl::Extents texSize(getLevelWidth(level), getLevelHeight(level), getLevelDepth(level)); in updateSubresourceLevel() local
537 copyArea.width == texSize.width && copyArea.height == texSize.height && in updateSubresourceLevel()
538 copyArea.depth == texSize.depth; in updateSubresourceLevel()
564 return blitter->copyDepthStencil(context, srcTexture, sourceSubresource, copyArea, texSize, in updateSubresourceLevel()
565 *dstTexture, dstSubresource, copyArea, texSize, nullptr); in updateSubresourceLevel()