Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
MTLTextureUsageShaderWrite & MetalKit
MTLTextureDescriptor *textureDescriptor = [[MTLTextureDescriptor alloc] init];
textureDescriptor.textureType = inTexture.textureType;
textureDescriptor.pixelFormat = inTexture.pixelFormat;
textureDescriptor.width = inTexture.width;
textureDescriptor.height = inTexture.height;
textureDescriptor.usage = inTexture.usage;
textureDescriptor.usage = MTLTextureUsageShaderRead | MTLTextureUsageShaderWrite; // the key statement solved the issue