If you are trying to store from render target to a texture then you may be yet in for a few other surprises. I use render target to create textures off of the materials I have and the textures don’t get formated properly and when I try to work with the data from the texture I got from my render target, it is not properly stored it seems, like a texture that gets build from an image, a jpg or a bmp, the data is not stored the same.
You can create a render target and then use it to dump inside an array.