mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-07 18:16:23 +00:00
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:
parent
11976526d1
commit
29a9ed043b
12 changed files with 222 additions and 41 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue