mirror of
https://github.com/maxartz15/MoonWorksDearImGuiScaffold.git
synced 2025-06-20 10:36:58 +02:00
update MoonWorks
This commit is contained in:
Submodule lib/MoonWorks updated: 9195e445b2...69d2c9cc31
@ -5,6 +5,7 @@ using ImGuiNET;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using MoonWorks.Math.Float;
|
using MoonWorks.Math.Float;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace MoonWorksDearImGuiScaffold;
|
namespace MoonWorksDearImGuiScaffold;
|
||||||
|
|
||||||
@ -162,9 +163,7 @@ class MoonWorksDearImGuiScaffoldGame : Game
|
|||||||
RenderCommandLists(commandBuffer, swapchainTexture, drawDataPtr, io);
|
RenderCommandLists(commandBuffer, swapchainTexture, drawDataPtr, io);
|
||||||
}
|
}
|
||||||
|
|
||||||
var fence = GraphicsDevice.SubmitAndAcquireFence(commandBuffer);
|
GraphicsDevice.Submit(commandBuffer);
|
||||||
GraphicsDevice.WaitForFences(fence);
|
|
||||||
GraphicsDevice.ReleaseFence(fence);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Destroy()
|
protected override void Destroy()
|
||||||
|
@ -32,7 +32,7 @@ class Program
|
|||||||
MoonWorksDearImGuiScaffoldGame game = new MoonWorksDearImGuiScaffoldGame(
|
MoonWorksDearImGuiScaffoldGame game = new MoonWorksDearImGuiScaffoldGame(
|
||||||
windowCreateInfo,
|
windowCreateInfo,
|
||||||
frameLimiterSettings,
|
frameLimiterSettings,
|
||||||
[Backend.D3D11, Backend.Vulkan],
|
[Backend.Vulkan, Backend.D3D11],
|
||||||
debugMode
|
debugMode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user