Skip to content

Commit

Permalink
sokol_gfx_imgui.h: add gl stats to frame stats panel
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 2, 2023
1 parent 4418399 commit 43be6e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions util/sokol_gfx_imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -4254,6 +4254,20 @@ _SOKOL_PRIVATE void _sg_imgui_draw_frame_stats_panel(sg_imgui_t* ctx) {
_sg_imgui_frame_stats(size_append_buffer);
_sg_imgui_frame_stats(size_update_image);
switch (sg_query_backend()) {
case SG_BACKEND_GLCORE33:
case SG_BACKEND_GLES3:
_sg_imgui_frame_stats(gl.num_bind_buffer);
_sg_imgui_frame_stats(gl.num_active_texture);
_sg_imgui_frame_stats(gl.num_bind_texture);
_sg_imgui_frame_stats(gl.num_bind_sampler);
_sg_imgui_frame_stats(gl.num_use_program);
_sg_imgui_frame_stats(gl.num_render_state);
_sg_imgui_frame_stats(gl.num_vertex_attrib_pointer);
_sg_imgui_frame_stats(gl.num_vertex_attrib_divisor);
_sg_imgui_frame_stats(gl.num_enable_vertex_attrib_array);
_sg_imgui_frame_stats(gl.num_disable_vertex_attrib_array);
_sg_imgui_frame_stats(gl.num_uniform);
break;
case SG_BACKEND_WGPU:
_sg_imgui_frame_stats(wgpu.uniforms.num_set_bindgroup);
_sg_imgui_frame_stats(wgpu.uniforms.size_write_buffer);
Expand Down

0 comments on commit 43be6e7

Please sign in to comment.