• Home
  • Raw
  • Download

Lines Matching refs:mtlTexture

215     id<MTLTexture> mtlTexture = tex->mtlTexture();
216 SkASSERT(mtlTexture);
218 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)mtlTexture.mipmapLevelCount);
270 toTexture: mtlTexture
283 if (mipLevelCount < (int) tex->mtlTexture().mipmapLevelCount) {
297 id<MTLTexture> mtlTexture = tex->mtlTexture();
298 SkASSERT(mtlTexture);
300 int mipLevelCount = (int)mtlTexture.mipmapLevelCount;
360 toTexture: mtlTexture
369 if (mipLevelCount < (int) tex->mtlTexture().mipmapLevelCount) {
494 static inline void init_surface_desc(GrSurfaceDesc* surfaceDesc, id<MTLTexture> mtlTexture,
497 SkASSERT(MTLTextureUsageRenderTarget & mtlTexture.usage);
499 surfaceDesc->fWidth = mtlTexture.width;
500 surfaceDesc->fHeight = mtlTexture.height;
508 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex);
509 if (!mtlTexture) {
518 init_surface_desc(&surfDesc, mtlTexture, GrRenderable::kNo, config);
520 return GrMtlTexture::MakeWrappedTexture(this, surfDesc, mtlTexture, cacheable, ioType);
528 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex);
529 if (!mtlTexture) {
535 MTLPixelFormat format = mtlTexture.pixelFormat;
545 init_surface_desc(&surfDesc, mtlTexture, GrRenderable::kYes, config);
551 mtlTexture, cacheable);
560 id<MTLTexture> mtlTexture = get_texture_from_backend(backendRT);
561 if (!mtlTexture) {
570 init_surface_desc(&surfDesc, mtlTexture, GrRenderable::kYes, config);
573 mtlTexture);
578 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex);
579 if (!mtlTexture) {
583 MTLPixelFormat format = mtlTexture.pixelFormat;
593 init_surface_desc(&surfDesc, mtlTexture, GrRenderable::kYes, config);
599 return GrMtlRenderTarget::MakeWrappedRenderTarget(this, surfDesc, sampleCnt, mtlTexture);
604 id<MTLTexture> mtlTexture = grMtlTexture->mtlTexture();
607 if (!fMtlCaps->isFormatRenderable(mtlTexture.pixelFormat, 1) &&
609 MTLPixelFormatRGBA8Unorm != mtlTexture.pixelFormat) {
614 [blitCmdEncoder generateMipmapsForTexture: mtlTexture];
829 id<MTLTexture> mtlTexture = GrGetMTLTexture(info.fTexture.get());
830 if (!mtlTexture) {
833 return mtlTexture.usage & MTLTextureUsageShaderRead;
891 dstTexture = static_cast<GrMtlTexture*>(dst->asTexture())->mtlTexture();
951 GrMtlTexture* mtlTexture = static_cast<GrMtlTexture*>(surface->asTexture());
954 if (!mtlTexture) {
965 return this->uploadToTexture(mtlTexture, left, top, width, height, srcColorType, texels,
983 id<MTLTexture> mtlTexture;
991 mtlTexture = rt->mtlColorTexture();
995 mtlTexture = rt->mtlResolveTexture();
1003 mtlTexture = texture->mtlTexture();
1007 if (!mtlTexture) {
1024 [blitCmdEncoder copyFromTexture: mtlTexture