Home
last modified time | relevance | path

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

12

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp422 const TestTexture& srcTexture, in uploadTestTextureInternal() argument
434 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternal()
435 …deUint32 bufferSize = (srcTexture.isCompressed())? srcTexture.getCompressedSize(): srcTextu… in uploadTestTextureInternal()
467 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternal()
488 …ffer, bufferSize, copyRegions, DE_NULL, imageAspectFlags, srcTexture.getNumLevels(), srcTexture.ge… in uploadTestTextureInternal()
518 const TestTexture& srcTexture, in uploadTestTextureInternalSparse() argument
523 …deUint32 bufferSize = (srcTexture.isCompressed()) ? srcTexture.getCompressedSize(): srcTex… in uploadTestTextureInternalSparse()
530 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternalSparse()
574 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternalSparse()
603 const TestTexture& srcTexture, in uploadTestTexture() argument
[all …]
/external/angle/src/libANGLE/renderer/metal/shaders/
Dgen_mipmap.metal42 texture3d<float> srcTexture [[texture(0)]],
67 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel));
220 texture2d<float> srcTexture [[texture(0)]],
229 ushort2(srcTexture.get_width(firstMipLevel), srcTexture.get_height(firstMipLevel));
247 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel));
358 TextureTypeR srcTexture,
466 texturecube<float> srcTexture [[texture(0)]],
475 ushort2(srcTexture.get_width(firstMipLevel), srcTexture.get_height(firstMipLevel));
485 mip1Texel = srcTexture.sample(textureSampler, cubeTexcoords(texCoords, int(gIndices.z)),
508 generateCubeOr2DArray2ndAndMoreMipmaps(lIndex, gIndices, srcTexture, dstMip2, dstMip3, dstMip4,
[all …]
Dblit.metal68 static uint2 getImageCoords(SrcTexture2d srcTexture, float2 texCoords)
70 uint2 dimens(srcTexture.get_width(), srcTexture.get_height());
77 static inline vec<T, 4> blitSampleTextureMS(texture2d_ms<T> srcTexture, float2 texCoords)
79 uint2 coords = getImageCoords(srcTexture, texCoords);
80 return resolveTextureMS(srcTexture, coords);
84 static inline vec<T, 4> blitSampleTexture3D(texture3d<T> srcTexture,
89 uint depth = srcTexture.get_depth(options.srcLevel);
92 return srcTexture.sample(textureSampler, float3(texCoords, zCoord), level(options.srcLevel));
Dcommon.h108 static inline vec<T, 4> resolveTextureMS(texture2d_ms<T> srcTexture, uint2 coords) in resolveTextureMS() argument
110 uint samples = srcTexture.get_num_samples(); in resolveTextureMS()
116 output += srcTexture.read(coords, sample); in resolveTextureMS()
Dmtl_internal_shaders_autogen.metal136 static inline vec<T, 4> resolveTextureMS(texture2d_ms<T> srcTexture, uint2 coords)
138 uint samples = srcTexture.get_num_samples();
144 output += srcTexture.read(coords, sample);
363 static uint2 getImageCoords(SrcTexture2d srcTexture, float2 texCoords)
365 uint2 dimens(srcTexture.get_width(), srcTexture.get_height());
372 static inline vec<T, 4> blitSampleTextureMS(texture2d_ms<T> srcTexture, float2 texCoords)
374 uint2 coords = getImageCoords(srcTexture, texCoords);
375 return resolveTextureMS(srcTexture, coords);
379 static inline vec<T, 4> blitSampleTexture3D(texture3d<T> srcTexture,
384 uint depth = srcTexture.get_depth(options.srcLevel);
[all …]
/external/skia/src/gpu/ganesh/d3d/
DGrD3DCommandList.cpp224 ID3D12Resource* srcTexture = src->d3dResource(); in copyTextureToTexture() local
226 fCommandList->CopyResource(dstTexture, srcTexture); in copyTextureToTexture()
231 srcLoc.pResource = srcTexture; in copyTextureToTexture()
506 const GrD3DTextureResource* srcTexture, in resolveSubresourceRegion() argument
508 SkASSERT(dstTexture->dxgiFormat() == srcTexture->dxgiFormat()); in resolveSubresourceRegion()
510 SkASSERT(srcTexture->currentState() == D3D12_RESOURCE_STATE_RESOLVE_SOURCE); in resolveSubresourceRegion()
513 this->addResource(srcTexture->resource()); in resolveSubresourceRegion()
520 srcTexture->d3dResource(), 0, srcRect, in resolveSubresourceRegion()
521 srcTexture->dxgiFormat(), in resolveSubresourceRegion()
527 fCommandList->ResolveSubresource(dstTexture->d3dResource(), 0, srcTexture->d3dResource(), 0, in resolveSubresourceRegion()
[all …]
DGrD3DCommandList.h193 const GrD3DTextureResource* srcTexture,
/external/skia/src/gpu/graphite/mtl/
DMtlBlitCommandEncoder.h85 void copyTextureToTexture(id<MTLTexture> srcTexture, in copyTextureToTexture() argument
89 [(*fCommandEncoder) copyFromTexture: srcTexture in copyTextureToTexture()
/external/angle/src/tests/egl_tests/
DEGLProtectedContentTest.cpp614 GLuint srcTexture = 0; in textureFromImageTest() local
619 ASSERT_FALSE(createTexture(isProtectedTexture, &srcTexture)); in textureFromImageTest()
623 ASSERT_TRUE(createTexture(isProtectedTexture, &srcTexture)); in textureFromImageTest()
624 EXPECT_TRUE(fillTexture(srcTexture, GLColor::red)); in textureFromImageTest()
628 (void *)(static_cast<intptr_t>(srcTexture)), &image)); in textureFromImageTest()
640 glDeleteTextures(1, &srcTexture); in textureFromImageTest()
/external/angle/src/tests/gl_tests/
DSRGBFramebufferTest.cpp267 GLTexture srcTexture; in TEST_P() local
268 glBindTexture(GL_TEXTURE_2D, srcTexture.get()); in TEST_P()
274 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture.get(), in TEST_P()
DRobustResourceInitTest.cpp1700 GLTexture srcTexture; in TEST_P() local
1701 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1707 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P()
1733 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1736 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P()
1818 GLTexture srcTexture; in TEST_P() local
1824 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P()
1828 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
1853 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P()
1856 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
/external/angle/src/libANGLE/renderer/
DRenderbufferImpl.h67 const gl::Texture *srcTexture,
118 const gl::Texture *srcTexture, in copyTextureSubData() argument
DTextureImpl.cpp66 const gl::Texture *srcTexture, in copyTextureSubData() argument
/external/skia/src/gpu/ganesh/dawn/
DGrDawnGpu.cpp653 wgpu::Texture srcTexture = get_dawn_texture_from_surface(src); in onCopySurface() local
655 if (!srcTexture || !dstTexture) { in onCopySurface()
665 srcTextureView.texture = srcTexture; in onCopySurface()
701 wgpu::ImageCopyTexture srcTexture; in onReadPixels() local
702 srcTexture.texture = tex; in onReadPixels()
703 srcTexture.origin = {(uint32_t) rect.left(), (uint32_t) rect.top(), 0}; in onReadPixels()
712 this->getCopyEncoder().CopyTextureToBuffer(&srcTexture, &dstBuffer, &copySize); in onReadPixels()
/external/skia/src/gpu/graphite/vk/
DVulkanCommandBuffer.cpp272 const VulkanTexture* srcTexture = static_cast<const VulkanTexture*>(texture); in onCopyTextureToBuffer() local
292 const_cast<VulkanTexture*>(srcTexture)->setImageLayout(this, in onCopyTextureToBuffer()
300 srcTexture->vkImage(), in onCopyTextureToBuffer()
/external/angle/src/libANGLE/
DRenderbuffer.cpp223 const gl::Texture *srcTexture, in copyTextureSubData() argument
236 ANGLE_TRY(mImplementation->copyTextureSubData(context, srcTexture, srcLevel, srcX, srcY, srcZ, in copyTextureSubData()
DRenderbuffer.h110 const gl::Texture *srcTexture,
/external/angle/src/libANGLE/renderer/metal/
Dmtl_render_utils.mm860 const TextureRef &srcTexture)
862 if (!srcTexture)
868 params.src = srcTexture;
869 params.dstTextureSize = gl::Extents(static_cast<int>(srcTexture->widthAt0()),
870 static_cast<int>(srcTexture->heightAt0()),
871 static_cast<int>(srcTexture->depthAt0()));
991 const TextureRef &srcTexture,
995 return mMipmapUtils.generateMipmapCS(contextMtl, srcTexture, sRGBMipmap, mipmapOutputViews);
2431 const TextureRef &srcTexture,
2436 ASSERT(srcTexture->textureType() == MTLTextureType3D);
[all …]
Dmtl_render_utils.h465 const TextureRef &srcTexture,
614 const TextureRef &srcTexture);
658 const TextureRef &srcTexture,
DFrameBufferMtl.mm966 mtl::TextureRef srcTexture = rtt.getTexture();
975 if (!srcTexture)
989 bool skipCopy = srcTexture->isShaderReadable();
994 skipCopy = skipCopy && srcTexture->supportFormatView();
1002 *readableDepthViewOut = srcTexture;
1006 *readableStencilViewOut = srcTexture;
1014 ASSERT(srcTexture->textureType() != MTLTextureType3D);
1018 mtl::TextureRef formatableView = srcTexture->getReadableCopy(
DContextMtl.mm2915 angle::Result ContextMtl::copy2DTextureSlice0Level0ToWorkTexture(const mtl::TextureRef &srcTexture)
2917 if (!mWorkTexture || !mWorkTexture->sameTypeAndDimemsionsAs(srcTexture))
2919 auto formatId = mtl::Format::MetalToAngleFormatID(srcTexture->pixelFormat());
2922 ANGLE_TRY(mtl::Texture::Make2DTexture(this, format, srcTexture->widthAt0(),
2923 srcTexture->heightAt0(), srcTexture->mipmapLevels(),
2927 blitEncoder->copyTexture(srcTexture,
2941 const mtl::TextureRef &srcTexture,
2945 auto formatId = mtl::Format::MetalToAngleFormatID(srcTexture->pixelFormat());
2949 uint32_t width = srcTexture->width(mipNativeLevel);
2950 uint32_t height = srcTexture->height(mipNativeLevel);
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
DRenderbufferVk.h55 const gl::Texture *srcTexture,
DRenderbufferVk.cpp252 const gl::Texture *srcTexture, in copyTextureSubData() argument
266 TextureVk *sourceVk = vk::GetImpl(srcTexture); in copyTextureSubData()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DBuffer11.cpp1780 const TextureHelper11 &srcTexture = renderTarget->getTexture(); in packPixels() local
1781 ASSERT(srcTexture.valid()); in packPixels()
1787 if (!mStagingTexture.get() || mStagingTexture.getFormat() != srcTexture.getFormat() || in packPixels()
1790 ANGLE_TRY(mRenderer->createStagingTexture(context, srcTexture.getTextureType(), in packPixels()
1791 srcTexture.getFormatSet(), srcTextureSize, in packPixels()
1796 ASSERT(srcTexture.getSampleCount() <= 1); in packPixels()
1814 immediateContext->CopySubresourceRegion(mStagingTexture.get(), 0, 0, 0, 0, srcTexture.get(), in packPixels()
/external/angle/src/libANGLE/renderer/null/
DTextureNULL.h102 const gl::Texture *srcTexture,

12