Lines Matching refs:texDesc
71 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
72 texDesc.textureType = MTLTextureType2DMultisample;
73 texDesc.pixelFormat = format;
74 texDesc.width = dimensions.fWidth;
75 texDesc.height = dimensions.fHeight;
76 texDesc.depth = 1;
77 texDesc.mipmapLevelCount = 1;
78 texDesc.sampleCount = sampleCnt;
79 texDesc.arrayLength = 1;
81 texDesc.storageMode = MTLStorageModePrivate;
82 texDesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
85 return [gpu->device() newTextureWithDescriptor:texDesc];
93 MTLTextureDescriptor* texDesc,
95 id<MTLTexture> texture = [gpu->device() newTextureWithDescriptor:texDesc];