载入中...
搜索中...
未找到
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
11// Implemented and consumed inside EVUI. IMGUI_IMPL_API belongs to eve_imgui
12// (core ImGui + SDL); importing it here would mark these local definitions dllimport.
13
15bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format);
21void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data, WGPURenderPassEncoder pass_encoder);
vkb::Device & device
bool ImGui_ImplWGPU_CreateFontsTexture()
Internal EVUI font-upload compatibility entry point following the ImGui backend convention.
void ImGui_ImplWGPU_InvalidateDeviceObjects()
Im gui impl wgpu invalidate device objects.
void ImGui_ImplWGPU_RenderDrawData(ImDrawData *draw_data, WGPURenderPassEncoder pass_encoder)
Im gui impl wgpu render draw data.
bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format)
Internal EVUI compatibility entry point following the ImGui renderer backend convention.
void ImGui_ImplWGPU_Shutdown()
Im gui impl wgpu shutdown.
void ImGui_ImplWGPU_NewFrame()
Im gui impl wgpu new frame.