|
|
@ -13,6 +13,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
// CHANGELOG
|
|
|
|
// CHANGELOG
|
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
|
|
|
|
|
// 2021-08-24: Fix for latest specs.
|
|
|
|
// 2021-05-24: Add support for draw_data->FramebufferScale.
|
|
|
|
// 2021-05-24: Add support for draw_data->FramebufferScale.
|
|
|
|
// 2021-05-19: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement)
|
|
|
|
// 2021-05-19: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement)
|
|
|
|
// 2021-05-16: Update to latest WebGPU specs (compatible with Emscripten 2.0.20 and Chrome Canary 92).
|
|
|
|
// 2021-05-16: Update to latest WebGPU specs (compatible with Emscripten 2.0.20 and Chrome Canary 92).
|
|
|
@ -544,7 +545,7 @@ bool ImGui_ImplWGPU_CreateDeviceObjects()
|
|
|
|
ImGui_ImplWGPU_InvalidateDeviceObjects();
|
|
|
|
ImGui_ImplWGPU_InvalidateDeviceObjects();
|
|
|
|
|
|
|
|
|
|
|
|
// Create render pipeline
|
|
|
|
// Create render pipeline
|
|
|
|
WGPURenderPipelineDescriptor2 graphics_pipeline_desc = {};
|
|
|
|
WGPURenderPipelineDescriptor graphics_pipeline_desc = {};
|
|
|
|
graphics_pipeline_desc.primitive.topology = WGPUPrimitiveTopology_TriangleList;
|
|
|
|
graphics_pipeline_desc.primitive.topology = WGPUPrimitiveTopology_TriangleList;
|
|
|
|
graphics_pipeline_desc.primitive.stripIndexFormat = WGPUIndexFormat_Undefined;
|
|
|
|
graphics_pipeline_desc.primitive.stripIndexFormat = WGPUIndexFormat_Undefined;
|
|
|
|
graphics_pipeline_desc.primitive.frontFace = WGPUFrontFace_CW;
|
|
|
|
graphics_pipeline_desc.primitive.frontFace = WGPUFrontFace_CW;
|
|
|
@ -610,7 +611,7 @@ bool ImGui_ImplWGPU_CreateDeviceObjects()
|
|
|
|
// Configure disabled depth-stencil state
|
|
|
|
// Configure disabled depth-stencil state
|
|
|
|
graphics_pipeline_desc.depthStencil = nullptr;
|
|
|
|
graphics_pipeline_desc.depthStencil = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
g_pipelineState = wgpuDeviceCreateRenderPipeline2(g_wgpuDevice, &graphics_pipeline_desc);
|
|
|
|
g_pipelineState = wgpuDeviceCreateRenderPipeline(g_wgpuDevice, &graphics_pipeline_desc);
|
|
|
|
|
|
|
|
|
|
|
|
ImGui_ImplWGPU_CreateFontsTexture();
|
|
|
|
ImGui_ImplWGPU_CreateFontsTexture();
|
|
|
|
ImGui_ImplWGPU_CreateUniformBuffer();
|
|
|
|
ImGui_ImplWGPU_CreateUniformBuffer();
|
|
|
|