载入中...
搜索中...
未找到
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
12IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight,
13 WGPUTextureFormat rt_format);
15IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown();
17IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame();
19IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data,
20 WGPURenderPassEncoder pass_encoder);
vkb::Device & device
IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame()
Im gui impl wgpu new frame.
IMGUI_IMPL_API bool ImGui_ImplWGPU_CreateFontsTexture()
Im gui impl wgpu create fonts texture.
IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data, WGPURenderPassEncoder pass_encoder)
Im gui impl wgpu render draw data.
IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format)
Im gui impl wgpu init.
IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown()
Im gui impl wgpu shutdown.
IMGUI_IMPL_API void ImGui_ImplWGPU_InvalidateDeviceObjects()
Im gui impl wgpu invalidate device objects.