4#include "InspectorGuiHelper.h"
6#include "Rendering/IGraphicsDevice.h"
7#include "Rendering/Statistics.h"
9void Cogs::Core::webgpuCountersInspector(Context* context, IRenderer * ,
bool* show)
12 guiBegin(
"WebGPU Counters Inspector", show);
14 ResourceCountersWebGPU counters = context->device->getResourceCountersWebGPU();
18 ImGui::Text(
"Shader Module");
20 ImGui::Text(
"%u", counters.shader_module);
24 ImGui::Text(
"Buffer");
26 ImGui::Text(
"%u", counters.buffer);
30 ImGui::Text(
"Texture");
32 ImGui::Text(
"%u", counters.texture);
36 ImGui::Text(
"Texture View");
38 ImGui::Text(
"%u", counters.texture_view);
42 ImGui::Text(
"Sampler");
44 ImGui::Text(
"%u", counters.sampler);
48 ImGui::Text(
"Render Pipeline");
50 ImGui::Text(
"%u", counters.render_pipeline);
54 ImGui::Text(
"Compute Pipeline");
56 ImGui::Text(
"%u", counters.compute_pipeline);
60 ImGui::Text(
"pipeline_layout");
62 ImGui::Text(
"%u", counters.pipeline_layout);
66 ImGui::Text(
"bind_group");
68 ImGui::Text(
"%u", counters.bind_group);
72 ImGui::Text(
"Bind Group Layout");
74 ImGui::Text(
"%u", counters.bind_group_layout);