continue;
}
- ImGui::Text("pointer %u: %08x", i, pointers[i]);
- aub_viewer_print_group(ctx, strct, addr, (const uint8_t *) bo.map + (addr - bo.addr));
+ const uint8_t *state = (const uint8_t *) bo.map + (addr - bo.addr);
+ if (ImGui::TreeNodeEx(&pointers[i], ImGuiTreeNodeFlags_Framed,
+ "pointer %u: %08x", i, pointers[i])) {
+ aub_viewer_print_group(ctx, strct, addr, state);
+ ImGui::TreePop();
+ }
}
}
}
for (int i = 0; i < count; i++) {
- ImGui::Text("sampler state %d", i);
- aub_viewer_print_group(ctx, strct, state_addr, state_map);
+ if (ImGui::TreeNodeEx(state_map, ImGuiTreeNodeFlags_Framed,
+ "sampler state %d", i)) {
+ aub_viewer_print_group(ctx, strct, state_addr, state_map);
+ ImGui::TreePop();
+ }
state_addr += 16;
state_map += 16;
}