Lines Matching refs:texDesc
565 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
566 texDesc.textureType = MTLTextureType2D;
567 texDesc.pixelFormat = mtlPixelFormat;
568 texDesc.width = dimensions.fWidth;
569 texDesc.height = dimensions.fHeight;
570 texDesc.depth = 1;
571 texDesc.mipmapLevelCount = mipLevelCount;
572 texDesc.sampleCount = 1;
573 texDesc.arrayLength = 1;
577 texDesc.storageMode = MTLStorageModePrivate;
578 texDesc.usage = MTLTextureUsageShaderRead;
579 texDesc.usage |= (renderable == GrRenderable::kYes) ? MTLTextureUsageRenderTarget : 0;
586 this, budgeted, dimensions, renderTargetSampleCnt, texDesc, mipmapStatus);
588 tex = GrMtlTexture::MakeNewTexture(this, budgeted, dimensions, texDesc, mipmapStatus);
632 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
633 texDesc.textureType = MTLTextureType2D;
634 texDesc.pixelFormat = mtlPixelFormat;
635 texDesc.width = dimensions.width();
636 texDesc.height = dimensions.height();
637 texDesc.depth = 1;
638 texDesc.mipmapLevelCount = numMipLevels;
639 texDesc.sampleCount = 1;
640 texDesc.arrayLength = 1;
644 texDesc.storageMode = MTLStorageModePrivate;
645 texDesc.usage = MTLTextureUsageShaderRead;
652 auto tex = GrMtlTexture::MakeNewTexture(this, budgeted, dimensions, texDesc, mipmapStatus);