Start hooking up extra shader capability stats - not done yet

This commit is contained in:
twinaphex 2019-03-13 00:53:35 +01:00
parent 5e684da3d2
commit 2c024f400e
6 changed files with 21 additions and 2 deletions

View File

@ -1674,6 +1674,9 @@ static uint32_t d3d10_get_flags(void *data)
uint32_t flags = 0;
BIT32_SET(flags, GFX_CTX_FLAGS_MENU_FRAME_FILTERING);
#if defined(HAVE_SLANG) && defined(HAVE_SPIRV_CROSS)
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
#endif
return flags;
}

View File

@ -1741,6 +1741,7 @@ static uint32_t d3d11_get_flags(void *data)
uint32_t flags = 0;
BIT32_SET(flags, GFX_CTX_FLAGS_MENU_FRAME_FILTERING);
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
return flags;
}

View File

@ -1788,6 +1788,7 @@ static uint32_t d3d12_get_flags(void *data)
uint32_t flags = 0;
BIT32_SET(flags, GFX_CTX_FLAGS_MENU_FRAME_FILTERING);
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
return flags;
}

View File

@ -1717,6 +1717,7 @@ static uint32_t gl_core_get_flags(void *data)
BIT32_SET(flags, GFX_CTX_FLAGS_HARD_SYNC);
BIT32_SET(flags, GFX_CTX_FLAGS_BLACK_FRAME_INSERTION);
BIT32_SET(flags, GFX_CTX_FLAGS_MENU_FRAME_FILTERING);
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
return flags;
}

View File

@ -1706,8 +1706,17 @@ static void wiiu_gfx_set_osd_msg(void *data,
}
static uint32_t wiiu_gfx_get_flags(void *data)
{
uint32_t flags = 0;
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
return flags;
}
static const video_poke_interface_t wiiu_poke_interface = {
NULL, /* get_flags */
wiiu_gfx_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
wiiu_gfx_load_texture,

View File

@ -120,7 +120,11 @@ enum display_flags
GFX_CTX_FLAGS_HARD_SYNC,
GFX_CTX_FLAGS_BLACK_FRAME_INSERTION,
GFX_CTX_FLAGS_MENU_FRAME_FILTERING,
GFX_CTX_FLAGS_ADAPTIVE_VSYNC
GFX_CTX_FLAGS_ADAPTIVE_VSYNC,
GFX_CTX_FLAGS_SHADERS_GLSL,
GFX_CTX_FLAGS_SHADERS_CG,
GFX_CTX_FLAGS_SHADERS_HLSL,
GFX_CTX_FLAGS_SHADERS_SLANG
};
enum shader_uniform_type