Implement dual-source blending in shader

For some GLES drivers that don't support dual-source blending, but do
support GL_EXT_shader_framebuffer_fetch, this might be useful.
This commit is contained in:
Jonathan Hamilton
2017-10-25 22:44:39 -07:00
parent 11976526d1
commit 29a9ed043b
12 changed files with 222 additions and 41 deletions

View File

@ -35,6 +35,13 @@ enum class ES_TEXBUF_TYPE
TEXBUF_EXT
};
enum class ES_FB_FETCH_TYPE
{
FB_FETCH_NONE,
FB_FETCH_EXT,
FB_FETCH_ARM,
};
// ogl-only config, so not in VideoConfig.h
struct VideoConfig
{
@ -59,6 +66,7 @@ struct VideoConfig
bool bSupportsAniso;
bool bSupportsBitfield;
bool bSupportsTextureSubImage;
ES_FB_FETCH_TYPE SupportedFramebufferFetch;
const char* gl_vendor;
const char* gl_renderer;