imgui_backend.h
cross platform rendering playgroundsrc/backend/imgui_backend.h
460 B#pragma once
#include "backend/rhi.h"
struct PassContext;
struct QuickSubmit;
struct Arena;
namespace imgui_backend {
void init(rhi::Device &device, void *native_window, QuickSubmit &qs, Arena &staging);
void shutdown(rhi::Device &device);
void begin_frame();
bool prepare(const PassContext &ctx);
void draw(const PassContext &ctx, rhi::RenderPipeline &pipeline, u32 width, u32 height);
u64 texture(rhi::ImageView &view);
} // namespace imgui_backend