Lines Matching refs:texDesc
259 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
260 texDesc.textureType = MTLTextureType2D;
261 texDesc.pixelFormat = format;
262 texDesc.width = desc.fWidth;
263 texDesc.height = desc.fHeight;
264 texDesc.depth = 1;
265 texDesc.mipmapLevelCount = mipLevels;
266 texDesc.sampleCount = 1;
267 texDesc.arrayLength = 1;
268 texDesc.cpuCacheMode = MTLCPUCacheModeWriteCombined;
271 texDesc.storageMode = MTLStorageModePrivate;
272 texDesc.usage = MTLTextureUsageShaderRead;
273 texDesc.usage |= renderTarget ? MTLTextureUsageRenderTarget : 0;
291 desc, texDesc, mipMapsStatus);
293 tex = GrMtlTexture::CreateNewTexture(this, budgeted, desc, texDesc, mipMapsStatus);