Can I somehow get the raw pixel data from FSlateShaderResource?
So I’ve got into small progress here, but I need a bit more explanation, because the documentation that was writtin for thouse is just uninformative at all.
I’ve found a code that transforms (cast) FSlateShaderResource into FTexture2DRHIRef which I can ue it later using FRHICommandListImmediate::ReadSurfaceData() method and get pixel data of the texture, however I get some crazy errors when writting this piece of code. I am including this header:
#include “Rendering/SlateRenderer.h”
Do I need to include something else?