In an Apple Metal app I am trying to edit texture contents. Texture uses bgra8Unorm pixel format and is created like this:
fileprivate var texture: MTLTexture