- added a RenderQueue parameter to all Bind functions of the postprocessing shaders. This is unused for now. All places calling these pass a dummy NOQUEUE value which is just a nullptr.
This is for Vulkan preparation where all of this needs to run in a user-specified context so that this code can be moved out of the GL folder without depending on OpenGL's global state model.
This commit is contained in:
parent
0b9eaac5e1
commit
8bf009bd89
28 changed files with 91 additions and 88 deletions
|
|
@ -55,7 +55,7 @@ void FCustomPostProcessShaders::Run(FString target)
|
|||
{
|
||||
if (shader->Desc->Target == target)
|
||||
{
|
||||
shader->Run();
|
||||
shader->Run(NOQUEUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ PostProcessShaderInstance::~PostProcessShaderInstance()
|
|||
glDeleteTextures(1, (GLuint*)&it.second);
|
||||
}
|
||||
|
||||
void PostProcessShaderInstance::Run()
|
||||
void PostProcessShaderInstance::Run(IRenderQueue *q)
|
||||
{
|
||||
if (!IsShaderSupported())
|
||||
return;
|
||||
|
|
@ -88,7 +88,7 @@ void PostProcessShaderInstance::Run()
|
|||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
||||
mProgram.Bind();
|
||||
mProgram.Bind(q);
|
||||
|
||||
UpdateUniforms();
|
||||
BindTextures();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue