How to use texture2d_array array in metal?
I have been trying to use texture2d_array for my application of live filters in metal. But I'm not getting the proper result. Im creating the texture array like this, Code: Class MetalTextureArray . class MetalTextureArray { private(set) var arrayTexture: MTLTexture private var width: Int private var height: Int init(_ width: Int, _ height: Int, _ arrayLength: Int, _ device: MTLDevice) { self.width = width self.height = height let textureDescriptor = MTLTextureDescriptor() textureDescriptor.textureType = .type2DArray textureDescriptor.pixelFormat = .bgra8Unorm textureDescriptor.width = width