diff options
| author | Andre Weissflog <floooh@gmail.com> | 2026-01-26 15:56:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 15:56:50 +0100 |
| commit | def6cc54b553b5c929840aaebba1611efcc7a65b (patch) | |
| tree | 60b477a7f71bee7c809388fff84d49574036dfa2 /util | |
| parent | bb551ededd63794e96314303558679931ed41beb (diff) | |
Dual-source-blending (#1426)
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_gfx_imgui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h index ed363143..72a6c6c6 100644 --- a/util/sokol_gfx_imgui.h +++ b/util/sokol_gfx_imgui.h @@ -1470,6 +1470,10 @@ _SOKOL_PRIVATE const char* _sgimgui_blendfactor_string(sg_blend_factor f) { case SG_BLENDFACTOR_ONE_MINUS_BLEND_COLOR: return "SG_BLENDFACTOR_ONE_MINUS_BLEND_COLOR"; case SG_BLENDFACTOR_BLEND_ALPHA: return "SG_BLENDFACTOR_BLEND_ALPHA"; case SG_BLENDFACTOR_ONE_MINUS_BLEND_ALPHA: return "SG_BLENDFACTOR_ONE_MINUS_BLEND_ALPHA"; + case SG_BLENDFACTOR_SRC1_COLOR: return "SG_BLENDFACTOR_SRC1_COLOR"; + case SG_BLENDFACTOR_ONE_MINUS_SRC1_COLOR: return "SG_BLENDFACTOR_ONE_MINUS_SRC1_COLOR"; + case SG_BLENDFACTOR_SRC1_ALPHA: return "SG_BLENDFACTOR_SRC1_ALPHA"; + case SG_BLENDFACTOR_ONE_MINUS_SRC1_ALPHA: return "SG_BLENDFACTOR_ONE_MINUS_SRC1_ALPHA"; default: return "???"; } } @@ -4467,6 +4471,7 @@ _SOKOL_PRIVATE void _sgimgui_draw_caps_panel(void) { _sgimgui_igtext(" separate_buffer_types: %s", _sgimgui_bool_string(f.separate_buffer_types)); _sgimgui_igtext(" draw_base_vertex: %s", _sgimgui_bool_string(f.draw_base_vertex)); _sgimgui_igtext(" draw_base_instance: %s", _sgimgui_bool_string(f.draw_base_instance)); + _sgimgui_igtext(" dual_source_blending: %s", _sgimgui_bool_string(f.dual_source_blending)); _sgimgui_igtext(" gl_texture_views: %s", _sgimgui_bool_string(f.gl_texture_views)); sg_limits l = sg_query_limits(); _sgimgui_igtext("\nLimits:\n"); |