Creating new textures in code


I am trying to implement a new RWTexture so that I can write to it directly in a pixel shader.
I am able to declare my texture by using FShaderResourceParameter and then set it up using SetTextureParameter and then finally bind it to the pixel shader.

However, there are no examples to how I can define the texture size, format and number of mips. How do I do this?