In Unity we have this: http://docs.unity3d.com/ScriptReference/Shader.SetGlobalTexture.html
You can broadcast a 1d,2d,3d texture or render target texture to all shaders (or materials as you would call them in UE4). You can then sample a texture of specified type and name. For example you can do this in code:
In the shader you then sample texture called MyTextureName.
Is there anything similar inside UE4 API?
What I am trying to do is to broadcast screen-space texture to all materials and sample it. I want to change this texture at runtime (update it’s contents, swap it). I imagine that it should be possible to set up a dummy Texture Sampler that points to a texture with specified name and in C++ I should broadcast the texture with the same name.