Home
last modified time | relevance | path

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

12

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp405 const TestTexture& srcTexture, in uploadTestTextureInternal() argument
416 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternal()
417 …deUint32 bufferSize = (srcTexture.isCompressed())? srcTexture.getCompressedSize(): srcTextu… in uploadTestTextureInternal()
449 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternal()
470 …ffer, bufferSize, copyRegions, DE_NULL, imageAspectFlags, srcTexture.getNumLevels(), srcTexture.ge… in uploadTestTextureInternal()
493 const TestTexture& srcTexture, in uploadTestTextureInternalSparse() argument
498 …deUint32 bufferSize = (srcTexture.isCompressed()) ? srcTexture.getCompressedSize(): srcTex… in uploadTestTextureInternalSparse()
505 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternalSparse()
542 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternalSparse()
571 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.h96 static inline vec<T, 4> resolveTextureMS(texture2d_ms<T> srcTexture, uint2 coords) in resolveTextureMS() argument
98 uint samples = srcTexture.get_num_samples(); in resolveTextureMS()
104 output += srcTexture.read(coords, sample); in resolveTextureMS()
Dmtl_default_shaders_src_autogen.inc128 static inline vec<T, 4> resolveTextureMS(texture2d_ms<T> srcTexture, uint2 coords)
130 uint samples = srcTexture.get_num_samples();
136 output += srcTexture.read(coords, sample);
355 static uint2 getImageCoords(SrcTexture2d srcTexture, float2 texCoords)
357 uint2 dimens(srcTexture.get_width(), srcTexture.get_height());
364 static inline vec<T, 4> blitSampleTextureMS(texture2d_ms<T> srcTexture, float2 texCoords)
366 uint2 coords = getImageCoords(srcTexture, texCoords);
367 return resolveTextureMS(srcTexture, coords);
371 static inline vec<T, 4> blitSampleTexture3D(texture3d<T> srcTexture,
376 uint depth = srcTexture.get_depth(options.srcLevel);
[all …]
/external/skia/src/gpu/d3d/
DGrD3DCommandList.cpp224 ID3D12Resource* srcTexture = src->d3dResource(); in copyTextureToTexture() local
226 fCommandList->CopyResource(dstTexture, srcTexture); in copyTextureToTexture()
231 srcLoc.pResource = srcTexture; in copyTextureToTexture()
522 const GrD3DTextureResource* srcTexture, in resolveSubresourceRegion() argument
524 SkASSERT(dstTexture->dxgiFormat() == srcTexture->dxgiFormat()); in resolveSubresourceRegion()
526 SkASSERT(srcTexture->currentState() == D3D12_RESOURCE_STATE_RESOLVE_SOURCE); in resolveSubresourceRegion()
529 this->addResource(srcTexture->resource()); in resolveSubresourceRegion()
535 srcTexture->d3dResource(), 0, srcRect, in resolveSubresourceRegion()
536 srcTexture->dxgiFormat(), in resolveSubresourceRegion()
539 fCommandList->ResolveSubresource(dstTexture->d3dResource(), 0, srcTexture->d3dResource(), 0, in resolveSubresourceRegion()
[all …]
DGrD3DCommandList.h197 const GrD3DTextureResource* srcTexture,
/external/skqp/src/effects/imagefilters/
DSkMorphologyImageFilter.cpp470 sk_sp<GrTextureProxy> srcTexture(input->asTextureProxyRef(context)); in apply_morphology() local
471 SkASSERT(srcTexture); in apply_morphology()
479 const GrFixedClip clip(SkIRect::MakeWH(srcTexture->width(), srcTexture->height())); in apply_morphology()
494 apply_morphology_pass(dstRTContext.get(), clip, std::move(srcTexture), srcRect, dstRect, in apply_morphology()
502 srcTexture = dstRTContext->asTextureProxyRef(); in apply_morphology()
513 apply_morphology_pass(dstRTContext.get(), clip, std::move(srcTexture), srcRect, dstRect, in apply_morphology()
516 srcTexture = dstRTContext->asTextureProxyRef(); in apply_morphology()
522 std::move(srcTexture), std::move(colorSpace), in apply_morphology()
/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.cpp1702 GLTexture srcTexture; in TEST_P() local
1703 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1709 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P()
1735 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1738 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P()
1820 GLTexture srcTexture; in TEST_P() local
1826 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P()
1830 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
1855 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P()
1858 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
DCopyTextureTest.cpp1711 GLTexture srcTexture; in TEST_P() local
1712 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1717 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P()
1731 GLTexture srcTexture; in TEST_P() local
1732 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P()
1738 glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, in TEST_P()
/external/angle/src/libANGLE/renderer/
DRenderbufferImpl.h67 const gl::Texture *srcTexture,
116 const gl::Texture *srcTexture, in copyTextureSubData() argument
DTextureImpl.cpp66 const gl::Texture *srcTexture, in copyTextureSubData() argument
DTextureImpl.h130 const gl::Texture *srcTexture,
/external/skia/src/gpu/dawn/
DGrDawnGpu.cpp583 wgpu::Texture srcTexture = get_dawn_texture_from_surface(src); in onCopySurface() local
585 if (!srcTexture || !dstTexture) { in onCopySurface()
592 srcTextureView.texture = srcTexture; in onCopySurface()
625 wgpu::ImageCopyTexture srcTexture; in onReadPixels() local
626 srcTexture.texture = tex; in onReadPixels()
627 srcTexture.origin = {(uint32_t) left, (uint32_t) top, 0}; in onReadPixels()
636 this->getCopyEncoder().CopyTextureToBuffer(&srcTexture, &dstBuffer, &copySize); in onReadPixels()
/external/angle/src/libANGLE/
DRenderbuffer.cpp194 const gl::Texture *srcTexture, in copyTextureSubData() argument
207 ANGLE_TRY(mImplementation->copyTextureSubData(context, srcTexture, srcLevel, srcX, srcY, srcZ, in copyTextureSubData()
DRenderbuffer.h108 const gl::Texture *srcTexture,
/external/angle/src/libANGLE/renderer/metal/
Dmtl_render_utils.mm1029 const TextureRef &srcTexture)
1031 if (!srcTexture)
1037 params.src = srcTexture;
1038 params.dstTextureSize = gl::Extents(static_cast<int>(srcTexture->widthAt0()),
1039 static_cast<int>(srcTexture->heightAt0()),
1040 static_cast<int>(srcTexture->depthAt0()));
1157 const TextureRef &srcTexture,
1161 return mMipmapUtils.generateMipmapCS(contextMtl, srcTexture, sRGBMipmap, mipmapOutputViews);
2570 const TextureRef &srcTexture,
2575 ASSERT(srcTexture->textureType() == MTLTextureType3D);
[all …]
Dmtl_render_utils.h451 const TextureRef &srcTexture,
608 const TextureRef &srcTexture);
652 const TextureRef &srcTexture,
DFrameBufferMtl.mm888 mtl::TextureRef srcTexture = rtt.getTexture();
897 if (!srcTexture)
911 bool skipCopy = srcTexture->isShaderReadable();
916 skipCopy = skipCopy && srcTexture->supportFormatView();
924 *readableDepthViewOut = srcTexture;
928 *readableStencilViewOut = srcTexture;
936 ASSERT(srcTexture->textureType() != MTLTextureType3D);
940 mtl::TextureRef formatableView = srcTexture->getReadableCopy(
/external/angle/src/libANGLE/renderer/vulkan/
DRenderbufferVk.cpp226 const gl::Texture *srcTexture, in copyTextureSubData() argument
240 TextureVk *sourceVk = vk::GetImpl(srcTexture); in copyTextureSubData()
DRenderbufferVk.h55 const gl::Texture *srcTexture,
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DBuffer11.cpp1765 const TextureHelper11 &srcTexture = renderTarget->getTexture(); in packPixels() local
1766 ASSERT(srcTexture.valid()); in packPixels()
1772 if (!mStagingTexture.get() || mStagingTexture.getFormat() != srcTexture.getFormat() || in packPixels()
1775 ANGLE_TRY(mRenderer->createStagingTexture(context, srcTexture.getTextureType(), in packPixels()
1776 srcTexture.getFormatSet(), srcTextureSize, in packPixels()
1781 ASSERT(srcTexture.getSampleCount() <= 1); in packPixels()
1799 immediateContext->CopySubresourceRegion(mStagingTexture.get(), 0, 0, 0, 0, srcTexture.get(), in packPixels()
/external/angle/src/libANGLE/renderer/null/
DTextureNULL.h102 const gl::Texture *srcTexture,
DTextureNULL.cpp132 const gl::Texture *srcTexture, in copyTextureSubData() argument

12