Lines Matching refs:texDesc
81 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
82 texDesc.textureType = MTLTextureType2DMultisample;
83 texDesc.pixelFormat = format;
84 texDesc.width = dimensions.fWidth;
85 texDesc.height = dimensions.fHeight;
86 texDesc.depth = 1;
87 texDesc.mipmapLevelCount = 1;
88 texDesc.sampleCount = sampleCnt;
89 texDesc.arrayLength = 1;
91 texDesc.storageMode = MTLStorageModePrivate;
92 texDesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
95 id<MTLTexture> colorTexture = [gpu->device() newTextureWithDescriptor:texDesc];