载入中...
搜索中...
未找到
imgui_impl_wgpu.h
浏览该文件的文档.
1// dear imgui: Renderer Backend for WebGPU (wgpu), adapted for EVEngine's
2// vendored imgui v1.83. Uses the stable webgpu.h C API so the same file
3// compiles against Dawn (native) and Emscripten (browser).
4
5#pragma once
6
7#include "imgui.h"
8
9#include <webgpu/webgpu.h>
10
11IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight,
12 WGPUTextureFormat rt_format);
13IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown();
14IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame();
15IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data,
16 WGPURenderPassEncoder pass_encoder);
vkb::Device & device
IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame()
IMGUI_IMPL_API bool ImGui_ImplWGPU_CreateFontsTexture()
IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data, WGPURenderPassEncoder pass_encoder)
IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format)
IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown()
IMGUI_IMPL_API void ImGui_ImplWGPU_InvalidateDeviceObjects()