gl: Use compute shaders for typeless texture decode

This commit is contained in:
kd-11 2019-10-02 03:47:19 +03:00 committed by kd-11
parent 7a6e2e716f
commit 105d4b51e6
7 changed files with 218 additions and 186 deletions

View file

@ -30,6 +30,16 @@ namespace gl
}
}
void destroy_compute_tasks()
{
for (auto& [key, prog] : g_compute_tasks)
{
prog->destroy();
}
g_compute_tasks.clear();
}
#ifdef WIN32
void APIENTRY dbgFunc(GLenum source, GLenum type, GLuint id,
GLenum severity, GLsizei lenght, const GLchar* message,