@@ -142,7 +142,7 @@ typedef uint8_t (*ui_dbg_read_t)(int layer, uint16_t addr, void* user_data);
142
142
/* callback for evaluating uer breakpoints, return breakpoint index, or -1 */
143
143
typedef int (* ui_dbg_user_break_t )(struct ui_dbg_t * win , int trap_id , uint64_t pins , void * user_data );
144
144
/* a callback to create a dynamic-update RGBA8 UI texture, needs to return an ImTextureID handle */
145
- typedef ui_texture_t (* ui_dbg_create_texture_t )(int w , int h );
145
+ typedef ui_texture_t (* ui_dbg_create_texture_t )(int w , int h , const char * label );
146
146
/* callback to update a UI texture with new data */
147
147
typedef void (* ui_dbg_update_texture_t )(ui_texture_t tex_handle , void * data , int data_byte_size );
148
148
/* callback to destroy a UI texture */
@@ -1113,7 +1113,7 @@ static void _ui_dbg_heatmap_init(ui_dbg_t* win) {
1113
1113
win -> heatmap .tex_height = 256 ;
1114
1114
win -> heatmap .tex_width_uicombo_state = 4 ;
1115
1115
win -> heatmap .next_tex_width = win -> heatmap .tex_width ;
1116
- win -> heatmap .texture = win -> texture_cbs .create_cb (win -> heatmap .tex_width , win -> heatmap .tex_height );
1116
+ win -> heatmap .texture = win -> texture_cbs .create_cb (win -> heatmap .tex_width , win -> heatmap .tex_height , "heatmap" );
1117
1117
win -> heatmap .show_ops = win -> heatmap .show_reads = win -> heatmap .show_writes = true;
1118
1118
win -> heatmap .scale = 1 ;
1119
1119
win -> heatmap .autoclear_interval = 0 ; /* 0 means: no autoclear */
@@ -1129,7 +1129,7 @@ static void _ui_dbg_heatmap_update_texture_size(ui_dbg_t* win, int new_width) {
1129
1129
win -> heatmap .tex_width = new_width ;
1130
1130
win -> heatmap .tex_height = (1 <<16 ) / new_width ;
1131
1131
win -> texture_cbs .destroy_cb (win -> heatmap .texture );
1132
- win -> heatmap .texture = win -> texture_cbs .create_cb (win -> heatmap .tex_width , win -> heatmap .tex_height );
1132
+ win -> heatmap .texture = win -> texture_cbs .create_cb (win -> heatmap .tex_width , win -> heatmap .tex_height , "heatmap" );
1133
1133
}
1134
1134
}
1135
1135
0 commit comments