Home
last modified time | relevance | path

Searched refs:mtlTexture (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/src/gpu/mtl/
DGrMtlTexture.mm28 SkDEBUGCODE(id<MTLTexture> mtlTexture = fTexture->mtlTexture();)
29 SkASSERT((GrMipmapStatus::kNotAllocated == mipmapStatus) == (1 == mtlTexture.mipmapLevelCount));
31 SkASSERT(SkToBool(mtlTexture.usage & MTLTextureUsageShaderRead));
33 SkASSERT(!mtlTexture.framebufferOnly);
50 SkDEBUGCODE(id<MTLTexture> mtlTexture = fTexture->mtlTexture();)
51 SkASSERT((GrMipmapStatus::kNotAllocated == mipmapStatus) == (1 == mtlTexture.mipmapLevelCount));
53 SkASSERT(SkToBool(mtlTexture.usage & MTLTextureUsageShaderRead));
55 SkASSERT(!mtlTexture.framebufferOnly);
69 SkDEBUGCODE(id<MTLTexture> mtlTexture = fTexture->mtlTexture();)
70 SkASSERT((GrMipmapStatus::kNotAllocated == mipmapStatus) == (1 == mtlTexture.mipmapLevelCount));
[all …]
DGrMtlGpu.mm313 SkASSERT(this->mtlCaps().isFormatTexturable(tex->mtlTexture().pixelFormat));
331 id<MTLTexture> GR_NORETAIN mtlTexture = tex->mtlTexture();
332 SkASSERT(mtlTexture);
334 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)mtlTexture.mipmapLevelCount);
396 toTexture: mtlTexture
414 if (mipLevelCount < (int) tex->mtlTexture().mipmapLevelCount) {
422 SkASSERT(this->mtlCaps().isFormatTexturable(tex->mtlTexture().pixelFormat));
428 id<MTLTexture> GR_NORETAIN mtlTexture = tex->mtlTexture();
429 SkASSERT(mtlTexture);
431 int mipLevelCount = (int)mtlTexture.mipmapLevelCount;
[all …]
DGrMtlUtil.mm40 MTLTextureDescriptor* GrGetMTLTextureDescriptor(id<MTLTexture> mtlTexture) {
42 texDesc.textureType = mtlTexture.textureType;
43 texDesc.pixelFormat = mtlTexture.pixelFormat;
44 texDesc.width = mtlTexture.width;
45 texDesc.height = mtlTexture.height;
46 texDesc.depth = mtlTexture.depth;
47 texDesc.mipmapLevelCount = mtlTexture.mipmapLevelCount;
48 texDesc.arrayLength = mtlTexture.arrayLength;
49 texDesc.sampleCount = mtlTexture.sampleCount;
51 texDesc.usage = mtlTexture.usage;
[all …]
DGrMtlUtil.h29 SK_ALWAYS_INLINE id<MTLTexture> GrGetMTLTexture(const void* mtlTexture) { in GrGetMTLTexture() argument
31 return (__bridge id<MTLTexture>)mtlTexture; in GrGetMTLTexture()
33 return (id<MTLTexture>)mtlTexture; in GrGetMTLTexture()
66 MTLTextureDescriptor* GrGetMTLTextureDescriptor(id<MTLTexture> mtlTexture);
DGrMtlTexture.h35 id<MTLTexture> mtlTexture() const { return fTexture->mtlTexture(); } in mtlTexture() function
DGrMtlRenderTarget.h39 id<MTLTexture> colorMTLTexture() const { return fColorAttachment->mtlTexture(); } in colorMTLTexture()
41 id<MTLTexture> resolveMTLTexture() const { return fResolveAttachment->mtlTexture(); } in resolveMTLTexture()
DGrMtlAttachment.h52 id<MTLTexture> mtlTexture() const { return fTexture; } in mtlTexture() function
DGrMtlOpsRenderPass.mm263 colorAttachment.texture = color->mtlTexture();
273 mtlStencil.texture = stencil->mtlTexture();
302 colorAttachment.resolveTexture = resolve->mtlTexture();
DGrMtlRenderTarget.mm101 info.fTexture.reset(GrRetainPtrFromId(fColorAttachment->mtlTexture()));
DGrMtlTextureRenderTarget.mm84 textureAttachment->mtlTexture().usage);
DGrMtlPipelineState.mm32 : fTexture(static_cast<GrMtlTexture*>(texture)->mtlTexture()) {
/third_party/skia/experimental/graphite/src/
DBackendTexture.cpp13 BackendTexture::BackendTexture(SkISize dimensions, sk_cfp<mtl::Handle> mtlTexture) in BackendTexture() argument
15 , fInfo(mtl::TextureInfo(mtlTexture.get())) in BackendTexture()
16 , fMtlTexture(std::move(mtlTexture)) {} in BackendTexture()
/third_party/vulkan-headers/include/vulkan/
Dvulkan_metal.h144 MTLTexture_id mtlTexture; member
151 MTLTexture_id mtlTexture; member
Dvulkan_structs.hpp31865 , mtlTexture( mtlTexture_ )
31918 mtlTexture = mtlTexture_; in setMtlTexture()
31947 return std::tie( sType, pNext, image, imageView, bufferView, plane, mtlTexture ); in reflect()
31960 ( plane == rhs.plane ) && ( mtlTexture == rhs.mtlTexture ); in operator ==()
31977 MTLTexture_id mtlTexture = {}; member
43398 , mtlTexture( mtlTexture_ )
43433 mtlTexture = mtlTexture_; in setMtlTexture()
43456 return std::tie( sType, pNext, plane, mtlTexture ); in reflect()
43468 …hs.sType ) && ( pNext == rhs.pNext ) && ( plane == rhs.plane ) && ( mtlTexture == rhs.mtlTexture ); in operator ==()
43482 MTLTexture_id mtlTexture = {}; member
Dvulkan_hash.hpp4290 VULKAN_HPP_HASH_COMBINE( seed, exportMetalTextureInfoEXT.mtlTexture ); in operator ()()
5764 VULKAN_HPP_HASH_COMBINE( seed, importMetalTextureInfoEXT.mtlTexture ); in operator ()()
/third_party/mesa3d/include/vulkan/
Dvulkan_metal.h144 MTLTexture_id mtlTexture; member
151 MTLTexture_id mtlTexture; member
/third_party/skia/experimental/graphite/src/mtl/
DMtlCommandBuffer.mm95 colorAttachment.texture = colorTexture->mtlTexture();
273 id<MTLTexture> mtlTexture = static_cast<const Texture*>(texture)->mtlTexture();
281 blitCmdEncoder->copyFromTexture(mtlTexture, srcRect, mtlBuffer, bufferOffset, bufferRowBytes);
DMtlTexture.h27 id<MTLTexture> mtlTexture() const { return fTexture.get(); } in mtlTexture() function
/third_party/skia/experimental/graphite/include/
DBackendTexture.h24 BackendTexture(SkISize dimensions, sk_cfp<mtl::Handle> mtlTexture);
/third_party/skia/experimental/graphite/include/mtl/
DMtlTypes.h51 TextureInfo(Handle mtlTexture);
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DTextureMTL.mm739 id<MTLTexture> mtlTexture = texture->GetMTLTexture();
744 mMtlTextureView = mtlTexture;
768 AcquireNSPRef([mtlTexture newTextureViewWithPixelFormat:format
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_command_buffer.mm1605 id<MTLTexture> mtlTexture = (texture ? texture->get() : nil);
1608 if (shaderStates.textures[index] == mtlTexture)
1612 shaderStates.textures[index] = mtlTexture;
1615 .push([mtlTexture ANGLE_MTL_RETAIN])
Dmtl_resources.mm821 id<MTLTexture> mtlTexture = [context->getMetalDevice() newTextureWithDescriptor:desc];
822 mReadCopy.reset(new Texture(mtlTexture));