How do you copy a RenderTarget2D?
How do you make an exact copy of a
Is there a way to
I'm currently just feeding the
asked Dec 02 '17 at 10:24 PM in C++ Programming
Hi, you can use CopyToResolveTarget on the Render Thread for this. To make it a bit cleaner to read I was splitting it into two functions. The First will be called in the GameThread (the "normal" thread) and this will add a request for the Render Thread to call another function that will do the copy. This way you can simply call CopyRT() within the GameThread. In this case m_sourceRT and m_destRT are UTextureRenderTarget2D* pointer to a valid RT.
For example if UMyComponent is the class where your in (could also be an Actor)
Follow this question
Once you sign in you will be able to subscribe for any updates here