06-29-2018, 03:29 PM
After some thinking, I see that the problem with my recommendation is that the ScreenFrame.texture2D that you got is probably not created in such a way that it can be used use as ShaderResourceView.
To use Texture2D for that, it needs to be create with Texture2DDescription that have:
Usage = ResourceUsage.Default
BindFlags = BindFlags.ShaderResource
If you can control how this Texture2D is created, then try those settings.
To use Texture2D for that, it needs to be create with Texture2DDescription that have:
Usage = ResourceUsage.Default
BindFlags = BindFlags.ShaderResource
If you can control how this Texture2D is created, then try those settings.
Andrej Benedik

